govuk_publishing_components 16.29.0 → 17.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +46 -23
  3. data/app/assets/javascripts/govuk_publishing_components/components/feedback.js +8 -2
  4. data/app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js +101 -21
  5. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +9 -2
  6. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +0 -1
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +4 -6
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +36 -5
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +14 -14
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_highlight-boxes.scss +23 -23
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +8 -8
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +2 -2
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +8 -8
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +10 -10
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +11 -14
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +14 -14
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +8 -8
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +7 -7
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +20 -16
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +4 -4
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +5 -5
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_taxonomy-list.scss +5 -5
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +8 -8
  24. data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav-header.scss +1 -1
  25. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +33 -25
  26. data/app/views/govuk_publishing_components/components/_error_summary.html.erb +4 -2
  27. data/app/views/govuk_publishing_components/components/_notice.html.erb +4 -1
  28. data/app/views/govuk_publishing_components/components/docs/cookie_banner.yml +2 -0
  29. data/app/views/govuk_publishing_components/components/docs/error_summary.yml +6 -0
  30. data/app/views/govuk_publishing_components/components/docs/notice.yml +6 -0
  31. data/app/views/govuk_publishing_components/components/docs/success_alert.yml +1 -1
  32. data/lib/govuk_publishing_components/presenters/cookie_banner_helper.rb +0 -4
  33. data/lib/govuk_publishing_components/version.rb +1 -1
  34. data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js +1 -1
  35. data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js.map +1 -1
  36. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js +1 -1
  37. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js.map +1 -1
  38. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js +1 -1
  39. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js.map +1 -1
  40. data/node_modules/accessible-autocomplete/package.json +3 -3
  41. data/node_modules/accessible-autocomplete/src/autocomplete.js +4 -2
  42. data/node_modules/accessible-autocomplete/src/wrapper.js +5 -1
  43. data/node_modules/d/CHANGELOG.md +9 -0
  44. data/node_modules/d/CHANGES +4 -0
  45. data/node_modules/d/LICENSE +12 -16
  46. data/node_modules/d/README.md +49 -19
  47. data/node_modules/d/auto-bind.js +11 -10
  48. data/node_modules/d/index.js +23 -24
  49. data/node_modules/d/lazy.js +21 -23
  50. data/node_modules/d/package.json +63 -16
  51. data/node_modules/d/test/auto-bind.js +6 -7
  52. data/node_modules/d/test/index.js +78 -51
  53. data/node_modules/d/test/lazy.js +65 -50
  54. data/node_modules/es6-weak-map/CHANGELOG.md +5 -0
  55. data/node_modules/es6-weak-map/LICENSE +12 -16
  56. data/node_modules/es6-weak-map/README.md +34 -19
  57. data/node_modules/es6-weak-map/implement.js +9 -5
  58. data/node_modules/es6-weak-map/index.js +2 -2
  59. data/node_modules/es6-weak-map/is-implemented.js +10 -9
  60. data/node_modules/es6-weak-map/is-native-implemented.js +3 -3
  61. data/node_modules/es6-weak-map/is-weak-map.js +8 -8
  62. data/node_modules/es6-weak-map/package.json +30 -19
  63. data/node_modules/es6-weak-map/polyfill.js +31 -32
  64. data/node_modules/es6-weak-map/test/implement.js +4 -2
  65. data/node_modules/es6-weak-map/test/index.js +4 -3
  66. data/node_modules/es6-weak-map/test/is-implemented.js +9 -8
  67. data/node_modules/es6-weak-map/test/is-native-implemented.js +4 -2
  68. data/node_modules/es6-weak-map/test/is-weak-map.js +4 -4
  69. data/node_modules/es6-weak-map/test/polyfill.js +13 -13
  70. data/node_modules/es6-weak-map/test/valid-weak-map.js +22 -9
  71. data/node_modules/es6-weak-map/valid-weak-map.js +5 -5
  72. data/node_modules/resolve/lib/async.js +1 -1
  73. data/node_modules/resolve/lib/node-modules-paths.js +1 -1
  74. data/node_modules/resolve/lib/sync.js +0 -2
  75. data/node_modules/resolve/package.json +13 -13
  76. data/node_modules/resolve/test/node-modules-paths.js +0 -22
  77. data/node_modules/resolve/test/resolver.js +11 -0
  78. data/node_modules/resolve/test/resolver_sync.js +11 -0
  79. data/node_modules/standard/node_modules/ms/index.js +2 -2
  80. data/node_modules/standard/node_modules/ms/package.json +205 -16
  81. data/node_modules/standard/node_modules/ms/readme.md +1 -1
  82. data/node_modules/type/CHANGELOG.md +62 -0
  83. data/node_modules/type/README.md +743 -0
  84. data/node_modules/type/array-length/coerce.js +10 -0
  85. data/node_modules/type/array-length/ensure.js +10 -0
  86. data/node_modules/type/array-like/ensure.js +9 -0
  87. data/node_modules/type/array-like/is.js +21 -0
  88. data/node_modules/type/array/ensure.js +9 -0
  89. data/node_modules/type/array/is.js +27 -0
  90. data/node_modules/type/date/ensure.js +9 -0
  91. data/node_modules/type/date/is.js +26 -0
  92. data/node_modules/type/error/ensure.js +9 -0
  93. data/node_modules/type/error/is.js +24 -0
  94. data/node_modules/type/finite/coerce.js +8 -0
  95. data/node_modules/type/finite/ensure.js +10 -0
  96. data/node_modules/type/function/ensure.js +9 -0
  97. data/node_modules/type/function/is.js +19 -0
  98. data/node_modules/type/integer/coerce.js +11 -0
  99. data/node_modules/type/integer/ensure.js +10 -0
  100. data/node_modules/type/iterable/ensure.js +9 -0
  101. data/node_modules/type/iterable/is.js +20 -0
  102. data/node_modules/type/lib/is-to-string-tag-supported.js +3 -0
  103. data/node_modules/type/lib/resolve-exception.js +21 -0
  104. data/node_modules/type/lib/safe-to-string.js +10 -0
  105. data/node_modules/type/lib/to-short-string.js +29 -0
  106. data/node_modules/type/natural-number/coerce.js +10 -0
  107. data/node_modules/type/natural-number/ensure.js +10 -0
  108. data/node_modules/type/number/coerce.js +14 -0
  109. data/node_modules/type/number/ensure.js +10 -0
  110. data/node_modules/type/object/ensure.js +9 -0
  111. data/node_modules/type/object/is.js +11 -0
  112. data/node_modules/type/package.json +159 -0
  113. data/node_modules/type/plain-function/ensure.js +9 -0
  114. data/node_modules/type/plain-function/is.js +11 -0
  115. data/node_modules/type/plain-object/ensure.js +9 -0
  116. data/node_modules/type/plain-object/is.js +28 -0
  117. data/node_modules/type/promise/ensure.js +9 -0
  118. data/node_modules/type/promise/is.js +27 -0
  119. data/node_modules/type/prototype/is.js +13 -0
  120. data/node_modules/type/reg-exp/ensure.js +9 -0
  121. data/node_modules/type/reg-exp/is.js +37 -0
  122. data/node_modules/type/safe-integer/coerce.js +13 -0
  123. data/node_modules/type/safe-integer/ensure.js +10 -0
  124. data/node_modules/type/string/coerce.js +23 -0
  125. data/node_modules/type/string/ensure.js +10 -0
  126. data/node_modules/type/test/_lib/arrow-function-if-supported.js +4 -0
  127. data/node_modules/type/test/_lib/class-if-supported.js +4 -0
  128. data/node_modules/type/test/array-length/coerce.js +47 -0
  129. data/node_modules/type/test/array-length/ensure.js +19 -0
  130. data/node_modules/type/test/array-like/ensure.js +24 -0
  131. data/node_modules/type/test/array-like/is.js +47 -0
  132. data/node_modules/type/test/array/ensure.js +20 -0
  133. data/node_modules/type/test/array/is.js +41 -0
  134. data/node_modules/type/test/date/ensure.js +20 -0
  135. data/node_modules/type/test/date/is.js +46 -0
  136. data/node_modules/type/test/error/ensure.js +20 -0
  137. data/node_modules/type/test/error/is.js +42 -0
  138. data/node_modules/type/test/finite/coerce.js +40 -0
  139. data/node_modules/type/test/finite/ensure.js +17 -0
  140. data/node_modules/type/test/function/ensure.js +20 -0
  141. data/node_modules/type/test/function/is.js +46 -0
  142. data/node_modules/type/test/integer/coerce.js +49 -0
  143. data/node_modules/type/test/integer/ensure.js +17 -0
  144. data/node_modules/type/test/iterable/ensure.js +24 -0
  145. data/node_modules/type/test/iterable/is.js +50 -0
  146. data/node_modules/type/test/lib/is-to-string-tag-supported.js +10 -0
  147. data/node_modules/type/test/lib/resolve-exception.js +39 -0
  148. data/node_modules/type/test/lib/safe-to-string.js +32 -0
  149. data/node_modules/type/test/lib/to-short-string.js +41 -0
  150. data/node_modules/type/test/natural-number/coerce.js +47 -0
  151. data/node_modules/type/test/natural-number/ensure.js +19 -0
  152. data/node_modules/type/test/number/coerce.js +40 -0
  153. data/node_modules/type/test/number/ensure.js +17 -0
  154. data/node_modules/type/test/object/ensure.js +20 -0
  155. data/node_modules/type/test/object/is.js +30 -0
  156. data/node_modules/type/test/plain-function/ensure.js +20 -0
  157. data/node_modules/type/test/plain-function/is.js +56 -0
  158. data/node_modules/type/test/plain-object/ensure.js +20 -0
  159. data/node_modules/type/test/plain-object/is.js +47 -0
  160. data/node_modules/type/test/promise/ensure.js +20 -0
  161. data/node_modules/type/test/promise/is.js +39 -0
  162. data/node_modules/type/test/prototype/is.js +39 -0
  163. data/node_modules/type/test/reg-exp/ensure.js +20 -0
  164. data/node_modules/type/test/reg-exp/is.js +47 -0
  165. data/node_modules/type/test/safe-integer/coerce.js +49 -0
  166. data/node_modules/type/test/safe-integer/ensure.js +19 -0
  167. data/node_modules/type/test/string/coerce.js +36 -0
  168. data/node_modules/type/test/string/ensure.js +17 -0
  169. data/node_modules/type/test/thenable/ensure.js +20 -0
  170. data/node_modules/type/test/thenable/is.js +44 -0
  171. data/node_modules/type/test/time-value/coerce.js +47 -0
  172. data/node_modules/type/test/time-value/ensure.js +17 -0
  173. data/node_modules/type/test/value/ensure.js +20 -0
  174. data/node_modules/type/test/value/is.js +29 -0
  175. data/node_modules/type/thenable/ensure.js +9 -0
  176. data/node_modules/type/thenable/is.js +9 -0
  177. data/node_modules/type/time-value/coerce.js +12 -0
  178. data/node_modules/type/time-value/ensure.js +10 -0
  179. data/node_modules/type/value/ensure.js +9 -0
  180. data/node_modules/type/value/is.js +6 -0
  181. metadata +118 -21
  182. data/app/assets/stylesheets/govuk_publishing_components/components/_taxonomy-navigation.scss +0 -94
  183. data/node_modules/resolve/reaf +0 -0
  184. data/node_modules/resolve/test/shadowed_core.js +0 -38
  185. data/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
@@ -1,2 +1,2 @@
1
- (function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["accessibleAutocomplete"]=t():e["accessibleAutocomplete"]=t()})(window,function(){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=38)}([function(e,t,n){var m=n(1),v=n(6),y=n(7),_=n(16),b=n(18),g="prototype",x=function(e,t,n){var r,o,i,u,l=e&x.F,s=e&x.G,a=e&x.S,c=e&x.P,p=e&x.B,f=s?m:a?m[t]||(m[t]={}):(m[t]||{})[g],d=s?v:v[t]||(v[t]={}),h=d[g]||(d[g]={});for(r in s&&(n=t),n)i=((o=!l&&f&&f[r]!==undefined)?f:n)[r],u=p&&o?b(i,m):c&&"function"==typeof i?b(Function.call,i):i,f&&_(f,r,i,e&x.U),d[r]!=i&&y(d,r,u),c&&h[r]!=i&&(h[r]=i)};m.core=v,x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128,e.exports=x},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"h",function(){return r}),n.d(t,"createElement",function(){return r}),n.d(t,"cloneElement",function(){return i}),n.d(t,"Component",function(){return _}),n.d(t,"render",function(){return b}),n.d(t,"rerender",function(){return f}),n.d(t,"options",function(){return E});var s=function s(){},E={},a=[],c=[];function r(e,t){var n,r,o,i,u=c;for(i=arguments.length;2<i--;)a.push(arguments[i]);for(t&&null!=t.children&&(a.length||a.push(t.children),delete t.children);a.length;)if((r=a.pop())&&r.pop!==undefined)for(i=r.length;i--;)a.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&n?u[u.length-1]+=r:u===c?u=[r]:u.push(r),n=o;var l=new s;return l.nodeName=e,l.children=u,l.attributes=null==t?undefined:t,l.key=null==t?undefined:t.key,E.vnode!==undefined&&E.vnode(l),l}function N(e,t){for(var n in t)e[n]=t[n];return e}var o="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function i(e,t){return r(e.nodeName,N(N({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var p=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,u=[];function l(e){!e._dirty&&(e._dirty=!0)&&1==u.push(e)&&(E.debounceRendering||o)(f)}function f(){var e,t=u;for(u=[];e=t.pop();)e._dirty&&V(e)}function k(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function I(e){var t=N({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(n!==undefined)for(var r in n)t[r]===undefined&&(t[r]=n[r]);return t}function M(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===p.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var u=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,d,u):e.removeEventListener(t,d,u),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(s){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var l=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?l?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(l?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function d(e){return this._listeners[e.type](E.event&&E.event(e)||e)}var P=[],A=0,j=!1,T=!1;function L(){for(var e;e=P.pop();)E.afterMount&&E.afterMount(e),e.componentDidMount&&e.componentDidMount()}function B(e,t,n,r,o,i){A++||(j=null!=o&&o.ownerSVGElement!==undefined,T=null!=e&&!("__preactattr_"in e));var u=D(e,t,n,r,i);return o&&u.parentNode!==o&&o.appendChild(u),--A||(T=!1,i||L()),u}function D(e,t,n,r,o){var i=e,u=j;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&e.splitText!==undefined&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),F(e,!0))),i["__preactattr_"]=!0,i;var l=t.nodeName;if("function"==typeof l)return function d(e,t,n,r){var o=e&&e._component,i=o,u=e,l=o&&e._componentConstructor===t.nodeName,s=l,a=I(t);for(;o&&!s&&(o=o._parentComponent);)s=o.constructor===t.nodeName;o&&s&&(!r||o._component)?(U(o,a,3,n,r),e=o.base):(i&&!l&&(q(i),e=u=null),o=R(t.nodeName,a,n),e&&!o.nextBase&&(o.nextBase=e,u=null),U(o,a,1,n,r),e=o.base,u&&e!==u&&(u._component=null,F(u,!1)));return e}(e,t,n,r);if(j="svg"===l||"foreignObject"!==l&&j,l=String(l),(!e||!k(e,l))&&(i=function h(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(l,j),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),F(e,!0)}var s=i.firstChild,a=i["__preactattr_"],c=t.children;if(null==a){a=i["__preactattr_"]={};for(var p=i.attributes,f=p.length;f--;)a[p[f].name]=p[f].value}return!T&&c&&1===c.length&&"string"==typeof c[0]&&null!=s&&s.splitText!==undefined&&null==s.nextSibling?s.nodeValue!=c[0]&&(s.nodeValue=c[0]):(c&&c.length||null!=s)&&function S(e,t,n,r,o){var i,u,l,s,a,c=e.childNodes,p=[],f={},d=0,h=0,m=c.length,v=0,y=t?t.length:0;if(0!==m)for(var _=0;_<m;_++){var b=c[_],g=b["__preactattr_"],x=y&&g?b._component?b._component.__key:g.key:null;null!=x?(d++,f[x]=b):(g||(b.splitText!==undefined?!o||b.nodeValue.trim():o))&&(p[v++]=b)}if(0!==y)for(var _=0;_<y;_++){s=t[_],a=null;var x=s.key;if(null!=x)d&&f[x]!==undefined&&(a=f[x],f[x]=undefined,d--);else if(h<v)for(i=h;i<v;i++)if(p[i]!==undefined&&(w=u=p[i],C=o,"string"==typeof(O=s)||"number"==typeof O?w.splitText!==undefined:"string"==typeof O.nodeName?!w._componentConstructor&&k(w,O.nodeName):C||w._componentConstructor===O.nodeName)){a=u,p[i]=undefined,i===v-1&&v--,i===h&&h++;break}a=D(a,s,n,r),l=c[_],a&&a!==e&&a!==l&&(null==l?e.appendChild(a):a===l.nextSibling?M(l):e.insertBefore(a,l))}var w,O,C;if(d)for(var _ in f)f[_]!==undefined&&F(f[_],!1);for(;h<=v;)(a=p[v--])!==undefined&&F(a,!1)}(i,c,n,r,T||null!=a.dangerouslySetInnerHTML),function m(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||v(e,r,n[r],n[r]=undefined,j);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||v(e,r,n[r],n[r]=t[r],j)}(i,t.attributes,a),j=u,i}function F(e,t){var n=e._component;n?q(n):(null!=e["__preactattr_"]&&e["__preactattr_"].ref&&e["__preactattr_"].ref(null),!1!==t&&null!=e["__preactattr_"]||M(e),h(e))}function h(e){for(e=e.lastChild;e;){var t=e.previousSibling;F(e,!0),e=t}}var m=[];function R(e,t,n){var r,o=m.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),_.call(r,t,n)):((r=new _(t,n)).constructor=e,r.render=y);o--;)if(m[o].constructor===e)return r.nextBase=m[o].nextBase,m.splice(o,1),r;return r}function y(e,t,n){return this.constructor(e,n)}function U(e,t,n,r,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,"undefined"==typeof e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===E.syncComponentUpdates&&e.base?l(e):V(e,1,o)),e.__ref&&e.__ref(e))}function V(e,t,n,r){if(!e._disable){var o,i,u,l=e.props,s=e.state,a=e.context,c=e.prevProps||l,p=e.prevState||s,f=e.prevContext||a,d=e.base,h=e.nextBase,m=d||h,v=e._component,y=!1,_=f;if(e.constructor.getDerivedStateFromProps&&(s=N(N({},s),e.constructor.getDerivedStateFromProps(l,s)),e.state=s),d&&(e.props=c,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,s,a)?y=!0:e.componentWillUpdate&&e.componentWillUpdate(l,s,a),e.props=l,e.state=s,e.context=a),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!y){o=e.render(l,s,a),e.getChildContext&&(a=N(N({},a),e.getChildContext())),d&&e.getSnapshotBeforeUpdate&&(_=e.getSnapshotBeforeUpdate(c,p));var b,g,x=o&&o.nodeName;if("function"==typeof x){var w=I(o);(i=v)&&i.constructor===x&&w.key==i.__key?U(i,w,1,a,!1):(b=i,e._component=i=R(x,w,a),i.nextBase=i.nextBase||h,i._parentComponent=e,U(i,w,0,a,!1),V(i,1,n,!0)),g=i.base}else u=m,(b=v)&&(u=e._component=null),(m||1===t)&&(u&&(u._component=null),g=function B(t,n,r,o,i,u){A++||(j=null!=i&&i.ownerSVGElement!==undefined,T=null!=t&&!("__preactattr_"in t));var l=D(t,n,r,o,u);return i&&l.parentNode!==i&&i.appendChild(l),--A||(T=!1,u||L()),l}(u,o,a,n||!d,m&&m.parentNode,!0));if(m&&g!==m&&i!==v){var O=m.parentNode;O&&g!==O&&(O.replaceChild(g,m),b||(m._component=null,F(m,!1)))}if(b&&q(b),(e.base=g)&&!r){for(var C=e,S=e;S=S._parentComponent;)(C=S).base=g;g._component=C,g._componentConstructor=C.constructor}}for(!d||n?P.unshift(e):y||(e.componentDidUpdate&&e.componentDidUpdate(c,p,_),E.afterUpdate&&E.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);A||r||L()}}function q(e){E.beforeUnmount&&E.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?q(n):t&&(t["__preactattr_"]&&t["__preactattr_"].ref&&t["__preactattr_"].ref(null),M(e.nextBase=t),m.push(e),h(t)),e.__ref&&e.__ref(null)}function _(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function b(e,t,n){return B(n,e,{},!1,t,!1)}N(_.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=N(N({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),l(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),V(this,2)},render:function b(){}});var g={h:r,createElement:r,cloneElement:i,Component:_,render:b,rerender:f,options:E};t["default"]=g},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(8),o=n(41);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(9),i=n(39),u=n(40),l=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=u(t,!0),o(n),i)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(42)})},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var i=n(1),u=n(7),l=n(17),s=n(10)("src"),r="toString",o=Function[r],a=(""+o).split(r);n(6).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(l(n,"name")||u(n,"name",t)),e[t]!==n&&(o&&(l(n,s)||u(n,s,e[t]?""+e[t]:a.join(String(t)))),e===i?e[t]=n:r?e[t]?e[t]=n:u(e,t,n):(delete e[t],u(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[s]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(r,o,e){if(i(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(43),o=n(28);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(11),o=n(12);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var s=n(21),a=n(24),c=n(44);e.exports=function(l){return function(e,t,n){var r,o=s(e),i=a(o.length),u=c(n,i);if(l&&t!=t){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((l||u in o)&&o[u]===t)return l||u||0;return!l&&-1}}},function(e,t,n){var r=n(25),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(27)("keys"),o=n(10);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(6),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(45)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(12);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(8).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(32)(1);r(r.P+r.F*!n(13)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var b=n(18),g=n(11),x=n(29),w=n(24),r=n(48);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,_=e||r;return function(e,t,n){for(var r,o,i=x(e),u=g(i),l=b(t,n,3),s=w(u.length),a=0,c=f?_(e,s):d?_(e,0):undefined;a<s;a++)if((y||a in u)&&(o=l(r=u[a],a,i),p))if(f)c[a]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return a;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(22);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(27)("wks"),o=n(10),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(0),o=n(23)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(13)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(0),o=n(32)(2);r(r.P+r.F*!n(13)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(52)})},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(14),n(30),n(31),n(35),n(36),n(50);var r=n(5),o=function s(e){return e&&e.__esModule?e:{"default":e}}(n(51));function i(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=u(e.source)),(0,r.render)((0,r.createElement)(o["default"],e),e.element)}var u=function u(n){return function(t,e){e(n.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};i.enhanceSelectElement=function(n){if(!n.selectElement)throw new Error("selectElement is not defined");if(!n.source){var e=[].filter.call(n.selectElement.options,function(e){return e.value||n.preserveNullOptions});n.source=e.map(function(e){return e.textContent||e.innerText}),n.selectElement.multiple&&(n.multiple=!0,n.confirmOnBlur=!1,n.showNoOptionsFound=!1,n.selectedOptions=e.filter(function(e){return e.selected}))}if(n.onConfirm=n.onConfirm||function(t){var e=[].filter.call(n.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];e&&(e.selected=!0)},n.selectElement.value||n.defaultValue===undefined){var t=n.selectElement.options[n.selectElement.options.selectedIndex];n.selectElement.multiple?n.defaultValue="":(t.textContent||t.innerText)&&(n.defaultValue=t.textContent||t.innerText)}n.name===undefined&&(n.name=""),n.id===undefined&&(n.selectElement.id===undefined?n.id="":n.id=n.selectElement.id),n.autoselect===undefined&&(n.autoselect=!0);var r=document.createElement("span");n.selectElement.parentNode.insertBefore(r,n.selectElement),i(Object.assign({},n,{element:r})),n.selectElement.style.display="none",n.selectElement.id=n.selectElement.id+"-select"};var l=i;t["default"]=l},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(20),d=n(46),h=n(47),m=n(29),v=n(11),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=d.f,u=h.f;o<r;)for(var l,s=v(arguments[o++]),a=i?f(s).concat(i(s)):f(s),c=a.length,p=0;p<c;)u.call(s,l=a[p++])&&(n[l]=s[l]);return n}:o},function(e,t,n){var u=n(17),l=n(21),s=n(23)(!1),a=n(26)("IE_PROTO");e.exports=function(e,t){var n,r=l(e),o=0,i=[];for(n in r)n!=a&&u(r,n)&&i.push(n);for(;t.length>o;)u(r,n=t[o++])&&(~s(i,n)||i.push(n));return i}},function(e,t,n){var r=n(25),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(49);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(33),i=n(34)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=undefined),r(t)&&null===(t=t[i])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(33)})},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(14),n(37),n(31),n(35),n(30),n(36),n(55),n(58);var G=n(5),J=o(n(60)),r=o(n(61));function o(e){return e&&e.__esModule?e:{"default":e}}function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u,l={13:"enter",27:"escape",32:"space",38:"up",40:"down"},Y=((u=document.createElement("x")).style.cssText="pointer-events:auto","auto"===u.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var s=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],selectedOptions:e.selectedOptions?[e.selectedOptions]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(i(i(t))),t.handleKeyDown=t.handleKeyDown.bind(i(i(t))),t.handleUpArrow=t.handleUpArrow.bind(i(i(t))),t.handleDownArrow=t.handleDownArrow.bind(i(i(t))),t.handleEnter=t.handleEnter.bind(i(i(t))),t.handlePrintableKey=t.handlePrintableKey.bind(i(i(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(i(i(t))),t.handleOptionBlur=t.handleOptionBlur.bind(i(i(t))),t.handleOptionClick=t.handleOptionClick.bind(i(i(t))),t.handleOptionFocus=t.handleOptionFocus.bind(i(i(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(i(i(t))),t.handleSelectedOptionClick=t.handleSelectedOptionClick.bind(i(i(t))),t.handleSelectedOptionKeyDown=t.handleSelectedOptionKeyDown.bind(i(i(t))),t.handleInputBlur=t.handleInputBlur.bind(i(i(t))),t.handleInputChange=t.handleInputChange.bind(i(i(t))),t.handleInputFocus=t.handleInputFocus.bind(i(i(t))),t.pollInputElement=t.pollInputElement.bind(i(i(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(i(i(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var l=-1===r,s=u&&null===t.focused;if(l&&s){var a=this.elementReferences[r];a.setSelectionRange(0,a.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[i])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null}),this.props.selectElement&&this.props.selectElement.multiple&&this.setState({menuOpen:!1,selected:null,query:""})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,l=n.selected,s=null===e.relatedTarget&&null===o,a=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&s||!(c||a)){var p=i&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(u[l])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,l=n.selected,s=-1!==r;if(clearTimeout(this.$blurInput),!s){var a=o&&f(),c=f()?u:this.templateInputValue(i[l]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:a,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,i=t.showAllValues,u=this.hasAutoselect(),l=e.target.value,s=0===l.length,a=this.state.query.length!==l.length,c=l.length>=r;this.setState({query:l}),i||!s&&a&&c?o(l,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:u&&t?0:-1})}):!s&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.props.selectElement&&this.props.selectElement.multiple&&this.updateMultiselect(n),this.forceUpdate()},t.updateMultiselect=function(t){if(t){var e=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===t})[0];e&&(e.selected=!0);var n=[].filter.call(this.props.selectElement.options,function(e){return e.textContent});this.props.selectedOptions=n.filter(function(e){return!0===e.selected}),this.setState({menuOpen:!1,selected:null,query:""})}},t.handleSelectedOptionClick=function(e,t){var n=this.props.selectedOptions[t];this.props.selectedOptions=this.props.selectedOptions.filter(function(e){return e!==n});var r=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===n.textContent})[0];r&&(r.selected=!1),this.forceUpdate()},t.handleSelectedOptionKeyDown=function(e,t){switch(l[e.keyCode]){case"space":case"enter":this.handleSelectedOptionClick(e,t)}},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(l[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,i=t.id,u=t.minLength,l=t.name,s=t.placeholder,a=t.required,c=t.multiple,p=t.showAllValues,f=t.tNoResults,d=t.tStatusQueryTooShort,h=t.tStatusNoResults,m=t.tStatusSelectedOption,v=t.tStatusResults,y=t.tSelectedOptionDescription,_=t.dropdownArrow,b=t.customAttributes,g=this.state,x=g.focused,w=g.hovered,O=g.menuOpen,C=g.options,S=g.query,E=g.selected,N=this.hasAutoselect(),k=-1===x,I=0===C.length,M=0!==S.length,P=S.length>=u,A=this.props.showNoOptionsFound&&k&&I&&M&&P,j=n+"__wrapper",T=n+"__input",L=null!==x?" "+T+"--focused":"",B=this.props.showAllValues?" "+T+"--show-all-values":" "+T+"--default",D=n+"__dropdown-arrow-down",F=-1!==x&&null!==x,R=n+"__menu",U=R+"--"+r,V=R+"--"+(O||A?"visible":"hidden"),q=n+"__option",K=n+"__list",W=n+"__hint",$=this.templateInputValue(C[E]),H=$&&0===$.toLowerCase().indexOf(S.toLowerCase())&&N?S+$.substr(S.length):"",Q=Y&&H;return p&&"string"==typeof(e=_({className:D}))&&(e=(0,G.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,G.createElement)("div",{className:j,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":O?"true":"false"},(0,G.createElement)(J["default"],{length:C.length,queryLength:S.length,minQueryLength:u,selectedOption:this.templateInputValue(C[E]),selectedOptionIndex:E,tQueryTooShort:d,tNoResults:h,tSelectedOption:m,tResults:v}),Q&&(0,G.createElement)("span",null,(0,G.createElement)("input",{className:W,readonly:!0,tabIndex:"-1",value:H})),(0,G.createElement)("input",X({"aria-activedescendant":!!F&&i+"__option--"+x,"aria-owns":i+"__listbox",autoComplete:"off",className:""+T+L+B,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function z(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:l,placeholder:s,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:a,value:S},b)),e,(0,G.createElement)("ul",{className:R+" "+U+" "+V,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},C.map(function(e,t){var n=(-1===x?E===t:x===t)&&null===w?" "+q+"--focused":"",r=t%2?" "+q+"--odd":"";return(0,G.createElement)("li",{"aria-selected":x===t,className:""+q+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:i+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),A&&(0,G.createElement)("li",{className:q+" "+q+"--no-results"},f())),c&&(0,G.createElement)("ul",{className:""+K,id:i+"__list",role:"listbox"},this.props.selectedOptions.map(function(e,t){return(0,G.createElement)("li",{id:i+"__option--"+t,className:"autocomplete__selected-option"},(0,G.createElement)("span",{dangerouslySetInnerHTML:{__html:o.templateSuggestion(e.textContent)}}),(0,G.createElement)("button",{type:"button",className:"autocomplete__remove-option","aria-label":o.templateSuggestion(e.textContent)+", selected. "+y(),onClick:function(e){return o.handleSelectedOptionClick(e,t)}},"remove"))}),A&&(0,G.createElement)("li",{className:q+" "+q+"--no-results"},f())))},e}(G.Component);(t["default"]=s).defaultProps={autoselect:!1,cssNamespace:"autocomplete",customAttributes:{},defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,multiple:!1,selectedOptions:{},tNoResults:function(){return"No results found"},tSelectedOptionDescription:function(){return"Press Enter or Space to remove selection"},dropdownArrow:r["default"]}},function(e,t,r){var o=r(9),i=r(53),u=r(28),l=r(26)("IE_PROTO"),s=function(){},a="prototype",c=function(){var e,t=r(15)("iframe"),n=u.length;for(t.style.display="none",r(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[a][u[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[a]=o(e),n=new s,s[a]=null,n[l]=e):n=c(),t===undefined?n:i(n,t)}},function(e,t,n){var u=n(8),l=n(9),s=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){l(e);for(var n,r=s(t),o=r.length,i=0;i<o;)u.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(56)})},function(e,t,n){"use strict";var i=n(19),u=n(2),l=n(57),s=[].slice,a={};e.exports=Function.bind||function(t){var n=i(this),r=s.call(arguments,1),o=function(){var e=r.concat(s.call(arguments));return this instanceof o?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)}(n,e.length,e):l(n,e,t)};return u(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var l=n(7),s=n(16),a=n(4),c=n(12),p=n(34);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),i=o[0],u=o[1];a(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(s(String.prototype,t,i),l(RegExp.prototype,r,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(37);var m=n(5);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,i=e.selectedOptionIndex,u=e.tQueryTooShort,l=e.tNoResults,s=e.tSelectedOption,a=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?s(o,t,i):"",h=null;return h=p?u(r):f?l():a(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(5),o=function i(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])["default"]});
1
+ (function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["accessibleAutocomplete"]=t():e["accessibleAutocomplete"]=t()})(window,function(){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=38)}([function(e,t,n){var m=n(1),v=n(6),y=n(7),_=n(16),b=n(18),g="prototype",x=function(e,t,n){var r,o,i,u,l=e&x.F,s=e&x.G,a=e&x.S,c=e&x.P,p=e&x.B,f=s?m:a?m[t]||(m[t]={}):(m[t]||{})[g],d=s?v:v[t]||(v[t]={}),h=d[g]||(d[g]={});for(r in s&&(n=t),n)i=((o=!l&&f&&f[r]!==undefined)?f:n)[r],u=p&&o?b(i,m):c&&"function"==typeof i?b(Function.call,i):i,f&&_(f,r,i,e&x.U),d[r]!=i&&y(d,r,u),c&&h[r]!=i&&(h[r]=i)};m.core=v,x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128,e.exports=x},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"h",function(){return r}),n.d(t,"createElement",function(){return r}),n.d(t,"cloneElement",function(){return i}),n.d(t,"Component",function(){return _}),n.d(t,"render",function(){return b}),n.d(t,"rerender",function(){return f}),n.d(t,"options",function(){return E});var s=function s(){},E={},a=[],c=[];function r(e,t){var n,r,o,i,u=c;for(i=arguments.length;2<i--;)a.push(arguments[i]);for(t&&null!=t.children&&(a.length||a.push(t.children),delete t.children);a.length;)if((r=a.pop())&&r.pop!==undefined)for(i=r.length;i--;)a.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&n?u[u.length-1]+=r:u===c?u=[r]:u.push(r),n=o;var l=new s;return l.nodeName=e,l.children=u,l.attributes=null==t?undefined:t,l.key=null==t?undefined:t.key,E.vnode!==undefined&&E.vnode(l),l}function N(e,t){for(var n in t)e[n]=t[n];return e}var o="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function i(e,t){return r(e.nodeName,N(N({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var p=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,u=[];function l(e){!e._dirty&&(e._dirty=!0)&&1==u.push(e)&&(E.debounceRendering||o)(f)}function f(){var e,t=u;for(u=[];e=t.pop();)e._dirty&&V(e)}function k(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function I(e){var t=N({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(n!==undefined)for(var r in n)t[r]===undefined&&(t[r]=n[r]);return t}function M(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===p.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var u=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,d,u):e.removeEventListener(t,d,u),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(s){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var l=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?l?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(l?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function d(e){return this._listeners[e.type](E.event&&E.event(e)||e)}var P=[],A=0,j=!1,T=!1;function L(){for(var e;e=P.pop();)E.afterMount&&E.afterMount(e),e.componentDidMount&&e.componentDidMount()}function B(e,t,n,r,o,i){A++||(j=null!=o&&o.ownerSVGElement!==undefined,T=null!=e&&!("__preactattr_"in e));var u=D(e,t,n,r,i);return o&&u.parentNode!==o&&o.appendChild(u),--A||(T=!1,i||L()),u}function D(e,t,n,r,o){var i=e,u=j;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&e.splitText!==undefined&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),F(e,!0))),i["__preactattr_"]=!0,i;var l=t.nodeName;if("function"==typeof l)return function d(e,t,n,r){var o=e&&e._component,i=o,u=e,l=o&&e._componentConstructor===t.nodeName,s=l,a=I(t);for(;o&&!s&&(o=o._parentComponent);)s=o.constructor===t.nodeName;o&&s&&(!r||o._component)?(U(o,a,3,n,r),e=o.base):(i&&!l&&(q(i),e=u=null),o=R(t.nodeName,a,n),e&&!o.nextBase&&(o.nextBase=e,u=null),U(o,a,1,n,r),e=o.base,u&&e!==u&&(u._component=null,F(u,!1)));return e}(e,t,n,r);if(j="svg"===l||"foreignObject"!==l&&j,l=String(l),(!e||!k(e,l))&&(i=function h(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(l,j),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),F(e,!0)}var s=i.firstChild,a=i["__preactattr_"],c=t.children;if(null==a){a=i["__preactattr_"]={};for(var p=i.attributes,f=p.length;f--;)a[p[f].name]=p[f].value}return!T&&c&&1===c.length&&"string"==typeof c[0]&&null!=s&&s.splitText!==undefined&&null==s.nextSibling?s.nodeValue!=c[0]&&(s.nodeValue=c[0]):(c&&c.length||null!=s)&&function S(e,t,n,r,o){var i,u,l,s,a,c=e.childNodes,p=[],f={},d=0,h=0,m=c.length,v=0,y=t?t.length:0;if(0!==m)for(var _=0;_<m;_++){var b=c[_],g=b["__preactattr_"],x=y&&g?b._component?b._component.__key:g.key:null;null!=x?(d++,f[x]=b):(g||(b.splitText!==undefined?!o||b.nodeValue.trim():o))&&(p[v++]=b)}if(0!==y)for(var _=0;_<y;_++){s=t[_],a=null;var x=s.key;if(null!=x)d&&f[x]!==undefined&&(a=f[x],f[x]=undefined,d--);else if(h<v)for(i=h;i<v;i++)if(p[i]!==undefined&&(w=u=p[i],C=o,"string"==typeof(O=s)||"number"==typeof O?w.splitText!==undefined:"string"==typeof O.nodeName?!w._componentConstructor&&k(w,O.nodeName):C||w._componentConstructor===O.nodeName)){a=u,p[i]=undefined,i===v-1&&v--,i===h&&h++;break}a=D(a,s,n,r),l=c[_],a&&a!==e&&a!==l&&(null==l?e.appendChild(a):a===l.nextSibling?M(l):e.insertBefore(a,l))}var w,O,C;if(d)for(var _ in f)f[_]!==undefined&&F(f[_],!1);for(;h<=v;)(a=p[v--])!==undefined&&F(a,!1)}(i,c,n,r,T||null!=a.dangerouslySetInnerHTML),function m(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||v(e,r,n[r],n[r]=undefined,j);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||v(e,r,n[r],n[r]=t[r],j)}(i,t.attributes,a),j=u,i}function F(e,t){var n=e._component;n?q(n):(null!=e["__preactattr_"]&&e["__preactattr_"].ref&&e["__preactattr_"].ref(null),!1!==t&&null!=e["__preactattr_"]||M(e),h(e))}function h(e){for(e=e.lastChild;e;){var t=e.previousSibling;F(e,!0),e=t}}var m=[];function R(e,t,n){var r,o=m.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),_.call(r,t,n)):((r=new _(t,n)).constructor=e,r.render=y);o--;)if(m[o].constructor===e)return r.nextBase=m[o].nextBase,m.splice(o,1),r;return r}function y(e,t,n){return this.constructor(e,n)}function U(e,t,n,r,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,"undefined"==typeof e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===E.syncComponentUpdates&&e.base?l(e):V(e,1,o)),e.__ref&&e.__ref(e))}function V(e,t,n,r){if(!e._disable){var o,i,u,l=e.props,s=e.state,a=e.context,c=e.prevProps||l,p=e.prevState||s,f=e.prevContext||a,d=e.base,h=e.nextBase,m=d||h,v=e._component,y=!1,_=f;if(e.constructor.getDerivedStateFromProps&&(s=N(N({},s),e.constructor.getDerivedStateFromProps(l,s)),e.state=s),d&&(e.props=c,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,s,a)?y=!0:e.componentWillUpdate&&e.componentWillUpdate(l,s,a),e.props=l,e.state=s,e.context=a),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!y){o=e.render(l,s,a),e.getChildContext&&(a=N(N({},a),e.getChildContext())),d&&e.getSnapshotBeforeUpdate&&(_=e.getSnapshotBeforeUpdate(c,p));var b,g,x=o&&o.nodeName;if("function"==typeof x){var w=I(o);(i=v)&&i.constructor===x&&w.key==i.__key?U(i,w,1,a,!1):(b=i,e._component=i=R(x,w,a),i.nextBase=i.nextBase||h,i._parentComponent=e,U(i,w,0,a,!1),V(i,1,n,!0)),g=i.base}else u=m,(b=v)&&(u=e._component=null),(m||1===t)&&(u&&(u._component=null),g=function B(t,n,r,o,i,u){A++||(j=null!=i&&i.ownerSVGElement!==undefined,T=null!=t&&!("__preactattr_"in t));var l=D(t,n,r,o,u);return i&&l.parentNode!==i&&i.appendChild(l),--A||(T=!1,u||L()),l}(u,o,a,n||!d,m&&m.parentNode,!0));if(m&&g!==m&&i!==v){var O=m.parentNode;O&&g!==O&&(O.replaceChild(g,m),b||(m._component=null,F(m,!1)))}if(b&&q(b),(e.base=g)&&!r){for(var C=e,S=e;S=S._parentComponent;)(C=S).base=g;g._component=C,g._componentConstructor=C.constructor}}for(!d||n?P.unshift(e):y||(e.componentDidUpdate&&e.componentDidUpdate(c,p,_),E.afterUpdate&&E.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);A||r||L()}}function q(e){E.beforeUnmount&&E.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?q(n):t&&(t["__preactattr_"]&&t["__preactattr_"].ref&&t["__preactattr_"].ref(null),M(e.nextBase=t),m.push(e),h(t)),e.__ref&&e.__ref(null)}function _(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function b(e,t,n){return B(n,e,{},!1,t,!1)}N(_.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=N(N({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),l(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),V(this,2)},render:function b(){}});var g={h:r,createElement:r,cloneElement:i,Component:_,render:b,rerender:f,options:E};t["default"]=g},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(8),o=n(41);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(9),i=n(39),u=n(40),l=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=u(t,!0),o(n),i)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(42)})},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var i=n(1),u=n(7),l=n(17),s=n(10)("src"),r="toString",o=Function[r],a=(""+o).split(r);n(6).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(l(n,"name")||u(n,"name",t)),e[t]!==n&&(o&&(l(n,s)||u(n,s,e[t]?""+e[t]:a.join(String(t)))),e===i?e[t]=n:r?e[t]?e[t]=n:u(e,t,n):(delete e[t],u(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[s]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(r,o,e){if(i(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(43),o=n(28);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(11),o=n(12);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var s=n(21),a=n(24),c=n(44);e.exports=function(l){return function(e,t,n){var r,o=s(e),i=a(o.length),u=c(n,i);if(l&&t!=t){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((l||u in o)&&o[u]===t)return l||u||0;return!l&&-1}}},function(e,t,n){var r=n(25),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(27)("keys"),o=n(10);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(6),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(45)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(12);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(8).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(32)(1);r(r.P+r.F*!n(13)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var b=n(18),g=n(11),x=n(29),w=n(24),r=n(48);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,_=e||r;return function(e,t,n){for(var r,o,i=x(e),u=g(i),l=b(t,n,3),s=w(u.length),a=0,c=f?_(e,s):d?_(e,0):undefined;a<s;a++)if((y||a in u)&&(o=l(r=u[a],a,i),p))if(f)c[a]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return a;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(22);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(27)("wks"),o=n(10),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(0),o=n(23)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(13)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(0),o=n(32)(2);r(r.P+r.F*!n(13)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(52)})},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(14),n(30),n(31),n(35),n(36),n(50);var r=n(5),o=function s(e){return e&&e.__esModule?e:{"default":e}}(n(51));function i(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=u(e.source)),(0,r.render)((0,r.createElement)(o["default"],e),e.element)}var u=function u(n){return function(t,e){e(n.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};i.enhanceSelectElement=function(n){if(!n.selectElement)throw new Error("selectElement is not defined");if(!n.source){var e=[].filter.call(n.selectElement.options,function(e){return e.value||n.preserveNullOptions});n.source=e.map(function(e){return e.textContent||e.innerText}),n.selectElement.multiple&&(n.multiple=!0,n.confirmOnBlur=!1,n.showNoOptionsFound=!1,n.selectedOptions=e.filter(function(e){return e.selected}))}if(n.onConfirm=n.onConfirm||function(t){var e=[].filter.call(n.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];e?e.selected=!0:n.selectElement.options[0].selected=!0},n.selectElement.value||n.defaultValue===undefined){var t=n.selectElement.options[n.selectElement.options.selectedIndex];n.selectElement.multiple?n.defaultValue="":(t.textContent||t.innerText)&&(n.defaultValue=t.textContent||t.innerText)}n.name===undefined&&(n.name=""),n.id===undefined&&(n.selectElement.id===undefined?n.id="":n.id=n.selectElement.id),n.autoselect===undefined&&(n.autoselect=!0);var r=document.createElement("span");n.selectElement.parentNode.insertBefore(r,n.selectElement),i(Object.assign({},n,{element:r})),n.selectElement.style.display="none",n.selectElement.id=n.selectElement.id+"-select"};var l=i;t["default"]=l},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(20),d=n(46),h=n(47),m=n(29),v=n(11),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=d.f,u=h.f;o<r;)for(var l,s=v(arguments[o++]),a=i?f(s).concat(i(s)):f(s),c=a.length,p=0;p<c;)u.call(s,l=a[p++])&&(n[l]=s[l]);return n}:o},function(e,t,n){var u=n(17),l=n(21),s=n(23)(!1),a=n(26)("IE_PROTO");e.exports=function(e,t){var n,r=l(e),o=0,i=[];for(n in r)n!=a&&u(r,n)&&i.push(n);for(;t.length>o;)u(r,n=t[o++])&&(~s(i,n)||i.push(n));return i}},function(e,t,n){var r=n(25),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(49);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(33),i=n(34)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=undefined),r(t)&&null===(t=t[i])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(33)})},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(14),n(37),n(31),n(35),n(30),n(36),n(55),n(58);var G=n(5),J=o(n(60)),r=o(n(61));function o(e){return e&&e.__esModule?e:{"default":e}}function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u,l={13:"enter",27:"escape",32:"space",38:"up",40:"down"},Y=((u=document.createElement("x")).style.cssText="pointer-events:auto","auto"===u.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var s=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],selectedOptions:e.selectedOptions?[e.selectedOptions]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(i(i(t))),t.handleKeyDown=t.handleKeyDown.bind(i(i(t))),t.handleUpArrow=t.handleUpArrow.bind(i(i(t))),t.handleDownArrow=t.handleDownArrow.bind(i(i(t))),t.handleEnter=t.handleEnter.bind(i(i(t))),t.handlePrintableKey=t.handlePrintableKey.bind(i(i(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(i(i(t))),t.handleOptionBlur=t.handleOptionBlur.bind(i(i(t))),t.handleOptionClick=t.handleOptionClick.bind(i(i(t))),t.handleOptionFocus=t.handleOptionFocus.bind(i(i(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(i(i(t))),t.handleSelectedOptionClick=t.handleSelectedOptionClick.bind(i(i(t))),t.handleSelectedOptionKeyDown=t.handleSelectedOptionKeyDown.bind(i(i(t))),t.handleInputBlur=t.handleInputBlur.bind(i(i(t))),t.handleInputChange=t.handleInputChange.bind(i(i(t))),t.handleInputFocus=t.handleInputFocus.bind(i(i(t))),t.pollInputElement=t.pollInputElement.bind(i(i(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(i(i(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var l=-1===r,s=u&&null===t.focused;if(l&&s){var a=this.elementReferences[r];a.setSelectionRange(0,a.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,r[i]?this.props.onConfirm(r[i]):this.props.onConfirm(r[0])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null}),this.props.selectElement&&this.props.selectElement.multiple&&this.setState({menuOpen:!1,selected:null,query:""})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,l=n.selected,s=null===e.relatedTarget&&null===o,a=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&s||!(c||a)){var p=i&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(u[l])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,l=n.selected,s=-1!==r;if(clearTimeout(this.$blurInput),!s){var a=o&&f(),c=f()?u:this.templateInputValue(i[l]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:a,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,i=t.showAllValues,u=this.hasAutoselect(),l=e.target.value,s=0===l.length,a=this.state.query.length!==l.length,c=l.length>=r;this.setState({query:l}),i||!s&&a&&c?o(l,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:u&&t?0:-1})}):!s&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),n?this.props.onConfirm(n):this.props.onConfirm(this.state.options[0]),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.props.selectElement&&this.props.selectElement.multiple&&this.updateMultiselect(n),this.forceUpdate()},t.updateMultiselect=function(t){if(t){var e=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===t})[0];e&&(e.selected=!0);var n=[].filter.call(this.props.selectElement.options,function(e){return e.textContent});this.props.selectedOptions=n.filter(function(e){return!0===e.selected}),this.setState({menuOpen:!1,selected:null,query:""})}},t.handleSelectedOptionClick=function(e,t){var n=this.props.selectedOptions[t];this.props.selectedOptions=this.props.selectedOptions.filter(function(e){return e!==n});var r=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===n.textContent})[0];r&&(r.selected=!1),this.forceUpdate()},t.handleSelectedOptionKeyDown=function(e,t){switch(l[e.keyCode]){case"space":case"enter":this.handleSelectedOptionClick(e,t)}},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(l[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,i=t.id,u=t.minLength,l=t.name,s=t.placeholder,a=t.required,c=t.multiple,p=t.showAllValues,f=t.tNoResults,d=t.tStatusQueryTooShort,h=t.tStatusNoResults,m=t.tStatusSelectedOption,v=t.tStatusResults,y=t.tSelectedOptionDescription,_=t.dropdownArrow,b=t.customAttributes,g=this.state,x=g.focused,w=g.hovered,O=g.menuOpen,C=g.options,S=g.query,E=g.selected,N=this.hasAutoselect(),k=-1===x,I=0===C.length,M=0!==S.length,P=S.length>=u,A=this.props.showNoOptionsFound&&k&&I&&M&&P,j=n+"__wrapper",T=n+"__input",L=null!==x?" "+T+"--focused":"",B=this.props.showAllValues?" "+T+"--show-all-values":" "+T+"--default",D=n+"__dropdown-arrow-down",F=-1!==x&&null!==x,R=n+"__menu",U=R+"--"+r,V=R+"--"+(O||A?"visible":"hidden"),q=n+"__option",K=n+"__list",W=n+"__hint",$=this.templateInputValue(C[E]),H=$&&0===$.toLowerCase().indexOf(S.toLowerCase())&&N?S+$.substr(S.length):"",Q=Y&&H;return p&&"string"==typeof(e=_({className:D}))&&(e=(0,G.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,G.createElement)("div",{className:j,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":O?"true":"false"},(0,G.createElement)(J["default"],{length:C.length,queryLength:S.length,minQueryLength:u,selectedOption:this.templateInputValue(C[E]),selectedOptionIndex:E,tQueryTooShort:d,tNoResults:h,tSelectedOption:m,tResults:v}),Q&&(0,G.createElement)("span",null,(0,G.createElement)("input",{className:W,readonly:!0,tabIndex:"-1",value:H})),(0,G.createElement)("input",X({"aria-activedescendant":!!F&&i+"__option--"+x,"aria-owns":i+"__listbox",autoComplete:"off",className:""+T+L+B,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function z(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:l,placeholder:s,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:a,value:S},b)),e,(0,G.createElement)("ul",{className:R+" "+U+" "+V,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},C.map(function(e,t){var n=(-1===x?E===t:x===t)&&null===w?" "+q+"--focused":"",r=t%2?" "+q+"--odd":"";return(0,G.createElement)("li",{"aria-selected":x===t,className:""+q+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:i+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),A&&(0,G.createElement)("li",{className:q+" "+q+"--no-results"},f())),c&&(0,G.createElement)("ul",{className:""+K,id:i+"__list",role:"listbox"},this.props.selectedOptions.map(function(e,t){return(0,G.createElement)("li",{id:i+"__option--"+t,className:"autocomplete__selected-option"},(0,G.createElement)("span",{dangerouslySetInnerHTML:{__html:o.templateSuggestion(e.textContent)}}),(0,G.createElement)("button",{type:"button",className:"autocomplete__remove-option","aria-label":o.templateSuggestion(e.textContent)+", selected. "+y(),onClick:function(e){return o.handleSelectedOptionClick(e,t)}},"remove"))}),A&&(0,G.createElement)("li",{className:q+" "+q+"--no-results"},f())))},e}(G.Component);(t["default"]=s).defaultProps={autoselect:!1,cssNamespace:"autocomplete",customAttributes:{},defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,multiple:!1,selectedOptions:{},tNoResults:function(){return"No results found"},tSelectedOptionDescription:function(){return"Press Enter or Space to remove selection"},dropdownArrow:r["default"]}},function(e,t,r){var o=r(9),i=r(53),u=r(28),l=r(26)("IE_PROTO"),s=function(){},a="prototype",c=function(){var e,t=r(15)("iframe"),n=u.length;for(t.style.display="none",r(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[a][u[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[a]=o(e),n=new s,s[a]=null,n[l]=e):n=c(),t===undefined?n:i(n,t)}},function(e,t,n){var u=n(8),l=n(9),s=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){l(e);for(var n,r=s(t),o=r.length,i=0;i<o;)u.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(56)})},function(e,t,n){"use strict";var i=n(19),u=n(2),l=n(57),s=[].slice,a={};e.exports=Function.bind||function(t){var n=i(this),r=s.call(arguments,1),o=function(){var e=r.concat(s.call(arguments));return this instanceof o?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)}(n,e.length,e):l(n,e,t)};return u(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var l=n(7),s=n(16),a=n(4),c=n(12),p=n(34);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),i=o[0],u=o[1];a(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(s(String.prototype,t,i),l(RegExp.prototype,r,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(37);var m=n(5);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,i=e.selectedOptionIndex,u=e.tQueryTooShort,l=e.tNoResults,s=e.tSelectedOption,a=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?s(o,t,i):"",h=null;return h=p?u(r):f?l():a(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(5),o=function i(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])["default"]});
2
2
  //# sourceMappingURL=accessible-autocomplete.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://accessibleAutocomplete/webpack/universalModuleDefinition","webpack://accessibleAutocomplete/webpack/bootstrap","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_export.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_global.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_is-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_fails.js","webpack://accessibleAutocomplete/../node_modules/preact/dist/preact.mjs","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_core.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_hide.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_an-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_uid.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_iobject.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_defined.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_redefine.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_has.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_ctx.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_a-function.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_cof.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-length.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_shared.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_is-array.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_wks.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.filter.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://accessibleAutocomplete/./wrapper.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_library.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.is-array.js","webpack://accessibleAutocomplete/./autocomplete.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_html.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_bind.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_invoke.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://accessibleAutocomplete/./status.js","webpack://accessibleAutocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","define","amd","window","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","Function","U","W","R","Math","self","__g","it","a","exec","e","__webpack_exports__","h","cloneElement","Component","render","rerender","options","VNode","stack","EMPTY_CHILDREN","nodeName","attributes","lastSimple","child","simple","children","arguments","length","push","pop","String","vnode","extend","obj","props","defer","Promise","resolve","then","setTimeout","slice","IS_NON_DIMENSIONAL","items","enqueueRender","component","_dirty","debounceRendering","list","renderComponent","isNamedNode","node","normalizedNodeName","toLowerCase","getNodeProps","defaultProps","removeNode","parentNode","removeChild","setAccessor","old","isSvg","style","cssText","test","innerHTML","__html","useCapture","replace","substring","addEventListener","eventProxy","removeEventListener","_listeners","removeAttribute","removeAttributeNS","setAttributeNS","setAttribute","className","this","event","mounts","diffLevel","isSvgMode","hydrating","flushMounts","afterMount","componentDidMount","diff","dom","context","mountAll","parent","componentRoot","ownerSVGElement","ret","idiff","appendChild","prevSvgMode","splitText","_component","nodeValue","document","createTextNode","replaceChild","recollectNodeTree","vnodeName","buildComponentFromVNode","originalComponent","oldDom","isDirectOwner","_componentConstructor","isOwner","_parentComponent","constructor","setComponentProps","base","unmountComponent","createComponent","nextBase","createNode","createElementNS","createElement","firstChild","fc","vchildren","nextSibling","innerDiffNode","isHydrating","j","f","vchild","originalChildren","childNodes","keyed","keyedLen","min","len","childrenLen","vlen","_child","__key","trim","insertBefore","dangerouslySetInnerHTML","diffAttributes","attrs","unmountOnly","ref","removeChildren","lastChild","next","previousSibling","recyclerComponents","Ctor","inst","doRender","splice","state","renderMode","_disable","__ref","getDerivedStateFromProps","componentWillMount","componentWillReceiveProps","prevContext","prevProps","syncComponentUpdates","isChild","rendered","cbase","previousProps","previousState","prevState","previousContext","isUpdate","initialBase","initialChildComponent","skip","snapshot","shouldComponentUpdate","componentWillUpdate","getChildContext","getSnapshotBeforeUpdate","toUnmount","childComponent","childProps","baseParent","componentRef","unshift","componentDidUpdate","afterUpdate","_renderCallbacks","beforeUnmount","componentWillUnmount","inner","merge","setState","callback","forceUpdate","preact","version","__e","dP","createDesc","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","fails","method","arg","assign","is","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","aFunction","fn","that","b","apply","$keys","enumBugKeys","keys","IObject","defined","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","ceil","floor","isNaN","shared","uid","SHARED","store","copyright","FProto","nameRE","configurable","match","$map","map","callbackfn","toObject","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","res","result","Array","isArray","USE_SYMBOL","$indexOf","$native","indexOf","NEGATIVE_ZERO","searchElement","$filter","filter","_preact","_autocomplete","_interopRequireDefault","accessibleAutocomplete","element","Error","createSimpleEngine","values","query","syncResults","enhanceSelectElement","configurationOptions","selectElement","availableOptions","option","preserveNullOptions","textContent","innerText","multiple","confirmOnBlur","showNoOptionsFound","selectedOptions","selected","onConfirm","requestedOption","defaultValue","selectedIndex","autoselect","display","valueOf","bitmap","writable","getKeys","gOPS","pIE","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","arrayIndexOf","IE_PROTO","names","max","getOwnPropertySymbols","speciesConstructor","original","SPECIES","C","_status","_dropdownArrowDown","keyCodes","13","27","32","38","40","hasPointerEvents","pointerEvents","isIosDevice","navigator","userAgent","Autocomplete","_this","_Component","elementReferences","focused","hovered","clicked","menuOpen","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleSelectedOptionClick","handleSelectedOptionKeyDown","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","clearTimeout","$pollInput","$blurInput","_this2","inputReference","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","updateMultiselect","addedSelectOption","removedOption","removedSelectOption","keyCode","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","isPrintableKeyCode","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","tSelectedOptionDescription","dropdownArrowFactory","customAttributes","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","selectedOptionsClassName","hintClassName","selectedOptionText","hintValue","substr","showHint","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onInput","onFocus","onMouseLeave","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","aria-label","DropdownArrowDown","dPs","Empty","createDict","iframeDocument","iframe","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","invoke","arraySlice","factories","partArgs","bound","args","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings":"CAAA,SAAAA,iCAAAC,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,IACA,mBAAAG,eAAAC,IACAD,OAAA,GAAAH,GACA,iBAAAC,QACAA,QAAA,0BAAAD,IAEAD,EAAA,0BAAAC,KARA,CASCK,OAAA,WACD,mBCTA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA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ACvD,EAAgB9Y,EAAQgO,GAAzB,OAAsC8K,EAAtC,MAAyD9K,EAAQ,GAAjE,OAAyEhO,EAAzE,kBACjBsc,SAAU,SAACtc,EAAQkgB,GAMjB,OAAUlgB,EAAV,KAJsB,IAAXA,EAAgB,SAAW,WAItC,KAHkB,IAAXA,EAAgB,KAAO,OAG9B,eAA2DkgB,sECbjE,IAAA3P,EAAA9V,EAAA,KAE0B,SAApBijB,EAAoBoC,GAAA,IAAG5c,EAAH4c,EAAG5c,UAAH,OACxB,EAAAqN,EAAAzK,eAAA,OAAK+E,QAAQ,MAAMmW,MAAM,6BAA6B9d,UAAWA,EAAW+d,UAAU,UACpF,EAAA1Q,EAAAzK,eAAA,KAAGob,OAAO,OAAOC,KAAK,OAAOC,YAAU,YACrC,EAAA7Q,EAAAzK,eAAA,WAASqb,KAAK,UAAUE,OAAO","file":"accessible-autocomplete.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"accessibleAutocomplete\"] = factory();\n\telse\n\t\troot[\"accessibleAutocomplete\"] = factory();\n})(window, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 38);\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var VNode = function VNode() {};\n\nvar options = {};\n\nvar stack = [];\n\nvar EMPTY_CHILDREN = [];\n\nfunction h(nodeName, attributes) {\n\tvar children = EMPTY_CHILDREN,\n\t lastSimple,\n\t child,\n\t simple,\n\t i;\n\tfor (i = arguments.length; i-- > 2;) {\n\t\tstack.push(arguments[i]);\n\t}\n\tif (attributes && attributes.children != null) {\n\t\tif (!stack.length) stack.push(attributes.children);\n\t\tdelete attributes.children;\n\t}\n\twhile (stack.length) {\n\t\tif ((child = stack.pop()) && child.pop !== undefined) {\n\t\t\tfor (i = child.length; i--;) {\n\t\t\t\tstack.push(child[i]);\n\t\t\t}\n\t\t} else {\n\t\t\tif (typeof child === 'boolean') child = null;\n\n\t\t\tif (simple = typeof nodeName !== 'function') {\n\t\t\t\tif (child == null) child = '';else if (typeof child === 'number') child = String(child);else if (typeof child !== 'string') simple = false;\n\t\t\t}\n\n\t\t\tif (simple && lastSimple) {\n\t\t\t\tchildren[children.length - 1] += child;\n\t\t\t} else if (children === EMPTY_CHILDREN) {\n\t\t\t\tchildren = [child];\n\t\t\t} else {\n\t\t\t\tchildren.push(child);\n\t\t\t}\n\n\t\t\tlastSimple = simple;\n\t\t}\n\t}\n\n\tvar p = new VNode();\n\tp.nodeName = nodeName;\n\tp.children = children;\n\tp.attributes = attributes == null ? undefined : attributes;\n\tp.key = attributes == null ? undefined : attributes.key;\n\n\tif (options.vnode !== undefined) options.vnode(p);\n\n\treturn p;\n}\n\nfunction extend(obj, props) {\n for (var i in props) {\n obj[i] = props[i];\n }return obj;\n}\n\nvar defer = typeof Promise == 'function' ? Promise.resolve().then.bind(Promise.resolve()) : setTimeout;\n\nfunction cloneElement(vnode, props) {\n return h(vnode.nodeName, extend(extend({}, vnode.attributes), props), arguments.length > 2 ? [].slice.call(arguments, 2) : vnode.children);\n}\n\nvar IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;\n\nvar items = [];\n\nfunction enqueueRender(component) {\n\tif (!component._dirty && (component._dirty = true) && items.push(component) == 1) {\n\t\t(options.debounceRendering || defer)(rerender);\n\t}\n}\n\nfunction rerender() {\n\tvar p,\n\t list = items;\n\titems = [];\n\twhile (p = list.pop()) {\n\t\tif (p._dirty) renderComponent(p);\n\t}\n}\n\nfunction isSameNodeType(node, vnode, hydrating) {\n\tif (typeof vnode === 'string' || typeof vnode === 'number') {\n\t\treturn node.splitText !== undefined;\n\t}\n\tif (typeof vnode.nodeName === 'string') {\n\t\treturn !node._componentConstructor && isNamedNode(node, vnode.nodeName);\n\t}\n\treturn hydrating || node._componentConstructor === vnode.nodeName;\n}\n\nfunction isNamedNode(node, nodeName) {\n\treturn node.normalizedNodeName === nodeName || node.nodeName.toLowerCase() === nodeName.toLowerCase();\n}\n\nfunction getNodeProps(vnode) {\n\tvar props = extend({}, vnode.attributes);\n\tprops.children = vnode.children;\n\n\tvar defaultProps = vnode.nodeName.defaultProps;\n\tif (defaultProps !== undefined) {\n\t\tfor (var i in defaultProps) {\n\t\t\tif (props[i] === undefined) {\n\t\t\t\tprops[i] = defaultProps[i];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn props;\n}\n\nfunction createNode(nodeName, isSvg) {\n\tvar node = isSvg ? document.createElementNS('http://www.w3.org/2000/svg', nodeName) : document.createElement(nodeName);\n\tnode.normalizedNodeName = nodeName;\n\treturn node;\n}\n\nfunction removeNode(node) {\n\tvar parentNode = node.parentNode;\n\tif (parentNode) parentNode.removeChild(node);\n}\n\nfunction setAccessor(node, name, old, value, isSvg) {\n\tif (name === 'className') name = 'class';\n\n\tif (name === 'key') {} else if (name === 'ref') {\n\t\tif (old) old(null);\n\t\tif (value) value(node);\n\t} else if (name === 'class' && !isSvg) {\n\t\tnode.className = value || '';\n\t} else if (name === 'style') {\n\t\tif (!value || typeof value === 'string' || typeof old === 'string') {\n\t\t\tnode.style.cssText = value || '';\n\t\t}\n\t\tif (value && typeof value === 'object') {\n\t\t\tif (typeof old !== 'string') {\n\t\t\t\tfor (var i in old) {\n\t\t\t\t\tif (!(i in value)) node.style[i] = '';\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (var i in value) {\n\t\t\t\tnode.style[i] = typeof value[i] === 'number' && IS_NON_DIMENSIONAL.test(i) === false ? value[i] + 'px' : value[i];\n\t\t\t}\n\t\t}\n\t} else if (name === 'dangerouslySetInnerHTML') {\n\t\tif (value) node.innerHTML = value.__html || '';\n\t} else if (name[0] == 'o' && name[1] == 'n') {\n\t\tvar useCapture = name !== (name = name.replace(/Capture$/, ''));\n\t\tname = name.toLowerCase().substring(2);\n\t\tif (value) {\n\t\t\tif (!old) node.addEventListener(name, eventProxy, useCapture);\n\t\t} else {\n\t\t\tnode.removeEventListener(name, eventProxy, useCapture);\n\t\t}\n\t\t(node._listeners || (node._listeners = {}))[name] = value;\n\t} else if (name !== 'list' && name !== 'type' && !isSvg && name in node) {\n\t\ttry {\n\t\t\tnode[name] = value == null ? '' : value;\n\t\t} catch (e) {}\n\t\tif ((value == null || value === false) && name != 'spellcheck') node.removeAttribute(name);\n\t} else {\n\t\tvar ns = isSvg && name !== (name = name.replace(/^xlink:?/, ''));\n\n\t\tif (value == null || value === false) {\n\t\t\tif (ns) node.removeAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase());else node.removeAttribute(name);\n\t\t} else if (typeof value !== 'function') {\n\t\t\tif (ns) node.setAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase(), value);else node.setAttribute(name, value);\n\t\t}\n\t}\n}\n\nfunction eventProxy(e) {\n\treturn this._listeners[e.type](options.event && options.event(e) || e);\n}\n\nvar mounts = [];\n\nvar diffLevel = 0;\n\nvar isSvgMode = false;\n\nvar hydrating = false;\n\nfunction flushMounts() {\n\tvar c;\n\twhile (c = mounts.pop()) {\n\t\tif (options.afterMount) options.afterMount(c);\n\t\tif (c.componentDidMount) c.componentDidMount();\n\t}\n}\n\nfunction diff(dom, vnode, context, mountAll, parent, componentRoot) {\n\tif (!diffLevel++) {\n\t\tisSvgMode = parent != null && parent.ownerSVGElement !== undefined;\n\n\t\thydrating = dom != null && !('__preactattr_' in dom);\n\t}\n\n\tvar ret = idiff(dom, vnode, context, mountAll, componentRoot);\n\n\tif (parent && ret.parentNode !== parent) parent.appendChild(ret);\n\n\tif (! --diffLevel) {\n\t\thydrating = false;\n\n\t\tif (!componentRoot) flushMounts();\n\t}\n\n\treturn ret;\n}\n\nfunction idiff(dom, vnode, context, mountAll, componentRoot) {\n\tvar out = dom,\n\t prevSvgMode = isSvgMode;\n\n\tif (vnode == null || typeof vnode === 'boolean') vnode = '';\n\n\tif (typeof vnode === 'string' || typeof vnode === 'number') {\n\t\tif (dom && dom.splitText !== undefined && dom.parentNode && (!dom._component || componentRoot)) {\n\t\t\tif (dom.nodeValue != vnode) {\n\t\t\t\tdom.nodeValue = vnode;\n\t\t\t}\n\t\t} else {\n\t\t\tout = document.createTextNode(vnode);\n\t\t\tif (dom) {\n\t\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\t\t\t\trecollectNodeTree(dom, true);\n\t\t\t}\n\t\t}\n\n\t\tout['__preactattr_'] = true;\n\n\t\treturn out;\n\t}\n\n\tvar vnodeName = vnode.nodeName;\n\tif (typeof vnodeName === 'function') {\n\t\treturn buildComponentFromVNode(dom, vnode, context, mountAll);\n\t}\n\n\tisSvgMode = vnodeName === 'svg' ? true : vnodeName === 'foreignObject' ? false : isSvgMode;\n\n\tvnodeName = String(vnodeName);\n\tif (!dom || !isNamedNode(dom, vnodeName)) {\n\t\tout = createNode(vnodeName, isSvgMode);\n\n\t\tif (dom) {\n\t\t\twhile (dom.firstChild) {\n\t\t\t\tout.appendChild(dom.firstChild);\n\t\t\t}\n\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\n\t\t\trecollectNodeTree(dom, true);\n\t\t}\n\t}\n\n\tvar fc = out.firstChild,\n\t props = out['__preactattr_'],\n\t vchildren = vnode.children;\n\n\tif (props == null) {\n\t\tprops = out['__preactattr_'] = {};\n\t\tfor (var a = out.attributes, i = a.length; i--;) {\n\t\t\tprops[a[i].name] = a[i].value;\n\t\t}\n\t}\n\n\tif (!hydrating && vchildren && vchildren.length === 1 && typeof vchildren[0] === 'string' && fc != null && fc.splitText !== undefined && fc.nextSibling == null) {\n\t\tif (fc.nodeValue != vchildren[0]) {\n\t\t\tfc.nodeValue = vchildren[0];\n\t\t}\n\t} else if (vchildren && vchildren.length || fc != null) {\n\t\t\tinnerDiffNode(out, vchildren, context, mountAll, hydrating || props.dangerouslySetInnerHTML != null);\n\t\t}\n\n\tdiffAttributes(out, vnode.attributes, props);\n\n\tisSvgMode = prevSvgMode;\n\n\treturn out;\n}\n\nfunction innerDiffNode(dom, vchildren, context, mountAll, isHydrating) {\n\tvar originalChildren = dom.childNodes,\n\t children = [],\n\t keyed = {},\n\t keyedLen = 0,\n\t min = 0,\n\t len = originalChildren.length,\n\t childrenLen = 0,\n\t vlen = vchildren ? vchildren.length : 0,\n\t j,\n\t c,\n\t f,\n\t vchild,\n\t child;\n\n\tif (len !== 0) {\n\t\tfor (var i = 0; i < len; i++) {\n\t\t\tvar _child = originalChildren[i],\n\t\t\t props = _child['__preactattr_'],\n\t\t\t key = vlen && props ? _child._component ? _child._component.__key : props.key : null;\n\t\t\tif (key != null) {\n\t\t\t\tkeyedLen++;\n\t\t\t\tkeyed[key] = _child;\n\t\t\t} else if (props || (_child.splitText !== undefined ? isHydrating ? _child.nodeValue.trim() : true : isHydrating)) {\n\t\t\t\tchildren[childrenLen++] = _child;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (vlen !== 0) {\n\t\tfor (var i = 0; i < vlen; i++) {\n\t\t\tvchild = vchildren[i];\n\t\t\tchild = null;\n\n\t\t\tvar key = vchild.key;\n\t\t\tif (key != null) {\n\t\t\t\tif (keyedLen && keyed[key] !== undefined) {\n\t\t\t\t\tchild = keyed[key];\n\t\t\t\t\tkeyed[key] = undefined;\n\t\t\t\t\tkeyedLen--;\n\t\t\t\t}\n\t\t\t} else if (min < childrenLen) {\n\t\t\t\t\tfor (j = min; j < childrenLen; j++) {\n\t\t\t\t\t\tif (children[j] !== undefined && isSameNodeType(c = children[j], vchild, isHydrating)) {\n\t\t\t\t\t\t\tchild = c;\n\t\t\t\t\t\t\tchildren[j] = undefined;\n\t\t\t\t\t\t\tif (j === childrenLen - 1) childrenLen--;\n\t\t\t\t\t\t\tif (j === min) min++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\tchild = idiff(child, vchild, context, mountAll);\n\n\t\t\tf = originalChildren[i];\n\t\t\tif (child && child !== dom && child !== f) {\n\t\t\t\tif (f == null) {\n\t\t\t\t\tdom.appendChild(child);\n\t\t\t\t} else if (child === f.nextSibling) {\n\t\t\t\t\tremoveNode(f);\n\t\t\t\t} else {\n\t\t\t\t\tdom.insertBefore(child, f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif (keyedLen) {\n\t\tfor (var i in keyed) {\n\t\t\tif (keyed[i] !== undefined) recollectNodeTree(keyed[i], false);\n\t\t}\n\t}\n\n\twhile (min <= childrenLen) {\n\t\tif ((child = children[childrenLen--]) !== undefined) recollectNodeTree(child, false);\n\t}\n}\n\nfunction recollectNodeTree(node, unmountOnly) {\n\tvar component = node._component;\n\tif (component) {\n\t\tunmountComponent(component);\n\t} else {\n\t\tif (node['__preactattr_'] != null && node['__preactattr_'].ref) node['__preactattr_'].ref(null);\n\n\t\tif (unmountOnly === false || node['__preactattr_'] == null) {\n\t\t\tremoveNode(node);\n\t\t}\n\n\t\tremoveChildren(node);\n\t}\n}\n\nfunction removeChildren(node) {\n\tnode = node.lastChild;\n\twhile (node) {\n\t\tvar next = node.previousSibling;\n\t\trecollectNodeTree(node, true);\n\t\tnode = next;\n\t}\n}\n\nfunction diffAttributes(dom, attrs, old) {\n\tvar name;\n\n\tfor (name in old) {\n\t\tif (!(attrs && attrs[name] != null) && old[name] != null) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = undefined, isSvgMode);\n\t\t}\n\t}\n\n\tfor (name in attrs) {\n\t\tif (name !== 'children' && name !== 'innerHTML' && (!(name in old) || attrs[name] !== (name === 'value' || name === 'checked' ? dom[name] : old[name]))) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = attrs[name], isSvgMode);\n\t\t}\n\t}\n}\n\nvar recyclerComponents = [];\n\nfunction createComponent(Ctor, props, context) {\n\tvar inst,\n\t i = recyclerComponents.length;\n\n\tif (Ctor.prototype && Ctor.prototype.render) {\n\t\tinst = new Ctor(props, context);\n\t\tComponent.call(inst, props, context);\n\t} else {\n\t\tinst = new Component(props, context);\n\t\tinst.constructor = Ctor;\n\t\tinst.render = doRender;\n\t}\n\n\twhile (i--) {\n\t\tif (recyclerComponents[i].constructor === Ctor) {\n\t\t\tinst.nextBase = recyclerComponents[i].nextBase;\n\t\t\trecyclerComponents.splice(i, 1);\n\t\t\treturn inst;\n\t\t}\n\t}\n\n\treturn inst;\n}\n\nfunction doRender(props, state, context) {\n\treturn this.constructor(props, context);\n}\n\nfunction setComponentProps(component, props, renderMode, context, mountAll) {\n\tif (component._disable) return;\n\tcomponent._disable = true;\n\n\tcomponent.__ref = props.ref;\n\tcomponent.__key = props.key;\n\tdelete props.ref;\n\tdelete props.key;\n\n\tif (typeof component.constructor.getDerivedStateFromProps === 'undefined') {\n\t\tif (!component.base || mountAll) {\n\t\t\tif (component.componentWillMount) component.componentWillMount();\n\t\t} else if (component.componentWillReceiveProps) {\n\t\t\tcomponent.componentWillReceiveProps(props, context);\n\t\t}\n\t}\n\n\tif (context && context !== component.context) {\n\t\tif (!component.prevContext) component.prevContext = component.context;\n\t\tcomponent.context = context;\n\t}\n\n\tif (!component.prevProps) component.prevProps = component.props;\n\tcomponent.props = props;\n\n\tcomponent._disable = false;\n\n\tif (renderMode !== 0) {\n\t\tif (renderMode === 1 || options.syncComponentUpdates !== false || !component.base) {\n\t\t\trenderComponent(component, 1, mountAll);\n\t\t} else {\n\t\t\tenqueueRender(component);\n\t\t}\n\t}\n\n\tif (component.__ref) component.__ref(component);\n}\n\nfunction renderComponent(component, renderMode, mountAll, isChild) {\n\tif (component._disable) return;\n\n\tvar props = component.props,\n\t state = component.state,\n\t context = component.context,\n\t previousProps = component.prevProps || props,\n\t previousState = component.prevState || state,\n\t previousContext = component.prevContext || context,\n\t isUpdate = component.base,\n\t nextBase = component.nextBase,\n\t initialBase = isUpdate || nextBase,\n\t initialChildComponent = component._component,\n\t skip = false,\n\t snapshot = previousContext,\n\t rendered,\n\t inst,\n\t cbase;\n\n\tif (component.constructor.getDerivedStateFromProps) {\n\t\tstate = extend(extend({}, state), component.constructor.getDerivedStateFromProps(props, state));\n\t\tcomponent.state = state;\n\t}\n\n\tif (isUpdate) {\n\t\tcomponent.props = previousProps;\n\t\tcomponent.state = previousState;\n\t\tcomponent.context = previousContext;\n\t\tif (renderMode !== 2 && component.shouldComponentUpdate && component.shouldComponentUpdate(props, state, context) === false) {\n\t\t\tskip = true;\n\t\t} else if (component.componentWillUpdate) {\n\t\t\tcomponent.componentWillUpdate(props, state, context);\n\t\t}\n\t\tcomponent.props = props;\n\t\tcomponent.state = state;\n\t\tcomponent.context = context;\n\t}\n\n\tcomponent.prevProps = component.prevState = component.prevContext = component.nextBase = null;\n\tcomponent._dirty = false;\n\n\tif (!skip) {\n\t\trendered = component.render(props, state, context);\n\n\t\tif (component.getChildContext) {\n\t\t\tcontext = extend(extend({}, context), component.getChildContext());\n\t\t}\n\n\t\tif (isUpdate && component.getSnapshotBeforeUpdate) {\n\t\t\tsnapshot = component.getSnapshotBeforeUpdate(previousProps, previousState);\n\t\t}\n\n\t\tvar childComponent = rendered && rendered.nodeName,\n\t\t toUnmount,\n\t\t base;\n\n\t\tif (typeof childComponent === 'function') {\n\n\t\t\tvar childProps = getNodeProps(rendered);\n\t\t\tinst = initialChildComponent;\n\n\t\t\tif (inst && inst.constructor === childComponent && childProps.key == inst.__key) {\n\t\t\t\tsetComponentProps(inst, childProps, 1, context, false);\n\t\t\t} else {\n\t\t\t\ttoUnmount = inst;\n\n\t\t\t\tcomponent._component = inst = createComponent(childComponent, childProps, context);\n\t\t\t\tinst.nextBase = inst.nextBase || nextBase;\n\t\t\t\tinst._parentComponent = component;\n\t\t\t\tsetComponentProps(inst, childProps, 0, context, false);\n\t\t\t\trenderComponent(inst, 1, mountAll, true);\n\t\t\t}\n\n\t\t\tbase = inst.base;\n\t\t} else {\n\t\t\tcbase = initialBase;\n\n\t\t\ttoUnmount = initialChildComponent;\n\t\t\tif (toUnmount) {\n\t\t\t\tcbase = component._component = null;\n\t\t\t}\n\n\t\t\tif (initialBase || renderMode === 1) {\n\t\t\t\tif (cbase) cbase._component = null;\n\t\t\t\tbase = diff(cbase, rendered, context, mountAll || !isUpdate, initialBase && initialBase.parentNode, true);\n\t\t\t}\n\t\t}\n\n\t\tif (initialBase && base !== initialBase && inst !== initialChildComponent) {\n\t\t\tvar baseParent = initialBase.parentNode;\n\t\t\tif (baseParent && base !== baseParent) {\n\t\t\t\tbaseParent.replaceChild(base, initialBase);\n\n\t\t\t\tif (!toUnmount) {\n\t\t\t\t\tinitialBase._component = null;\n\t\t\t\t\trecollectNodeTree(initialBase, false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (toUnmount) {\n\t\t\tunmountComponent(toUnmount);\n\t\t}\n\n\t\tcomponent.base = base;\n\t\tif (base && !isChild) {\n\t\t\tvar componentRef = component,\n\t\t\t t = component;\n\t\t\twhile (t = t._parentComponent) {\n\t\t\t\t(componentRef = t).base = base;\n\t\t\t}\n\t\t\tbase._component = componentRef;\n\t\t\tbase._componentConstructor = componentRef.constructor;\n\t\t}\n\t}\n\n\tif (!isUpdate || mountAll) {\n\t\tmounts.unshift(component);\n\t} else if (!skip) {\n\n\t\tif (component.componentDidUpdate) {\n\t\t\tcomponent.componentDidUpdate(previousProps, previousState, snapshot);\n\t\t}\n\t\tif (options.afterUpdate) options.afterUpdate(component);\n\t}\n\n\twhile (component._renderCallbacks.length) {\n\t\tcomponent._renderCallbacks.pop().call(component);\n\t}if (!diffLevel && !isChild) flushMounts();\n}\n\nfunction buildComponentFromVNode(dom, vnode, context, mountAll) {\n\tvar c = dom && dom._component,\n\t originalComponent = c,\n\t oldDom = dom,\n\t isDirectOwner = c && dom._componentConstructor === vnode.nodeName,\n\t isOwner = isDirectOwner,\n\t props = getNodeProps(vnode);\n\twhile (c && !isOwner && (c = c._parentComponent)) {\n\t\tisOwner = c.constructor === vnode.nodeName;\n\t}\n\n\tif (c && isOwner && (!mountAll || c._component)) {\n\t\tsetComponentProps(c, props, 3, context, mountAll);\n\t\tdom = c.base;\n\t} else {\n\t\tif (originalComponent && !isDirectOwner) {\n\t\t\tunmountComponent(originalComponent);\n\t\t\tdom = oldDom = null;\n\t\t}\n\n\t\tc = createComponent(vnode.nodeName, props, context);\n\t\tif (dom && !c.nextBase) {\n\t\t\tc.nextBase = dom;\n\n\t\t\toldDom = null;\n\t\t}\n\t\tsetComponentProps(c, props, 1, context, mountAll);\n\t\tdom = c.base;\n\n\t\tif (oldDom && dom !== oldDom) {\n\t\t\toldDom._component = null;\n\t\t\trecollectNodeTree(oldDom, false);\n\t\t}\n\t}\n\n\treturn dom;\n}\n\nfunction unmountComponent(component) {\n\tif (options.beforeUnmount) options.beforeUnmount(component);\n\n\tvar base = component.base;\n\n\tcomponent._disable = true;\n\n\tif (component.componentWillUnmount) component.componentWillUnmount();\n\n\tcomponent.base = null;\n\n\tvar inner = component._component;\n\tif (inner) {\n\t\tunmountComponent(inner);\n\t} else if (base) {\n\t\tif (base['__preactattr_'] && base['__preactattr_'].ref) base['__preactattr_'].ref(null);\n\n\t\tcomponent.nextBase = base;\n\n\t\tremoveNode(base);\n\t\trecyclerComponents.push(component);\n\n\t\tremoveChildren(base);\n\t}\n\n\tif (component.__ref) component.__ref(null);\n}\n\nfunction Component(props, context) {\n\tthis._dirty = true;\n\n\tthis.context = context;\n\n\tthis.props = props;\n\n\tthis.state = this.state || {};\n\n\tthis._renderCallbacks = [];\n}\n\nextend(Component.prototype, {\n\tsetState: function setState(state, callback) {\n\t\tif (!this.prevState) this.prevState = this.state;\n\t\tthis.state = extend(extend({}, this.state), typeof state === 'function' ? state(this.state, this.props) : state);\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\tenqueueRender(this);\n\t},\n\tforceUpdate: function forceUpdate(callback) {\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\trenderComponent(this, 2);\n\t},\n\trender: function render() {}\n});\n\nfunction render(vnode, parent, merge) {\n return diff(merge, vnode, {}, false, parent, false);\n}\n\nvar preact = {\n\th: h,\n\tcreateElement: h,\n\tcloneElement: cloneElement,\n\tComponent: Component,\n\trender: render,\n\trerender: rerender,\n\toptions: options\n};\n\nexport default preact;\nexport { h, h as createElement, cloneElement, Component, render, rerender, options };\n//# sourceMappingURL=preact.mjs.map\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","import { createElement, render } from 'preact' /** @jsx createElement */\nimport Autocomplete from './autocomplete'\n\nfunction accessibleAutocomplete (options) {\n if (!options.element) { throw new Error('element is not defined') }\n if (!options.id) { throw new Error('id is not defined') }\n if (!options.source) { throw new Error('source is not defined') }\n if (Array.isArray(options.source)) {\n options.source = createSimpleEngine(options.source)\n }\n render(<Autocomplete {...options} />, options.element)\n}\n\nconst createSimpleEngine = (values) => (query, syncResults) => {\n var matches = values.filter(r => r.toLowerCase().indexOf(query.toLowerCase()) !== -1)\n syncResults(matches)\n}\n\naccessibleAutocomplete.enhanceSelectElement = (configurationOptions) => {\n if (!configurationOptions.selectElement) { throw new Error('selectElement is not defined') }\n\n // Set defaults.\n if (!configurationOptions.source) {\n let availableOptions = [].filter.call(configurationOptions.selectElement.options, option => (option.value || configurationOptions.preserveNullOptions))\n configurationOptions.source = availableOptions.map(option => option.textContent || option.innerText)\n\n // Store selected options\n if (configurationOptions.selectElement.multiple) {\n configurationOptions.multiple = true\n configurationOptions.confirmOnBlur = false\n configurationOptions.showNoOptionsFound = false\n configurationOptions.selectedOptions = availableOptions.filter(option => option.selected)\n }\n }\n configurationOptions.onConfirm = configurationOptions.onConfirm || (query => {\n const requestedOption = [].filter.call(configurationOptions.selectElement.options, option => (option.textContent || option.innerText) === query)[0]\n if (requestedOption) { requestedOption.selected = true }\n })\n\n if (configurationOptions.selectElement.value || configurationOptions.defaultValue === undefined) {\n const option = configurationOptions.selectElement.options[configurationOptions.selectElement.options.selectedIndex]\n if (configurationOptions.selectElement.multiple) {\n configurationOptions.defaultValue = ''\n } else if (option.textContent || option.innerText) {\n configurationOptions.defaultValue = option.textContent || option.innerText\n }\n }\n\n if (configurationOptions.name === undefined) configurationOptions.name = ''\n if (configurationOptions.id === undefined) {\n if (configurationOptions.selectElement.id === undefined) {\n configurationOptions.id = ''\n } else {\n configurationOptions.id = configurationOptions.selectElement.id\n }\n }\n if (configurationOptions.autoselect === undefined) configurationOptions.autoselect = true\n\n const element = document.createElement('span')\n\n configurationOptions.selectElement.parentNode.insertBefore(element, configurationOptions.selectElement)\n\n accessibleAutocomplete({\n ...configurationOptions,\n element: element\n })\n\n configurationOptions.selectElement.style.display = 'none'\n configurationOptions.selectElement.id = configurationOptions.selectElement.id + '-select'\n}\n\nexport default accessibleAutocomplete\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)\nvar $export = require('./_export');\n\n$export($export.S, 'Array', { isArray: require('./_is-array') });\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n customAttributes: {},\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n multiple: false,\n selectedOptions: {},\n tNoResults: () => 'No results found',\n tSelectedOptionDescription: () => 'Press Enter or Space to remove selection',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n selectedOptions: props.selectedOptions ? [props.selectedOptions] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleSelectedOptionClick = this.handleSelectedOptionClick.bind(this)\n this.handleSelectedOptionKeyDown = this.handleSelectedOptionKeyDown.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n this.props.onConfirm(options[selected])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n\n if (this.props.selectElement && this.props.selectElement.multiple) {\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n this.props.onConfirm(selectedOption)\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n if (this.props.selectElement && this.props.selectElement.multiple) {\n this.updateMultiselect(selectedOption)\n }\n this.forceUpdate()\n }\n\n updateMultiselect (selectedOption) {\n if (selectedOption) {\n // Update select state for option\n const addedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === selectedOption)[0]\n if (addedSelectOption) { addedSelectOption.selected = true }\n\n // Update multiselect list\n let availableOptions = [].filter.call(this.props.selectElement.options, option => option.textContent)\n this.props.selectedOptions = availableOptions.filter(option => option.selected === true)\n\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleSelectedOptionClick (event, index) {\n // Remove from the list\n const removedOption = this.props.selectedOptions[index]\n this.props.selectedOptions = this.props.selectedOptions.filter(e => e !== removedOption)\n\n // Update select state for option\n const removedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === removedOption.textContent)[0]\n if (removedSelectOption) { removedSelectOption.selected = false }\n\n this.forceUpdate()\n }\n\n handleSelectedOptionKeyDown (event, index) {\n switch (keyCodes[event.keyCode]) {\n case 'space':\n this.handleSelectedOptionClick(event, index)\n break\n case 'enter':\n this.handleSelectedOptionClick(event, index)\n break\n }\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n multiple,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n tSelectedOptionDescription,\n dropdownArrow: dropdownArrowFactory,\n customAttributes\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const selectedOptionsClassName = `${cssNamespace}__list`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n {...customAttributes}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n\n {multiple && (\n <ul\n className={`${selectedOptionsClassName}`}\n id={`${id}__list`}\n role='listbox'\n >\n {this.props.selectedOptions.map((option, index) => {\n return (\n <li id={`${id}__option--${index}`} className='autocomplete__selected-option'>\n <span dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option.textContent) }} />\n <button\n type='button'\n className='autocomplete__remove-option'\n aria-label={`${this.templateSuggestion(option.textContent)}, selected. ${tSelectedOptionDescription()}`}\n onClick={(event) => this.handleSelectedOptionClick(event, index)}>remove</button>\n </li>\n )\n })}\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n )}\n </div>\n )\n }\n}\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://accessibleAutocomplete/webpack/universalModuleDefinition","webpack://accessibleAutocomplete/webpack/bootstrap","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_export.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_global.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_is-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_fails.js","webpack://accessibleAutocomplete/../node_modules/preact/dist/preact.mjs","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_core.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_hide.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_an-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_uid.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_iobject.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_defined.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_redefine.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_has.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_ctx.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_a-function.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_cof.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-length.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_shared.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_is-array.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_wks.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.filter.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://accessibleAutocomplete/./wrapper.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_library.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.is-array.js","webpack://accessibleAutocomplete/./autocomplete.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_html.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_bind.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_invoke.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://accessibleAutocomplete/./status.js","webpack://accessibleAutocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","define","amd","window","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","Function","U","W","R","Math","self","__g","it","a","exec","e","__webpack_exports__","h","cloneElement","Component","render","rerender","options","VNode","stack","EMPTY_CHILDREN","nodeName","attributes","lastSimple","child","simple","children","arguments","length","push","pop","String","vnode","extend","obj","props","defer","Promise","resolve","then","setTimeout","slice","IS_NON_DIMENSIONAL","items","enqueueRender","component","_dirty","debounceRendering","list","renderComponent","isNamedNode","node","normalizedNodeName","toLowerCase","getNodeProps","defaultProps","removeNode","parentNode","removeChild","setAccessor","old","isSvg","style","cssText","test","innerHTML","__html","useCapture","replace","substring","addEventListener","eventProxy","removeEventListener","_listeners","removeAttribute","removeAttributeNS","setAttributeNS","setAttribute","className","this","event","mounts","diffLevel","isSvgMode","hydrating","flushMounts","afterMount","componentDidMount","diff","dom","context","mountAll","parent","componentRoot","ownerSVGElement","ret","idiff","appendChild","prevSvgMode","splitText","_component","nodeValue","document","createTextNode","replaceChild","recollectNodeTree","vnodeName","buildComponentFromVNode","originalComponent","oldDom","isDirectOwner","_componentConstructor","isOwner","_parentComponent","constructor","setComponentProps","base","unmountComponent","createComponent","nextBase","createNode","createElementNS","createElement","firstChild","fc","vchildren","nextSibling","innerDiffNode","isHydrating","j","f","vchild","originalChildren","childNodes","keyed","keyedLen","min","len","childrenLen","vlen","_child","__key","trim","insertBefore","dangerouslySetInnerHTML","diffAttributes","attrs","unmountOnly","ref","removeChildren","lastChild","next","previousSibling","recyclerComponents","Ctor","inst","doRender","splice","state","renderMode","_disable","__ref","getDerivedStateFromProps","componentWillMount","componentWillReceiveProps","prevContext","prevProps","syncComponentUpdates","isChild","rendered","cbase","previousProps","previousState","prevState","previousContext","isUpdate","initialBase","initialChildComponent","skip","snapshot","shouldComponentUpdate","componentWillUpdate","getChildContext","getSnapshotBeforeUpdate","toUnmount","childComponent","childProps","baseParent","componentRef","unshift","componentDidUpdate","afterUpdate","_renderCallbacks","beforeUnmount","componentWillUnmount","inner","merge","setState","callback","forceUpdate","preact","version","__e","dP","createDesc","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","fails","method","arg","assign","is","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","aFunction","fn","that","b","apply","$keys","enumBugKeys","keys","IObject","defined","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","ceil","floor","isNaN","shared","uid","SHARED","store","copyright","FProto","nameRE","configurable","match","$map","map","callbackfn","toObject","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","res","result","Array","isArray","USE_SYMBOL","$indexOf","$native","indexOf","NEGATIVE_ZERO","searchElement","$filter","filter","_preact","_autocomplete","_interopRequireDefault","accessibleAutocomplete","element","Error","createSimpleEngine","values","query","syncResults","enhanceSelectElement","configurationOptions","selectElement","availableOptions","option","preserveNullOptions","textContent","innerText","multiple","confirmOnBlur","showNoOptionsFound","selectedOptions","selected","onConfirm","requestedOption","defaultValue","selectedIndex","autoselect","display","valueOf","bitmap","writable","getKeys","gOPS","pIE","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","arrayIndexOf","IE_PROTO","names","max","getOwnPropertySymbols","speciesConstructor","original","SPECIES","C","_status","_dropdownArrowDown","keyCodes","13","27","32","38","40","hasPointerEvents","pointerEvents","isIosDevice","navigator","userAgent","Autocomplete","_this","_Component","elementReferences","focused","hovered","clicked","menuOpen","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleSelectedOptionClick","handleSelectedOptionKeyDown","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","clearTimeout","$pollInput","$blurInput","_this2","inputReference","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","updateMultiselect","addedSelectOption","removedOption","removedSelectOption","keyCode","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","isPrintableKeyCode","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","tSelectedOptionDescription","dropdownArrowFactory","customAttributes","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","selectedOptionsClassName","hintClassName","selectedOptionText","hintValue","substr","showHint","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onInput","onFocus","onMouseLeave","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","aria-label","DropdownArrowDown","dPs","Empty","createDict","iframeDocument","iframe","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","invoke","arraySlice","factories","partArgs","bound","args","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings":"CAAA,SAAAA,iCAAAC,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,IACA,mBAAAG,eAAAC,IACAD,OAAA,GAAAH,GACA,iBAAAC,QACAA,QAAA,0BAAAD,IAEAD,EAAA,0BAAAC,KARA,CASCK,OAAA,WACD,mBCTA,IAAAC,EAAA,GAGA,SA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ACTC,SAAU,WACVC,WAAY,SACZC,MAAO,QAGRZ,GACD,EAAA5P,EAAAzK,eAAA,YAAO+Z,EAAO,IAAM,WA1EU3gB,8BAC3ByC,aAAe,CACpBya,eAAgB,SAACF,GAAD,iBAA+BA,EAA/B,oCAChBhC,WAAY,iBAAM,sBAClBmC,gBAAiB,SAACvD,EAAgB9Y,EAAQgO,GAAzB,OAAsC8K,EAAtC,MAAyD9K,EAAQ,GAAjE,OAAyEhO,EAAzE,kBACjBsc,SAAU,SAACtc,EAAQkgB,GAMjB,OAAUlgB,EAAV,KAJsB,IAAXA,EAAgB,SAAW,WAItC,KAHkB,IAAXA,EAAgB,KAAO,OAG9B,eAA2DkgB,sECbjE,IAAA3P,EAAA9V,EAAA,KAE0B,SAApBijB,EAAoBoC,GAAA,IAAG5c,EAAH4c,EAAG5c,UAAH,OACxB,EAAAqN,EAAAzK,eAAA,OAAK+E,QAAQ,MAAMmW,MAAM,6BAA6B9d,UAAWA,EAAW+d,UAAU,UACpF,EAAA1Q,EAAAzK,eAAA,KAAGob,OAAO,OAAOC,KAAK,OAAOC,YAAU,YACrC,EAAA7Q,EAAAzK,eAAA,WAASqb,KAAK,UAAUE,OAAO","file":"accessible-autocomplete.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"accessibleAutocomplete\"] = factory();\n\telse\n\t\troot[\"accessibleAutocomplete\"] = factory();\n})(window, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 38);\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var VNode = function VNode() {};\n\nvar options = {};\n\nvar stack = [];\n\nvar EMPTY_CHILDREN = [];\n\nfunction h(nodeName, attributes) {\n\tvar children = EMPTY_CHILDREN,\n\t lastSimple,\n\t child,\n\t simple,\n\t i;\n\tfor (i = arguments.length; i-- > 2;) {\n\t\tstack.push(arguments[i]);\n\t}\n\tif (attributes && attributes.children != null) {\n\t\tif (!stack.length) stack.push(attributes.children);\n\t\tdelete attributes.children;\n\t}\n\twhile (stack.length) {\n\t\tif ((child = stack.pop()) && child.pop !== undefined) {\n\t\t\tfor (i = child.length; i--;) {\n\t\t\t\tstack.push(child[i]);\n\t\t\t}\n\t\t} else {\n\t\t\tif (typeof child === 'boolean') child = null;\n\n\t\t\tif (simple = typeof nodeName !== 'function') {\n\t\t\t\tif (child == null) child = '';else if (typeof child === 'number') child = String(child);else if (typeof child !== 'string') simple = false;\n\t\t\t}\n\n\t\t\tif (simple && lastSimple) {\n\t\t\t\tchildren[children.length - 1] += child;\n\t\t\t} else if (children === EMPTY_CHILDREN) {\n\t\t\t\tchildren = [child];\n\t\t\t} else {\n\t\t\t\tchildren.push(child);\n\t\t\t}\n\n\t\t\tlastSimple = simple;\n\t\t}\n\t}\n\n\tvar p = new VNode();\n\tp.nodeName = nodeName;\n\tp.children = children;\n\tp.attributes = attributes == null ? undefined : attributes;\n\tp.key = attributes == null ? undefined : attributes.key;\n\n\tif (options.vnode !== undefined) options.vnode(p);\n\n\treturn p;\n}\n\nfunction extend(obj, props) {\n for (var i in props) {\n obj[i] = props[i];\n }return obj;\n}\n\nvar defer = typeof Promise == 'function' ? Promise.resolve().then.bind(Promise.resolve()) : setTimeout;\n\nfunction cloneElement(vnode, props) {\n return h(vnode.nodeName, extend(extend({}, vnode.attributes), props), arguments.length > 2 ? [].slice.call(arguments, 2) : vnode.children);\n}\n\nvar IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;\n\nvar items = [];\n\nfunction enqueueRender(component) {\n\tif (!component._dirty && (component._dirty = true) && items.push(component) == 1) {\n\t\t(options.debounceRendering || defer)(rerender);\n\t}\n}\n\nfunction rerender() {\n\tvar p,\n\t list = items;\n\titems = [];\n\twhile (p = list.pop()) {\n\t\tif (p._dirty) renderComponent(p);\n\t}\n}\n\nfunction isSameNodeType(node, vnode, hydrating) {\n\tif (typeof vnode === 'string' || typeof vnode === 'number') {\n\t\treturn node.splitText !== undefined;\n\t}\n\tif (typeof vnode.nodeName === 'string') {\n\t\treturn !node._componentConstructor && isNamedNode(node, vnode.nodeName);\n\t}\n\treturn hydrating || node._componentConstructor === vnode.nodeName;\n}\n\nfunction isNamedNode(node, nodeName) {\n\treturn node.normalizedNodeName === nodeName || node.nodeName.toLowerCase() === nodeName.toLowerCase();\n}\n\nfunction getNodeProps(vnode) {\n\tvar props = extend({}, vnode.attributes);\n\tprops.children = vnode.children;\n\n\tvar defaultProps = vnode.nodeName.defaultProps;\n\tif (defaultProps !== undefined) {\n\t\tfor (var i in defaultProps) {\n\t\t\tif (props[i] === undefined) {\n\t\t\t\tprops[i] = defaultProps[i];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn props;\n}\n\nfunction createNode(nodeName, isSvg) {\n\tvar node = isSvg ? document.createElementNS('http://www.w3.org/2000/svg', nodeName) : document.createElement(nodeName);\n\tnode.normalizedNodeName = nodeName;\n\treturn node;\n}\n\nfunction removeNode(node) {\n\tvar parentNode = node.parentNode;\n\tif (parentNode) parentNode.removeChild(node);\n}\n\nfunction setAccessor(node, name, old, value, isSvg) {\n\tif (name === 'className') name = 'class';\n\n\tif (name === 'key') {} else if (name === 'ref') {\n\t\tif (old) old(null);\n\t\tif (value) value(node);\n\t} else if (name === 'class' && !isSvg) {\n\t\tnode.className = value || '';\n\t} else if (name === 'style') {\n\t\tif (!value || typeof value === 'string' || typeof old === 'string') {\n\t\t\tnode.style.cssText = value || '';\n\t\t}\n\t\tif (value && typeof value === 'object') {\n\t\t\tif (typeof old !== 'string') {\n\t\t\t\tfor (var i in old) {\n\t\t\t\t\tif (!(i in value)) node.style[i] = '';\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (var i in value) {\n\t\t\t\tnode.style[i] = typeof value[i] === 'number' && IS_NON_DIMENSIONAL.test(i) === false ? value[i] + 'px' : value[i];\n\t\t\t}\n\t\t}\n\t} else if (name === 'dangerouslySetInnerHTML') {\n\t\tif (value) node.innerHTML = value.__html || '';\n\t} else if (name[0] == 'o' && name[1] == 'n') {\n\t\tvar useCapture = name !== (name = name.replace(/Capture$/, ''));\n\t\tname = name.toLowerCase().substring(2);\n\t\tif (value) {\n\t\t\tif (!old) node.addEventListener(name, eventProxy, useCapture);\n\t\t} else {\n\t\t\tnode.removeEventListener(name, eventProxy, useCapture);\n\t\t}\n\t\t(node._listeners || (node._listeners = {}))[name] = value;\n\t} else if (name !== 'list' && name !== 'type' && !isSvg && name in node) {\n\t\ttry {\n\t\t\tnode[name] = value == null ? '' : value;\n\t\t} catch (e) {}\n\t\tif ((value == null || value === false) && name != 'spellcheck') node.removeAttribute(name);\n\t} else {\n\t\tvar ns = isSvg && name !== (name = name.replace(/^xlink:?/, ''));\n\n\t\tif (value == null || value === false) {\n\t\t\tif (ns) node.removeAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase());else node.removeAttribute(name);\n\t\t} else if (typeof value !== 'function') {\n\t\t\tif (ns) node.setAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase(), value);else node.setAttribute(name, value);\n\t\t}\n\t}\n}\n\nfunction eventProxy(e) {\n\treturn this._listeners[e.type](options.event && options.event(e) || e);\n}\n\nvar mounts = [];\n\nvar diffLevel = 0;\n\nvar isSvgMode = false;\n\nvar hydrating = false;\n\nfunction flushMounts() {\n\tvar c;\n\twhile (c = mounts.pop()) {\n\t\tif (options.afterMount) options.afterMount(c);\n\t\tif (c.componentDidMount) c.componentDidMount();\n\t}\n}\n\nfunction diff(dom, vnode, context, mountAll, parent, componentRoot) {\n\tif (!diffLevel++) {\n\t\tisSvgMode = parent != null && parent.ownerSVGElement !== undefined;\n\n\t\thydrating = dom != null && !('__preactattr_' in dom);\n\t}\n\n\tvar ret = idiff(dom, vnode, context, mountAll, componentRoot);\n\n\tif (parent && ret.parentNode !== parent) parent.appendChild(ret);\n\n\tif (! --diffLevel) {\n\t\thydrating = false;\n\n\t\tif (!componentRoot) flushMounts();\n\t}\n\n\treturn ret;\n}\n\nfunction idiff(dom, vnode, context, mountAll, componentRoot) {\n\tvar out = dom,\n\t prevSvgMode = isSvgMode;\n\n\tif (vnode == null || typeof vnode === 'boolean') vnode = '';\n\n\tif (typeof vnode === 'string' || typeof vnode === 'number') {\n\t\tif (dom && dom.splitText !== undefined && dom.parentNode && (!dom._component || componentRoot)) {\n\t\t\tif (dom.nodeValue != vnode) {\n\t\t\t\tdom.nodeValue = vnode;\n\t\t\t}\n\t\t} else {\n\t\t\tout = document.createTextNode(vnode);\n\t\t\tif (dom) {\n\t\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\t\t\t\trecollectNodeTree(dom, true);\n\t\t\t}\n\t\t}\n\n\t\tout['__preactattr_'] = true;\n\n\t\treturn out;\n\t}\n\n\tvar vnodeName = vnode.nodeName;\n\tif (typeof vnodeName === 'function') {\n\t\treturn buildComponentFromVNode(dom, vnode, context, mountAll);\n\t}\n\n\tisSvgMode = vnodeName === 'svg' ? true : vnodeName === 'foreignObject' ? false : isSvgMode;\n\n\tvnodeName = String(vnodeName);\n\tif (!dom || !isNamedNode(dom, vnodeName)) {\n\t\tout = createNode(vnodeName, isSvgMode);\n\n\t\tif (dom) {\n\t\t\twhile (dom.firstChild) {\n\t\t\t\tout.appendChild(dom.firstChild);\n\t\t\t}\n\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\n\t\t\trecollectNodeTree(dom, true);\n\t\t}\n\t}\n\n\tvar fc = out.firstChild,\n\t props = out['__preactattr_'],\n\t vchildren = vnode.children;\n\n\tif (props == null) {\n\t\tprops = out['__preactattr_'] = {};\n\t\tfor (var a = out.attributes, i = a.length; i--;) {\n\t\t\tprops[a[i].name] = a[i].value;\n\t\t}\n\t}\n\n\tif (!hydrating && vchildren && vchildren.length === 1 && typeof vchildren[0] === 'string' && fc != null && fc.splitText !== undefined && fc.nextSibling == null) {\n\t\tif (fc.nodeValue != vchildren[0]) {\n\t\t\tfc.nodeValue = vchildren[0];\n\t\t}\n\t} else if (vchildren && vchildren.length || fc != null) {\n\t\t\tinnerDiffNode(out, vchildren, context, mountAll, hydrating || props.dangerouslySetInnerHTML != null);\n\t\t}\n\n\tdiffAttributes(out, vnode.attributes, props);\n\n\tisSvgMode = prevSvgMode;\n\n\treturn out;\n}\n\nfunction innerDiffNode(dom, vchildren, context, mountAll, isHydrating) {\n\tvar originalChildren = dom.childNodes,\n\t children = [],\n\t keyed = {},\n\t keyedLen = 0,\n\t min = 0,\n\t len = originalChildren.length,\n\t childrenLen = 0,\n\t vlen = vchildren ? vchildren.length : 0,\n\t j,\n\t c,\n\t f,\n\t vchild,\n\t child;\n\n\tif (len !== 0) {\n\t\tfor (var i = 0; i < len; i++) {\n\t\t\tvar _child = originalChildren[i],\n\t\t\t props = _child['__preactattr_'],\n\t\t\t key = vlen && props ? _child._component ? _child._component.__key : props.key : null;\n\t\t\tif (key != null) {\n\t\t\t\tkeyedLen++;\n\t\t\t\tkeyed[key] = _child;\n\t\t\t} else if (props || (_child.splitText !== undefined ? isHydrating ? _child.nodeValue.trim() : true : isHydrating)) {\n\t\t\t\tchildren[childrenLen++] = _child;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (vlen !== 0) {\n\t\tfor (var i = 0; i < vlen; i++) {\n\t\t\tvchild = vchildren[i];\n\t\t\tchild = null;\n\n\t\t\tvar key = vchild.key;\n\t\t\tif (key != null) {\n\t\t\t\tif (keyedLen && keyed[key] !== undefined) {\n\t\t\t\t\tchild = keyed[key];\n\t\t\t\t\tkeyed[key] = undefined;\n\t\t\t\t\tkeyedLen--;\n\t\t\t\t}\n\t\t\t} else if (min < childrenLen) {\n\t\t\t\t\tfor (j = min; j < childrenLen; j++) {\n\t\t\t\t\t\tif (children[j] !== undefined && isSameNodeType(c = children[j], vchild, isHydrating)) {\n\t\t\t\t\t\t\tchild = c;\n\t\t\t\t\t\t\tchildren[j] = undefined;\n\t\t\t\t\t\t\tif (j === childrenLen - 1) childrenLen--;\n\t\t\t\t\t\t\tif (j === min) min++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\tchild = idiff(child, vchild, context, mountAll);\n\n\t\t\tf = originalChildren[i];\n\t\t\tif (child && child !== dom && child !== f) {\n\t\t\t\tif (f == null) {\n\t\t\t\t\tdom.appendChild(child);\n\t\t\t\t} else if (child === f.nextSibling) {\n\t\t\t\t\tremoveNode(f);\n\t\t\t\t} else {\n\t\t\t\t\tdom.insertBefore(child, f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif (keyedLen) {\n\t\tfor (var i in keyed) {\n\t\t\tif (keyed[i] !== undefined) recollectNodeTree(keyed[i], false);\n\t\t}\n\t}\n\n\twhile (min <= childrenLen) {\n\t\tif ((child = children[childrenLen--]) !== undefined) recollectNodeTree(child, false);\n\t}\n}\n\nfunction recollectNodeTree(node, unmountOnly) {\n\tvar component = node._component;\n\tif (component) {\n\t\tunmountComponent(component);\n\t} else {\n\t\tif (node['__preactattr_'] != null && node['__preactattr_'].ref) node['__preactattr_'].ref(null);\n\n\t\tif (unmountOnly === false || node['__preactattr_'] == null) {\n\t\t\tremoveNode(node);\n\t\t}\n\n\t\tremoveChildren(node);\n\t}\n}\n\nfunction removeChildren(node) {\n\tnode = node.lastChild;\n\twhile (node) {\n\t\tvar next = node.previousSibling;\n\t\trecollectNodeTree(node, true);\n\t\tnode = next;\n\t}\n}\n\nfunction diffAttributes(dom, attrs, old) {\n\tvar name;\n\n\tfor (name in old) {\n\t\tif (!(attrs && attrs[name] != null) && old[name] != null) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = undefined, isSvgMode);\n\t\t}\n\t}\n\n\tfor (name in attrs) {\n\t\tif (name !== 'children' && name !== 'innerHTML' && (!(name in old) || attrs[name] !== (name === 'value' || name === 'checked' ? dom[name] : old[name]))) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = attrs[name], isSvgMode);\n\t\t}\n\t}\n}\n\nvar recyclerComponents = [];\n\nfunction createComponent(Ctor, props, context) {\n\tvar inst,\n\t i = recyclerComponents.length;\n\n\tif (Ctor.prototype && Ctor.prototype.render) {\n\t\tinst = new Ctor(props, context);\n\t\tComponent.call(inst, props, context);\n\t} else {\n\t\tinst = new Component(props, context);\n\t\tinst.constructor = Ctor;\n\t\tinst.render = doRender;\n\t}\n\n\twhile (i--) {\n\t\tif (recyclerComponents[i].constructor === Ctor) {\n\t\t\tinst.nextBase = recyclerComponents[i].nextBase;\n\t\t\trecyclerComponents.splice(i, 1);\n\t\t\treturn inst;\n\t\t}\n\t}\n\n\treturn inst;\n}\n\nfunction doRender(props, state, context) {\n\treturn this.constructor(props, context);\n}\n\nfunction setComponentProps(component, props, renderMode, context, mountAll) {\n\tif (component._disable) return;\n\tcomponent._disable = true;\n\n\tcomponent.__ref = props.ref;\n\tcomponent.__key = props.key;\n\tdelete props.ref;\n\tdelete props.key;\n\n\tif (typeof component.constructor.getDerivedStateFromProps === 'undefined') {\n\t\tif (!component.base || mountAll) {\n\t\t\tif (component.componentWillMount) component.componentWillMount();\n\t\t} else if (component.componentWillReceiveProps) {\n\t\t\tcomponent.componentWillReceiveProps(props, context);\n\t\t}\n\t}\n\n\tif (context && context !== component.context) {\n\t\tif (!component.prevContext) component.prevContext = component.context;\n\t\tcomponent.context = context;\n\t}\n\n\tif (!component.prevProps) component.prevProps = component.props;\n\tcomponent.props = props;\n\n\tcomponent._disable = false;\n\n\tif (renderMode !== 0) {\n\t\tif (renderMode === 1 || options.syncComponentUpdates !== false || !component.base) {\n\t\t\trenderComponent(component, 1, mountAll);\n\t\t} else {\n\t\t\tenqueueRender(component);\n\t\t}\n\t}\n\n\tif (component.__ref) component.__ref(component);\n}\n\nfunction renderComponent(component, renderMode, mountAll, isChild) {\n\tif (component._disable) return;\n\n\tvar props = component.props,\n\t state = component.state,\n\t context = component.context,\n\t previousProps = component.prevProps || props,\n\t previousState = component.prevState || state,\n\t previousContext = component.prevContext || context,\n\t isUpdate = component.base,\n\t nextBase = component.nextBase,\n\t initialBase = isUpdate || nextBase,\n\t initialChildComponent = component._component,\n\t skip = false,\n\t snapshot = previousContext,\n\t rendered,\n\t inst,\n\t cbase;\n\n\tif (component.constructor.getDerivedStateFromProps) {\n\t\tstate = extend(extend({}, state), component.constructor.getDerivedStateFromProps(props, state));\n\t\tcomponent.state = state;\n\t}\n\n\tif (isUpdate) {\n\t\tcomponent.props = previousProps;\n\t\tcomponent.state = previousState;\n\t\tcomponent.context = previousContext;\n\t\tif (renderMode !== 2 && component.shouldComponentUpdate && component.shouldComponentUpdate(props, state, context) === false) {\n\t\t\tskip = true;\n\t\t} else if (component.componentWillUpdate) {\n\t\t\tcomponent.componentWillUpdate(props, state, context);\n\t\t}\n\t\tcomponent.props = props;\n\t\tcomponent.state = state;\n\t\tcomponent.context = context;\n\t}\n\n\tcomponent.prevProps = component.prevState = component.prevContext = component.nextBase = null;\n\tcomponent._dirty = false;\n\n\tif (!skip) {\n\t\trendered = component.render(props, state, context);\n\n\t\tif (component.getChildContext) {\n\t\t\tcontext = extend(extend({}, context), component.getChildContext());\n\t\t}\n\n\t\tif (isUpdate && component.getSnapshotBeforeUpdate) {\n\t\t\tsnapshot = component.getSnapshotBeforeUpdate(previousProps, previousState);\n\t\t}\n\n\t\tvar childComponent = rendered && rendered.nodeName,\n\t\t toUnmount,\n\t\t base;\n\n\t\tif (typeof childComponent === 'function') {\n\n\t\t\tvar childProps = getNodeProps(rendered);\n\t\t\tinst = initialChildComponent;\n\n\t\t\tif (inst && inst.constructor === childComponent && childProps.key == inst.__key) {\n\t\t\t\tsetComponentProps(inst, childProps, 1, context, false);\n\t\t\t} else {\n\t\t\t\ttoUnmount = inst;\n\n\t\t\t\tcomponent._component = inst = createComponent(childComponent, childProps, context);\n\t\t\t\tinst.nextBase = inst.nextBase || nextBase;\n\t\t\t\tinst._parentComponent = component;\n\t\t\t\tsetComponentProps(inst, childProps, 0, context, false);\n\t\t\t\trenderComponent(inst, 1, mountAll, true);\n\t\t\t}\n\n\t\t\tbase = inst.base;\n\t\t} else {\n\t\t\tcbase = initialBase;\n\n\t\t\ttoUnmount = initialChildComponent;\n\t\t\tif (toUnmount) {\n\t\t\t\tcbase = component._component = null;\n\t\t\t}\n\n\t\t\tif (initialBase || renderMode === 1) {\n\t\t\t\tif (cbase) cbase._component = null;\n\t\t\t\tbase = diff(cbase, rendered, context, mountAll || !isUpdate, initialBase && initialBase.parentNode, true);\n\t\t\t}\n\t\t}\n\n\t\tif (initialBase && base !== initialBase && inst !== initialChildComponent) {\n\t\t\tvar baseParent = initialBase.parentNode;\n\t\t\tif (baseParent && base !== baseParent) {\n\t\t\t\tbaseParent.replaceChild(base, initialBase);\n\n\t\t\t\tif (!toUnmount) {\n\t\t\t\t\tinitialBase._component = null;\n\t\t\t\t\trecollectNodeTree(initialBase, false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (toUnmount) {\n\t\t\tunmountComponent(toUnmount);\n\t\t}\n\n\t\tcomponent.base = base;\n\t\tif (base && !isChild) {\n\t\t\tvar componentRef = component,\n\t\t\t t = component;\n\t\t\twhile (t = t._parentComponent) {\n\t\t\t\t(componentRef = t).base = base;\n\t\t\t}\n\t\t\tbase._component = componentRef;\n\t\t\tbase._componentConstructor = componentRef.constructor;\n\t\t}\n\t}\n\n\tif (!isUpdate || mountAll) {\n\t\tmounts.unshift(component);\n\t} else if (!skip) {\n\n\t\tif (component.componentDidUpdate) {\n\t\t\tcomponent.componentDidUpdate(previousProps, previousState, snapshot);\n\t\t}\n\t\tif (options.afterUpdate) options.afterUpdate(component);\n\t}\n\n\twhile (component._renderCallbacks.length) {\n\t\tcomponent._renderCallbacks.pop().call(component);\n\t}if (!diffLevel && !isChild) flushMounts();\n}\n\nfunction buildComponentFromVNode(dom, vnode, context, mountAll) {\n\tvar c = dom && dom._component,\n\t originalComponent = c,\n\t oldDom = dom,\n\t isDirectOwner = c && dom._componentConstructor === vnode.nodeName,\n\t isOwner = isDirectOwner,\n\t props = getNodeProps(vnode);\n\twhile (c && !isOwner && (c = c._parentComponent)) {\n\t\tisOwner = c.constructor === vnode.nodeName;\n\t}\n\n\tif (c && isOwner && (!mountAll || c._component)) {\n\t\tsetComponentProps(c, props, 3, context, mountAll);\n\t\tdom = c.base;\n\t} else {\n\t\tif (originalComponent && !isDirectOwner) {\n\t\t\tunmountComponent(originalComponent);\n\t\t\tdom = oldDom = null;\n\t\t}\n\n\t\tc = createComponent(vnode.nodeName, props, context);\n\t\tif (dom && !c.nextBase) {\n\t\t\tc.nextBase = dom;\n\n\t\t\toldDom = null;\n\t\t}\n\t\tsetComponentProps(c, props, 1, context, mountAll);\n\t\tdom = c.base;\n\n\t\tif (oldDom && dom !== oldDom) {\n\t\t\toldDom._component = null;\n\t\t\trecollectNodeTree(oldDom, false);\n\t\t}\n\t}\n\n\treturn dom;\n}\n\nfunction unmountComponent(component) {\n\tif (options.beforeUnmount) options.beforeUnmount(component);\n\n\tvar base = component.base;\n\n\tcomponent._disable = true;\n\n\tif (component.componentWillUnmount) component.componentWillUnmount();\n\n\tcomponent.base = null;\n\n\tvar inner = component._component;\n\tif (inner) {\n\t\tunmountComponent(inner);\n\t} else if (base) {\n\t\tif (base['__preactattr_'] && base['__preactattr_'].ref) base['__preactattr_'].ref(null);\n\n\t\tcomponent.nextBase = base;\n\n\t\tremoveNode(base);\n\t\trecyclerComponents.push(component);\n\n\t\tremoveChildren(base);\n\t}\n\n\tif (component.__ref) component.__ref(null);\n}\n\nfunction Component(props, context) {\n\tthis._dirty = true;\n\n\tthis.context = context;\n\n\tthis.props = props;\n\n\tthis.state = this.state || {};\n\n\tthis._renderCallbacks = [];\n}\n\nextend(Component.prototype, {\n\tsetState: function setState(state, callback) {\n\t\tif (!this.prevState) this.prevState = this.state;\n\t\tthis.state = extend(extend({}, this.state), typeof state === 'function' ? state(this.state, this.props) : state);\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\tenqueueRender(this);\n\t},\n\tforceUpdate: function forceUpdate(callback) {\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\trenderComponent(this, 2);\n\t},\n\trender: function render() {}\n});\n\nfunction render(vnode, parent, merge) {\n return diff(merge, vnode, {}, false, parent, false);\n}\n\nvar preact = {\n\th: h,\n\tcreateElement: h,\n\tcloneElement: cloneElement,\n\tComponent: Component,\n\trender: render,\n\trerender: rerender,\n\toptions: options\n};\n\nexport default preact;\nexport { h, h as createElement, cloneElement, Component, render, rerender, options };\n//# sourceMappingURL=preact.mjs.map\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","import { createElement, render } from 'preact' /** @jsx createElement */\nimport Autocomplete from './autocomplete'\n\nfunction accessibleAutocomplete (options) {\n if (!options.element) { throw new Error('element is not defined') }\n if (!options.id) { throw new Error('id is not defined') }\n if (!options.source) { throw new Error('source is not defined') }\n if (Array.isArray(options.source)) {\n options.source = createSimpleEngine(options.source)\n }\n render(<Autocomplete {...options} />, options.element)\n}\n\nconst createSimpleEngine = (values) => (query, syncResults) => {\n var matches = values.filter(r => r.toLowerCase().indexOf(query.toLowerCase()) !== -1)\n syncResults(matches)\n}\n\naccessibleAutocomplete.enhanceSelectElement = (configurationOptions) => {\n if (!configurationOptions.selectElement) { throw new Error('selectElement is not defined') }\n\n // Set defaults.\n if (!configurationOptions.source) {\n let availableOptions = [].filter.call(configurationOptions.selectElement.options, option => (option.value || configurationOptions.preserveNullOptions))\n configurationOptions.source = availableOptions.map(option => option.textContent || option.innerText)\n\n // Store selected options\n if (configurationOptions.selectElement.multiple) {\n configurationOptions.multiple = true\n configurationOptions.confirmOnBlur = false\n configurationOptions.showNoOptionsFound = false\n configurationOptions.selectedOptions = availableOptions.filter(option => option.selected)\n }\n }\n configurationOptions.onConfirm = configurationOptions.onConfirm || (query => {\n const requestedOption = [].filter.call(configurationOptions.selectElement.options, option => (option.textContent || option.innerText) === query)[0]\n if (requestedOption) {\n requestedOption.selected = true\n } else {\n configurationOptions.selectElement.options[0].selected = true\n }\n })\n\n if (configurationOptions.selectElement.value || configurationOptions.defaultValue === undefined) {\n const option = configurationOptions.selectElement.options[configurationOptions.selectElement.options.selectedIndex]\n if (configurationOptions.selectElement.multiple) {\n configurationOptions.defaultValue = ''\n } else if (option.textContent || option.innerText) {\n configurationOptions.defaultValue = option.textContent || option.innerText\n }\n }\n\n if (configurationOptions.name === undefined) configurationOptions.name = ''\n if (configurationOptions.id === undefined) {\n if (configurationOptions.selectElement.id === undefined) {\n configurationOptions.id = ''\n } else {\n configurationOptions.id = configurationOptions.selectElement.id\n }\n }\n if (configurationOptions.autoselect === undefined) configurationOptions.autoselect = true\n\n const element = document.createElement('span')\n\n configurationOptions.selectElement.parentNode.insertBefore(element, configurationOptions.selectElement)\n\n accessibleAutocomplete({\n ...configurationOptions,\n element: element\n })\n\n configurationOptions.selectElement.style.display = 'none'\n configurationOptions.selectElement.id = configurationOptions.selectElement.id + '-select'\n}\n\nexport default accessibleAutocomplete\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)\nvar $export = require('./_export');\n\n$export($export.S, 'Array', { isArray: require('./_is-array') });\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n customAttributes: {},\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n multiple: false,\n selectedOptions: {},\n tNoResults: () => 'No results found',\n tSelectedOptionDescription: () => 'Press Enter or Space to remove selection',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n selectedOptions: props.selectedOptions ? [props.selectedOptions] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleSelectedOptionClick = this.handleSelectedOptionClick.bind(this)\n this.handleSelectedOptionKeyDown = this.handleSelectedOptionKeyDown.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n if (options[selected]) this.props.onConfirm(options[selected])\n else this.props.onConfirm(options[0])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n\n if (this.props.selectElement && this.props.selectElement.multiple) {\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n if (selectedOption) this.props.onConfirm(selectedOption)\n else this.props.onConfirm(this.state.options[0])\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n if (this.props.selectElement && this.props.selectElement.multiple) {\n this.updateMultiselect(selectedOption)\n }\n this.forceUpdate()\n }\n\n updateMultiselect (selectedOption) {\n if (selectedOption) {\n // Update select state for option\n const addedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === selectedOption)[0]\n if (addedSelectOption) { addedSelectOption.selected = true }\n\n // Update multiselect list\n let availableOptions = [].filter.call(this.props.selectElement.options, option => option.textContent)\n this.props.selectedOptions = availableOptions.filter(option => option.selected === true)\n\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleSelectedOptionClick (event, index) {\n // Remove from the list\n const removedOption = this.props.selectedOptions[index]\n this.props.selectedOptions = this.props.selectedOptions.filter(e => e !== removedOption)\n\n // Update select state for option\n const removedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === removedOption.textContent)[0]\n if (removedSelectOption) { removedSelectOption.selected = false }\n\n this.forceUpdate()\n }\n\n handleSelectedOptionKeyDown (event, index) {\n switch (keyCodes[event.keyCode]) {\n case 'space':\n this.handleSelectedOptionClick(event, index)\n break\n case 'enter':\n this.handleSelectedOptionClick(event, index)\n break\n }\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n multiple,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n tSelectedOptionDescription,\n dropdownArrow: dropdownArrowFactory,\n customAttributes\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const selectedOptionsClassName = `${cssNamespace}__list`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n {...customAttributes}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n\n {multiple && (\n <ul\n className={`${selectedOptionsClassName}`}\n id={`${id}__list`}\n role='listbox'\n >\n {this.props.selectedOptions.map((option, index) => {\n return (\n <li id={`${id}__option--${index}`} className='autocomplete__selected-option'>\n <span dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option.textContent) }} />\n <button\n type='button'\n className='autocomplete__remove-option'\n aria-label={`${this.templateSuggestion(option.textContent)}, selected. ${tSelectedOptionDescription()}`}\n onClick={(event) => this.handleSelectedOptionClick(event, index)}>remove</button>\n </li>\n )\n })}\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n )}\n </div>\n )\n }\n}\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("preact")):"function"==typeof define&&define.amd?define(["preact"],t):"object"==typeof exports?exports["Autocomplete"]=t(require("preact")):e["Autocomplete"]=t(e["preact"])})(window,function(n){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=32)}([function(e,t,n){var m=n(1),v=n(5),y=n(6),g=n(15),b=n(17),O="prototype",w=function(e,t,n){var r,o,i,u,s=e&w.F,l=e&w.G,a=e&w.S,c=e&w.P,p=e&w.B,f=l?m:a?m[t]||(m[t]={}):(m[t]||{})[O],d=l?v:v[t]||(v[t]={}),h=d[O]||(d[O]={});for(r in l&&(n=t),n)i=((o=!s&&f&&f[r]!==undefined)?f:n)[r],u=p&&o?b(i,m):c&&"function"==typeof i?b(Function.call,i):i,f&&g(f,r,i,e&w.U),d[r]!=i&&y(d,r,u),c&&h[r]!=i&&(h[r]=i)};m.core=v,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(7),o=n(36);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(8),i=n(34),u=n(35),s=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=u(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(21);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t){e.exports=n},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var i=n(1),u=n(6),s=n(16),l=n(9)("src"),r="toString",o=Function[r],a=(""+o).split(r);n(5).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(s(n,"name")||u(n,"name",t)),e[t]!==n&&(o&&(s(n,l)||u(n,l,e[t]?""+e[t]:a.join(String(t)))),e===i?e[t]=n:r?e[t]?e[t]=n:u(e,t,n):(delete e[t],u(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[l]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(18);e.exports=function(r,o,e){if(i(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(38),o=n(27);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(10),o=n(11);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var l=n(20),a=n(23),c=n(39);e.exports=function(s){return function(e,t,n){var r,o=l(e),i=a(o.length),u=c(n,i);if(s&&t!=t){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((s||u in o)&&o[u]===t)return s||u||0;return!s&&-1}}},function(e,t,n){var r=n(24),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(26)("keys"),o=n(9);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(5),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(40)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(43)})},function(e,t,n){var b=n(17),O=n(10),w=n(28),x=n(23),r=n(47);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,g=e||r;return function(e,t,n){for(var r,o,i=w(e),u=O(i),s=b(t,n,3),l=x(u.length),a=0,c=f?g(e,l):d?g(e,0):undefined;a<l;a++)if((y||a in u)&&(o=s(r=u[a],a,i),p))if(f)c[a]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return a;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(26)("wks"),o=n(9),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(33),n(29),n(46),n(50),n(51),n(52),n(53),n(56);var G=n(13),J=o(n(58)),r=o(n(59));function o(e){return e&&e.__esModule?e:{"default":e}}function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u,s={13:"enter",27:"escape",32:"space",38:"up",40:"down"},Y=((u=document.createElement("x")).style.cssText="pointer-events:auto","auto"===u.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var l=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],selectedOptions:e.selectedOptions?[e.selectedOptions]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(i(i(t))),t.handleKeyDown=t.handleKeyDown.bind(i(i(t))),t.handleUpArrow=t.handleUpArrow.bind(i(i(t))),t.handleDownArrow=t.handleDownArrow.bind(i(i(t))),t.handleEnter=t.handleEnter.bind(i(i(t))),t.handlePrintableKey=t.handlePrintableKey.bind(i(i(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(i(i(t))),t.handleOptionBlur=t.handleOptionBlur.bind(i(i(t))),t.handleOptionClick=t.handleOptionClick.bind(i(i(t))),t.handleOptionFocus=t.handleOptionFocus.bind(i(i(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(i(i(t))),t.handleSelectedOptionClick=t.handleSelectedOptionClick.bind(i(i(t))),t.handleSelectedOptionKeyDown=t.handleSelectedOptionKeyDown.bind(i(i(t))),t.handleInputBlur=t.handleInputBlur.bind(i(i(t))),t.handleInputChange=t.handleInputChange.bind(i(i(t))),t.handleInputFocus=t.handleInputFocus.bind(i(i(t))),t.pollInputElement=t.pollInputElement.bind(i(i(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(i(i(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var s=-1===r,l=u&&null===t.focused;if(s&&l){var a=this.elementReferences[r];a.setSelectionRange(0,a.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[i])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null}),this.props.selectElement&&this.props.selectElement.multiple&&this.setState({menuOpen:!1,selected:null,query:""})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,s=n.selected,l=null===e.relatedTarget&&null===o,a=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&l||!(c||a)){var p=i&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(u[s])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,s=n.selected,l=-1!==r;if(clearTimeout(this.$blurInput),!l){var a=o&&f(),c=f()?u:this.templateInputValue(i[s]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:a,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,i=t.showAllValues,u=this.hasAutoselect(),s=e.target.value,l=0===s.length,a=this.state.query.length!==s.length,c=s.length>=r;this.setState({query:s}),i||!l&&a&&c?o(s,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:u&&t?0:-1})}):!l&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.props.selectElement&&this.props.selectElement.multiple&&this.updateMultiselect(n),this.forceUpdate()},t.updateMultiselect=function(t){if(t){var e=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===t})[0];e&&(e.selected=!0);var n=[].filter.call(this.props.selectElement.options,function(e){return e.textContent});this.props.selectedOptions=n.filter(function(e){return!0===e.selected}),this.setState({menuOpen:!1,selected:null,query:""})}},t.handleSelectedOptionClick=function(e,t){var n=this.props.selectedOptions[t];this.props.selectedOptions=this.props.selectedOptions.filter(function(e){return e!==n});var r=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===n.textContent})[0];r&&(r.selected=!1),this.forceUpdate()},t.handleSelectedOptionKeyDown=function(e,t){switch(s[e.keyCode]){case"space":case"enter":this.handleSelectedOptionClick(e,t)}},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(s[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,i=t.id,u=t.minLength,s=t.name,l=t.placeholder,a=t.required,c=t.multiple,p=t.showAllValues,f=t.tNoResults,d=t.tStatusQueryTooShort,h=t.tStatusNoResults,m=t.tStatusSelectedOption,v=t.tStatusResults,y=t.tSelectedOptionDescription,g=t.dropdownArrow,b=t.customAttributes,O=this.state,w=O.focused,x=O.hovered,_=O.menuOpen,S=O.options,E=O.query,C=O.selected,I=this.hasAutoselect(),j=-1===w,k=0===S.length,M=0!==E.length,A=E.length>=u,P=this.props.showNoOptionsFound&&j&&k&&M&&A,F=n+"__wrapper",D=n+"__input",N=null!==w?" "+D+"--focused":"",q=this.props.showAllValues?" "+D+"--show-all-values":" "+D+"--default",R=n+"__dropdown-arrow-down",T=-1!==w&&null!==w,L=n+"__menu",B=L+"--"+r,V=L+"--"+(_||P?"visible":"hidden"),K=n+"__option",U=n+"__list",Q=n+"__hint",$=this.templateInputValue(S[C]),W=$&&0===$.toLowerCase().indexOf(E.toLowerCase())&&I?E+$.substr(E.length):"",H=Y&&W;return p&&"string"==typeof(e=g({className:R}))&&(e=(0,G.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,G.createElement)("div",{className:F,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":_?"true":"false"},(0,G.createElement)(J["default"],{length:S.length,queryLength:E.length,minQueryLength:u,selectedOption:this.templateInputValue(S[C]),selectedOptionIndex:C,tQueryTooShort:d,tNoResults:h,tSelectedOption:m,tResults:v}),H&&(0,G.createElement)("span",null,(0,G.createElement)("input",{className:Q,readonly:!0,tabIndex:"-1",value:W})),(0,G.createElement)("input",X({"aria-activedescendant":!!T&&i+"__option--"+w,"aria-owns":i+"__listbox",autoComplete:"off",className:""+D+N+q,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function z(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:s,placeholder:l,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:a,value:E},b)),e,(0,G.createElement)("ul",{className:L+" "+B+" "+V,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},S.map(function(e,t){var n=(-1===w?C===t:w===t)&&null===x?" "+K+"--focused":"",r=t%2?" "+K+"--odd":"";return(0,G.createElement)("li",{"aria-selected":w===t,className:""+K+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:i+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),P&&(0,G.createElement)("li",{className:K+" "+K+"--no-results"},f())),c&&(0,G.createElement)("ul",{className:""+U,id:i+"__list",role:"listbox"},this.props.selectedOptions.map(function(e,t){return(0,G.createElement)("li",{id:i+"__option--"+t,className:"autocomplete__selected-option"},(0,G.createElement)("span",{dangerouslySetInnerHTML:{__html:o.templateSuggestion(e.textContent)}}),(0,G.createElement)("button",{type:"button",className:"autocomplete__remove-option","aria-label":o.templateSuggestion(e.textContent)+", selected. "+y(),onClick:function(e){return o.handleSelectedOptionClick(e,t)}},"remove"))}),P&&(0,G.createElement)("li",{className:K+" "+K+"--no-results"},f())))},e}(G.Component);(t["default"]=l).defaultProps={autoselect:!1,cssNamespace:"autocomplete",customAttributes:{},defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,multiple:!1,selectedOptions:{},tNoResults:function(){return"No results found"},tSelectedOptionDescription:function(){return"Press Enter or Space to remove selection"},dropdownArrow:r["default"]}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(37)})},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(14)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(19),d=n(41),h=n(42),m=n(28),v=n(10),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=d.f,u=h.f;o<r;)for(var s,l=v(arguments[o++]),a=i?f(l).concat(i(l)):f(l),c=a.length,p=0;p<c;)u.call(l,s=a[p++])&&(n[s]=l[s]);return n}:o},function(e,t,n){var u=n(16),s=n(20),l=n(22)(!1),a=n(25)("IE_PROTO");e.exports=function(e,t){var n,r=s(e),o=0,i=[];for(n in r)n!=a&&u(r,n)&&i.push(n);for(;t.length>o;)u(r,n=t[o++])&&(~l(i,n)||i.push(n));return i}},function(e,t,n){var r=n(24),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var o=r(8),i=r(44),u=r(27),s=r(25)("IE_PROTO"),l=function(){},a="prototype",c=function(){var e,t=r(14)("iframe"),n=u.length;for(t.style.display="none",r(45).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[a][u[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[a]=o(e),n=new l,l[a]=null,n[s]=e):n=c(),t===undefined?n:i(n,t)}},function(e,t,n){var u=n(7),s=n(8),l=n(19);e.exports=n(3)?Object.defineProperties:function(e,t){s(e);for(var n,r=l(t),o=r.length,i=0;i<o;)u.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(0),o=n(30)(1);r(r.P+r.F*!n(12)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(49),i=n(31)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=undefined),r(t)&&null===(t=t[i])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(21);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(0),o=n(22)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(12)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(7).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(30)(2);r(r.P+r.F*!n(12)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(54)})},function(e,t,n){"use strict";var i=n(18),u=n(2),s=n(55),l=[].slice,a={};e.exports=Function.bind||function(t){var n=i(this),r=l.call(arguments,1),o=function(){var e=r.concat(l.call(arguments));return this instanceof o?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)}(n,e.length,e):s(n,e,t)};return u(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(57)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var s=n(6),l=n(15),a=n(4),c=n(11),p=n(31);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),i=o[0],u=o[1];a(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(l(String.prototype,t,i),s(RegExp.prototype,r,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(29);var m=n(13);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,i=e.selectedOptionIndex,u=e.tQueryTooShort,s=e.tNoResults,l=e.tSelectedOption,a=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?l(o,t,i):"",h=null;return h=p?u(r):f?s():a(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(13),o=function i(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])});
1
+ (function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("preact")):"function"==typeof define&&define.amd?define(["preact"],t):"object"==typeof exports?exports["Autocomplete"]=t(require("preact")):e["Autocomplete"]=t(e["preact"])})(window,function(n){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=32)}([function(e,t,n){var m=n(1),v=n(5),y=n(6),g=n(15),b=n(17),O="prototype",w=function(e,t,n){var r,o,i,u,s=e&w.F,l=e&w.G,a=e&w.S,c=e&w.P,p=e&w.B,f=l?m:a?m[t]||(m[t]={}):(m[t]||{})[O],d=l?v:v[t]||(v[t]={}),h=d[O]||(d[O]={});for(r in l&&(n=t),n)i=((o=!s&&f&&f[r]!==undefined)?f:n)[r],u=p&&o?b(i,m):c&&"function"==typeof i?b(Function.call,i):i,f&&g(f,r,i,e&w.U),d[r]!=i&&y(d,r,u),c&&h[r]!=i&&(h[r]=i)};m.core=v,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(7),o=n(36);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(8),i=n(34),u=n(35),s=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=u(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(21);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t){e.exports=n},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var i=n(1),u=n(6),s=n(16),l=n(9)("src"),r="toString",o=Function[r],a=(""+o).split(r);n(5).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(s(n,"name")||u(n,"name",t)),e[t]!==n&&(o&&(s(n,l)||u(n,l,e[t]?""+e[t]:a.join(String(t)))),e===i?e[t]=n:r?e[t]?e[t]=n:u(e,t,n):(delete e[t],u(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[l]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(18);e.exports=function(r,o,e){if(i(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(38),o=n(27);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(10),o=n(11);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var l=n(20),a=n(23),c=n(39);e.exports=function(s){return function(e,t,n){var r,o=l(e),i=a(o.length),u=c(n,i);if(s&&t!=t){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((s||u in o)&&o[u]===t)return s||u||0;return!s&&-1}}},function(e,t,n){var r=n(24),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(26)("keys"),o=n(9);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(5),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(40)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(43)})},function(e,t,n){var b=n(17),O=n(10),w=n(28),x=n(23),r=n(47);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,g=e||r;return function(e,t,n){for(var r,o,i=w(e),u=O(i),s=b(t,n,3),l=x(u.length),a=0,c=f?g(e,l):d?g(e,0):undefined;a<l;a++)if((y||a in u)&&(o=s(r=u[a],a,i),p))if(f)c[a]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return a;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(26)("wks"),o=n(9),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(33),n(29),n(46),n(50),n(51),n(52),n(53),n(56);var G=n(13),J=o(n(58)),r=o(n(59));function o(e){return e&&e.__esModule?e:{"default":e}}function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u,s={13:"enter",27:"escape",32:"space",38:"up",40:"down"},Y=((u=document.createElement("x")).style.cssText="pointer-events:auto","auto"===u.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var l=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],selectedOptions:e.selectedOptions?[e.selectedOptions]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(i(i(t))),t.handleKeyDown=t.handleKeyDown.bind(i(i(t))),t.handleUpArrow=t.handleUpArrow.bind(i(i(t))),t.handleDownArrow=t.handleDownArrow.bind(i(i(t))),t.handleEnter=t.handleEnter.bind(i(i(t))),t.handlePrintableKey=t.handlePrintableKey.bind(i(i(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(i(i(t))),t.handleOptionBlur=t.handleOptionBlur.bind(i(i(t))),t.handleOptionClick=t.handleOptionClick.bind(i(i(t))),t.handleOptionFocus=t.handleOptionFocus.bind(i(i(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(i(i(t))),t.handleSelectedOptionClick=t.handleSelectedOptionClick.bind(i(i(t))),t.handleSelectedOptionKeyDown=t.handleSelectedOptionKeyDown.bind(i(i(t))),t.handleInputBlur=t.handleInputBlur.bind(i(i(t))),t.handleInputChange=t.handleInputChange.bind(i(i(t))),t.handleInputFocus=t.handleInputFocus.bind(i(i(t))),t.pollInputElement=t.pollInputElement.bind(i(i(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(i(i(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var s=-1===r,l=u&&null===t.focused;if(s&&l){var a=this.elementReferences[r];a.setSelectionRange(0,a.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,r[i]?this.props.onConfirm(r[i]):this.props.onConfirm(r[0])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null}),this.props.selectElement&&this.props.selectElement.multiple&&this.setState({menuOpen:!1,selected:null,query:""})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,s=n.selected,l=null===e.relatedTarget&&null===o,a=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&l||!(c||a)){var p=i&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(u[s])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,s=n.selected,l=-1!==r;if(clearTimeout(this.$blurInput),!l){var a=o&&f(),c=f()?u:this.templateInputValue(i[s]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:a,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,i=t.showAllValues,u=this.hasAutoselect(),s=e.target.value,l=0===s.length,a=this.state.query.length!==s.length,c=s.length>=r;this.setState({query:s}),i||!l&&a&&c?o(s,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:u&&t?0:-1})}):!l&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),n?this.props.onConfirm(n):this.props.onConfirm(this.state.options[0]),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.props.selectElement&&this.props.selectElement.multiple&&this.updateMultiselect(n),this.forceUpdate()},t.updateMultiselect=function(t){if(t){var e=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===t})[0];e&&(e.selected=!0);var n=[].filter.call(this.props.selectElement.options,function(e){return e.textContent});this.props.selectedOptions=n.filter(function(e){return!0===e.selected}),this.setState({menuOpen:!1,selected:null,query:""})}},t.handleSelectedOptionClick=function(e,t){var n=this.props.selectedOptions[t];this.props.selectedOptions=this.props.selectedOptions.filter(function(e){return e!==n});var r=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===n.textContent})[0];r&&(r.selected=!1),this.forceUpdate()},t.handleSelectedOptionKeyDown=function(e,t){switch(s[e.keyCode]){case"space":case"enter":this.handleSelectedOptionClick(e,t)}},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(s[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,i=t.id,u=t.minLength,s=t.name,l=t.placeholder,a=t.required,c=t.multiple,p=t.showAllValues,f=t.tNoResults,d=t.tStatusQueryTooShort,h=t.tStatusNoResults,m=t.tStatusSelectedOption,v=t.tStatusResults,y=t.tSelectedOptionDescription,g=t.dropdownArrow,b=t.customAttributes,O=this.state,w=O.focused,x=O.hovered,_=O.menuOpen,S=O.options,E=O.query,C=O.selected,I=this.hasAutoselect(),j=-1===w,k=0===S.length,M=0!==E.length,A=E.length>=u,P=this.props.showNoOptionsFound&&j&&k&&M&&A,F=n+"__wrapper",D=n+"__input",N=null!==w?" "+D+"--focused":"",q=this.props.showAllValues?" "+D+"--show-all-values":" "+D+"--default",R=n+"__dropdown-arrow-down",T=-1!==w&&null!==w,L=n+"__menu",B=L+"--"+r,V=L+"--"+(_||P?"visible":"hidden"),K=n+"__option",U=n+"__list",Q=n+"__hint",$=this.templateInputValue(S[C]),W=$&&0===$.toLowerCase().indexOf(E.toLowerCase())&&I?E+$.substr(E.length):"",H=Y&&W;return p&&"string"==typeof(e=g({className:R}))&&(e=(0,G.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,G.createElement)("div",{className:F,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":_?"true":"false"},(0,G.createElement)(J["default"],{length:S.length,queryLength:E.length,minQueryLength:u,selectedOption:this.templateInputValue(S[C]),selectedOptionIndex:C,tQueryTooShort:d,tNoResults:h,tSelectedOption:m,tResults:v}),H&&(0,G.createElement)("span",null,(0,G.createElement)("input",{className:Q,readonly:!0,tabIndex:"-1",value:W})),(0,G.createElement)("input",X({"aria-activedescendant":!!T&&i+"__option--"+w,"aria-owns":i+"__listbox",autoComplete:"off",className:""+D+N+q,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function z(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:s,placeholder:l,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:a,value:E},b)),e,(0,G.createElement)("ul",{className:L+" "+B+" "+V,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},S.map(function(e,t){var n=(-1===w?C===t:w===t)&&null===x?" "+K+"--focused":"",r=t%2?" "+K+"--odd":"";return(0,G.createElement)("li",{"aria-selected":w===t,className:""+K+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:i+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),P&&(0,G.createElement)("li",{className:K+" "+K+"--no-results"},f())),c&&(0,G.createElement)("ul",{className:""+U,id:i+"__list",role:"listbox"},this.props.selectedOptions.map(function(e,t){return(0,G.createElement)("li",{id:i+"__option--"+t,className:"autocomplete__selected-option"},(0,G.createElement)("span",{dangerouslySetInnerHTML:{__html:o.templateSuggestion(e.textContent)}}),(0,G.createElement)("button",{type:"button",className:"autocomplete__remove-option","aria-label":o.templateSuggestion(e.textContent)+", selected. "+y(),onClick:function(e){return o.handleSelectedOptionClick(e,t)}},"remove"))}),P&&(0,G.createElement)("li",{className:K+" "+K+"--no-results"},f())))},e}(G.Component);(t["default"]=l).defaultProps={autoselect:!1,cssNamespace:"autocomplete",customAttributes:{},defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,multiple:!1,selectedOptions:{},tNoResults:function(){return"No results found"},tSelectedOptionDescription:function(){return"Press Enter or Space to remove selection"},dropdownArrow:r["default"]}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(37)})},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(14)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(19),d=n(41),h=n(42),m=n(28),v=n(10),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=d.f,u=h.f;o<r;)for(var s,l=v(arguments[o++]),a=i?f(l).concat(i(l)):f(l),c=a.length,p=0;p<c;)u.call(l,s=a[p++])&&(n[s]=l[s]);return n}:o},function(e,t,n){var u=n(16),s=n(20),l=n(22)(!1),a=n(25)("IE_PROTO");e.exports=function(e,t){var n,r=s(e),o=0,i=[];for(n in r)n!=a&&u(r,n)&&i.push(n);for(;t.length>o;)u(r,n=t[o++])&&(~l(i,n)||i.push(n));return i}},function(e,t,n){var r=n(24),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var o=r(8),i=r(44),u=r(27),s=r(25)("IE_PROTO"),l=function(){},a="prototype",c=function(){var e,t=r(14)("iframe"),n=u.length;for(t.style.display="none",r(45).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[a][u[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[a]=o(e),n=new l,l[a]=null,n[s]=e):n=c(),t===undefined?n:i(n,t)}},function(e,t,n){var u=n(7),s=n(8),l=n(19);e.exports=n(3)?Object.defineProperties:function(e,t){s(e);for(var n,r=l(t),o=r.length,i=0;i<o;)u.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(0),o=n(30)(1);r(r.P+r.F*!n(12)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(49),i=n(31)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=undefined),r(t)&&null===(t=t[i])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(21);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(0),o=n(22)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(12)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(7).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(30)(2);r(r.P+r.F*!n(12)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(54)})},function(e,t,n){"use strict";var i=n(18),u=n(2),s=n(55),l=[].slice,a={};e.exports=Function.bind||function(t){var n=i(this),r=l.call(arguments,1),o=function(){var e=r.concat(l.call(arguments));return this instanceof o?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)}(n,e.length,e):s(n,e,t)};return u(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(57)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var s=n(6),l=n(15),a=n(4),c=n(11),p=n(31);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),i=o[0],u=o[1];a(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(l(String.prototype,t,i),s(RegExp.prototype,r,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(29);var m=n(13);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,i=e.selectedOptionIndex,u=e.tQueryTooShort,s=e.tNoResults,l=e.tSelectedOption,a=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?l(o,t,i):"",h=null;return h=p?u(r):f?s():a(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(13),o=function i(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])});
2
2
  //# sourceMappingURL=accessible-autocomplete.preact.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://Autocomplete/webpack/universalModuleDefinition","webpack://Autocomplete/webpack/bootstrap","webpack://Autocomplete/../node_modules/core-js/modules/_export.js","webpack://Autocomplete/../node_modules/core-js/modules/_global.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://Autocomplete/../node_modules/core-js/modules/_fails.js","webpack://Autocomplete/../node_modules/core-js/modules/_core.js","webpack://Autocomplete/../node_modules/core-js/modules/_hide.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://Autocomplete/../node_modules/core-js/modules/_an-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_uid.js","webpack://Autocomplete/../node_modules/core-js/modules/_iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_defined.js","webpack://Autocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://Autocomplete/external {\"amd\":\"preact\",\"commonjs\":\"preact\",\"commonjs2\":\"preact\",\"root\":\"preact\"}","webpack://Autocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_redefine.js","webpack://Autocomplete/../node_modules/core-js/modules/_has.js","webpack://Autocomplete/../node_modules/core-js/modules/_ctx.js","webpack://Autocomplete/../node_modules/core-js/modules/_a-function.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_cof.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-length.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared.js","webpack://Autocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-object.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://Autocomplete/../node_modules/core-js/modules/_wks.js","webpack://Autocomplete/./autocomplete.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://Autocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://Autocomplete/../node_modules/core-js/modules/_library.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://Autocomplete/../node_modules/core-js/modules/_html.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-array.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.filter.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_invoke.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://Autocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://Autocomplete/./status.js","webpack://Autocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__13__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","Function","U","W","R","Math","self","__g","it","a","exec","e","version","__e","dP","createDesc","f","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","fails","method","arg","document","is","createElement","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","String","this","aFunction","fn","that","length","b","apply","arguments","$keys","enumBugKeys","keys","IObject","defined","slice","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","min","ceil","floor","isNaN","shared","uid","SHARED","store","push","copyright","toObject","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","callbackfn","res","result","USE_SYMBOL","_preact","_status","_interopRequireDefault","_dropdownArrowDown","element","keyCodes","13","27","32","38","40","hasPointerEvents","style","cssText","pointerEvents","isIosDevice","navigator","userAgent","match","Autocomplete","props","_this","_Component","elementReferences","state","focused","hovered","clicked","menuOpen","options","defaultValue","selectedOptions","query","selected","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleSelectedOptionClick","handleSelectedOptionKeyDown","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","componentDidMount","componentWillUnmount","clearTimeout","$pollInput","$blurInput","_this2","setTimeout","inputReference","componentDidUpdate","prevProps","prevState","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","autoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","confirmOnBlur","onConfirm","setState","selectElement","multiple","event","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","updateMultiselect","forceUpdate","addedSelectOption","filter","option","textContent","availableOptions","removedOption","removedSelectOption","keyCode","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","isPrintableKeyCode","render","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","tSelectedOptionDescription","dropdownArrowFactory","customAttributes","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","showNoOptionsFound","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","selectedOptionsClassName","hintClassName","selectedOptionText","hintValue","toLowerCase","indexOf","substr","showHint","className","dangerouslySetInnerHTML","__html","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onInput","onFocus","ref","onMouseLeave","map","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","aria-label","Component","defaultProps","DropdownArrowDown","assign","valueOf","bitmap","configurable","writable","getKeys","gOPS","pIE","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","j","arrayIndexOf","IE_PROTO","names","max","getOwnPropertySymbols","dPs","Empty","createDict","iframeDocument","iframe","display","appendChild","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","$map","speciesConstructor","original","isArray","SPECIES","C","constructor","Array","$indexOf","$native","NEGATIVE_ZERO","searchElement","FProto","nameRE","$filter","invoke","arraySlice","factories","partArgs","bound","args","len","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","componentWillReceiveProps","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings":"CAAA,SAAAA,iCAAAC,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,WACA,mBAAAC,eAAAC,IACAD,OAAA,WAAAJ,GACA,iBAAAC,QACAA,QAAA,gBAAAD,EAAAG,QAAA,WAEAJ,EAAA,gBAAAC,EAAAD,EA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AA3R,EAAA3D,eAAA,YAAO+U,EAAO,IAAM,WA1EU9E,8BAC3BC,aAAe,CACpBzB,eAAgB,SAACF,GAAD,iBAA+BA,EAA/B,oCAChBtC,WAAY,iBAAM,sBAClByC,gBAAiB,SAACnE,EAAgBvJ,EAAQiB,GAAzB,OAAsCsI,EAAtC,MAAyDtI,EAAQ,GAAjE,OAAyEjB,EAAzE,kBACjB2N,SAAU,SAAC3N,EAAQqU,GAMjB,OAAUrU,EAAV,KAJsB,IAAXA,EAAgB,SAAW,WAItC,KAHkB,IAAXA,EAAgB,KAAO,OAG9B,eAA2DqU,sECbjE,IAAA1R,EAAA1J,EAAA,MAE0B,SAApBkW,EAAoB8E,GAAA,IAAGjH,EAAHiH,EAAGjH,UAAH,OACxB,EAAArK,EAAA3D,eAAA,OAAKzB,QAAQ,MAAM4X,MAAM,6BAA6BnI,UAAWA,EAAWoI,UAAU,UACpF,EAAAzS,EAAA3D,eAAA,KAAGqW,OAAO,OAAOC,KAAK,OAAOC,YAAU,YACrC,EAAA5S,EAAA3D,eAAA,WAASsW,KAAK,UAAUE,OAAO","file":"lib/accessible-autocomplete.preact.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"preact\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"preact\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Autocomplete\"] = factory(require(\"preact\"));\n\telse\n\t\troot[\"Autocomplete\"] = factory(root[\"preact\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__13__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 32);\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE__13__;","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n customAttributes: {},\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n multiple: false,\n selectedOptions: {},\n tNoResults: () => 'No results found',\n tSelectedOptionDescription: () => 'Press Enter or Space to remove selection',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n selectedOptions: props.selectedOptions ? [props.selectedOptions] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleSelectedOptionClick = this.handleSelectedOptionClick.bind(this)\n this.handleSelectedOptionKeyDown = this.handleSelectedOptionKeyDown.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n this.props.onConfirm(options[selected])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n\n if (this.props.selectElement && this.props.selectElement.multiple) {\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n this.props.onConfirm(selectedOption)\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n if (this.props.selectElement && this.props.selectElement.multiple) {\n this.updateMultiselect(selectedOption)\n }\n this.forceUpdate()\n }\n\n updateMultiselect (selectedOption) {\n if (selectedOption) {\n // Update select state for option\n const addedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === selectedOption)[0]\n if (addedSelectOption) { addedSelectOption.selected = true }\n\n // Update multiselect list\n let availableOptions = [].filter.call(this.props.selectElement.options, option => option.textContent)\n this.props.selectedOptions = availableOptions.filter(option => option.selected === true)\n\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleSelectedOptionClick (event, index) {\n // Remove from the list\n const removedOption = this.props.selectedOptions[index]\n this.props.selectedOptions = this.props.selectedOptions.filter(e => e !== removedOption)\n\n // Update select state for option\n const removedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === removedOption.textContent)[0]\n if (removedSelectOption) { removedSelectOption.selected = false }\n\n this.forceUpdate()\n }\n\n handleSelectedOptionKeyDown (event, index) {\n switch (keyCodes[event.keyCode]) {\n case 'space':\n this.handleSelectedOptionClick(event, index)\n break\n case 'enter':\n this.handleSelectedOptionClick(event, index)\n break\n }\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n multiple,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n tSelectedOptionDescription,\n dropdownArrow: dropdownArrowFactory,\n customAttributes\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const selectedOptionsClassName = `${cssNamespace}__list`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n {...customAttributes}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n\n {multiple && (\n <ul\n className={`${selectedOptionsClassName}`}\n id={`${id}__list`}\n role='listbox'\n >\n {this.props.selectedOptions.map((option, index) => {\n return (\n <li id={`${id}__option--${index}`} className='autocomplete__selected-option'>\n <span dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option.textContent) }} />\n <button\n type='button'\n className='autocomplete__remove-option'\n aria-label={`${this.templateSuggestion(option.textContent)}, selected. ${tSelectedOptionDescription()}`}\n onClick={(event) => this.handleSelectedOptionClick(event, index)}>remove</button>\n </li>\n )\n })}\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n )}\n </div>\n )\n }\n}\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://Autocomplete/webpack/universalModuleDefinition","webpack://Autocomplete/webpack/bootstrap","webpack://Autocomplete/../node_modules/core-js/modules/_export.js","webpack://Autocomplete/../node_modules/core-js/modules/_global.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://Autocomplete/../node_modules/core-js/modules/_fails.js","webpack://Autocomplete/../node_modules/core-js/modules/_core.js","webpack://Autocomplete/../node_modules/core-js/modules/_hide.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://Autocomplete/../node_modules/core-js/modules/_an-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_uid.js","webpack://Autocomplete/../node_modules/core-js/modules/_iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_defined.js","webpack://Autocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://Autocomplete/external {\"amd\":\"preact\",\"commonjs\":\"preact\",\"commonjs2\":\"preact\",\"root\":\"preact\"}","webpack://Autocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_redefine.js","webpack://Autocomplete/../node_modules/core-js/modules/_has.js","webpack://Autocomplete/../node_modules/core-js/modules/_ctx.js","webpack://Autocomplete/../node_modules/core-js/modules/_a-function.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_cof.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-length.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared.js","webpack://Autocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-object.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://Autocomplete/../node_modules/core-js/modules/_wks.js","webpack://Autocomplete/./autocomplete.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://Autocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://Autocomplete/../node_modules/core-js/modules/_library.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://Autocomplete/../node_modules/core-js/modules/_html.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-array.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.filter.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_invoke.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://Autocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://Autocomplete/./status.js","webpack://Autocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__13__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","Function","U","W","R","Math","self","__g","it","a","exec","e","version","__e","dP","createDesc","f","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","fails","method","arg","document","is","createElement","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","String","this","aFunction","fn","that","length","b","apply","arguments","$keys","enumBugKeys","keys","IObject","defined","slice","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","min","ceil","floor","isNaN","shared","uid","SHARED","store","push","copyright","toObject","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","callbackfn","res","result","USE_SYMBOL","_preact","_status","_interopRequireDefault","_dropdownArrowDown","element","keyCodes","13","27","32","38","40","hasPointerEvents","style","cssText","pointerEvents","isIosDevice","navigator","userAgent","match","Autocomplete","props","_this","_Component","elementReferences","state","focused","hovered","clicked","menuOpen","options","defaultValue","selectedOptions","query","selected","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleSelectedOptionClick","handleSelectedOptionKeyDown","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","componentDidMount","componentWillUnmount","clearTimeout","$pollInput","$blurInput","_this2","setTimeout","inputReference","componentDidUpdate","prevProps","prevState","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","autoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","confirmOnBlur","onConfirm","setState","selectElement","multiple","event","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","updateMultiselect","forceUpdate","addedSelectOption","filter","option","textContent","availableOptions","removedOption","removedSelectOption","keyCode","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","isPrintableKeyCode","render","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","tSelectedOptionDescription","dropdownArrowFactory","customAttributes","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","showNoOptionsFound","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","selectedOptionsClassName","hintClassName","selectedOptionText","hintValue","toLowerCase","indexOf","substr","showHint","className","dangerouslySetInnerHTML","__html","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onInput","onFocus","ref","onMouseLeave","map","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","aria-label","Component","defaultProps","DropdownArrowDown","assign","valueOf","bitmap","configurable","writable","getKeys","gOPS","pIE","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","j","arrayIndexOf","IE_PROTO","names","max","getOwnPropertySymbols","dPs","Empty","createDict","iframeDocument","iframe","display","appendChild","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","$map","speciesConstructor","original","isArray","SPECIES","C","constructor","Array","$indexOf","$native","NEGATIVE_ZERO","searchElement","FProto","nameRE","$filter","invoke","arraySlice","factories","partArgs","bound","args","len","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","componentWillReceiveProps","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings":"CAAA,SAAAA,iCAAAC,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,WACA,mBAAAC,eAAAC,IACAD,OAAA,WAAAJ,GACA,iBAAAC,QACAA,QAAA,gBAAAD,EAAAG,QAAA,WAEAJ,EAAA,gBAAAC,EAAAD,EAAA,YARA,CASCO,OAAA,SAAAC,GACD,mBCTA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAT,QAGA,IAAAC,EAAAM,EAAAE,GAAA,CACAC,EAAAD,EACAE,GAAA,EACAX,QAAA,IAUA,OANAY,EAAAH,GAAAI,KAAAZ,EAAAD,QAAAC,IAAAD,QAAAQ,GAGAP,EAAAU,GAAA,EAGAV,EAAAD,QA0DA,OArDAQ,EAAAM,EAAAF,EAGAJ,EAAAO,EAAAR,EAGAC,EAAAQ,EAAA,SAAAhB,EAAAiB,EAAAC,GACAV,EAAAW,EAAAnB,EAAAiB,IACAG,OAAAC,eAAArB,EAAAiB,EAAA,CAA0CK,YAAA,EAAAC,IAAAL,KAK1CV,EAAAgB,EAAA,SAAAxB,GACA,oBAAAyB,eAAAC,aACAN,OAAAC,eAAArB,EAAAyB,OAAAC,YAAA,CAAwDC,MAAA,WAExDP,OAAAC,eAAArB,EAAA,cAAiD2B,OAAA,KAQjDnB,EAAAoB,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAAnB,EAAAmB,IACA,EAAAE,EAAA,OAAAF,EACA,KAA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ACrC,EAAA5S,EAAA3D,eAAA,WAASsW,KAAK,UAAUE,OAAO","file":"lib/accessible-autocomplete.preact.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"preact\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"preact\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Autocomplete\"] = factory(require(\"preact\"));\n\telse\n\t\troot[\"Autocomplete\"] = factory(root[\"preact\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__13__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 32);\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE__13__;","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n customAttributes: {},\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n multiple: false,\n selectedOptions: {},\n tNoResults: () => 'No results found',\n tSelectedOptionDescription: () => 'Press Enter or Space to remove selection',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n selectedOptions: props.selectedOptions ? [props.selectedOptions] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleSelectedOptionClick = this.handleSelectedOptionClick.bind(this)\n this.handleSelectedOptionKeyDown = this.handleSelectedOptionKeyDown.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n if (options[selected]) this.props.onConfirm(options[selected])\n else this.props.onConfirm(options[0])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n\n if (this.props.selectElement && this.props.selectElement.multiple) {\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n if (selectedOption) this.props.onConfirm(selectedOption)\n else this.props.onConfirm(this.state.options[0])\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n if (this.props.selectElement && this.props.selectElement.multiple) {\n this.updateMultiselect(selectedOption)\n }\n this.forceUpdate()\n }\n\n updateMultiselect (selectedOption) {\n if (selectedOption) {\n // Update select state for option\n const addedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === selectedOption)[0]\n if (addedSelectOption) { addedSelectOption.selected = true }\n\n // Update multiselect list\n let availableOptions = [].filter.call(this.props.selectElement.options, option => option.textContent)\n this.props.selectedOptions = availableOptions.filter(option => option.selected === true)\n\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleSelectedOptionClick (event, index) {\n // Remove from the list\n const removedOption = this.props.selectedOptions[index]\n this.props.selectedOptions = this.props.selectedOptions.filter(e => e !== removedOption)\n\n // Update select state for option\n const removedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === removedOption.textContent)[0]\n if (removedSelectOption) { removedSelectOption.selected = false }\n\n this.forceUpdate()\n }\n\n handleSelectedOptionKeyDown (event, index) {\n switch (keyCodes[event.keyCode]) {\n case 'space':\n this.handleSelectedOptionClick(event, index)\n break\n case 'enter':\n this.handleSelectedOptionClick(event, index)\n break\n }\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n multiple,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n tSelectedOptionDescription,\n dropdownArrow: dropdownArrowFactory,\n customAttributes\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const selectedOptionsClassName = `${cssNamespace}__list`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n {...customAttributes}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n\n {multiple && (\n <ul\n className={`${selectedOptionsClassName}`}\n id={`${id}__list`}\n role='listbox'\n >\n {this.props.selectedOptions.map((option, index) => {\n return (\n <li id={`${id}__option--${index}`} className='autocomplete__selected-option'>\n <span dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option.textContent) }} />\n <button\n type='button'\n className='autocomplete__remove-option'\n aria-label={`${this.templateSuggestion(option.textContent)}, selected. ${tSelectedOptionDescription()}`}\n onClick={(event) => this.handleSelectedOptionClick(event, index)}>remove</button>\n </li>\n )\n })}\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n )}\n </div>\n )\n }\n}\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["Autocomplete"]=t(require("react")):e["Autocomplete"]=t(e["React"])})(window,function(n){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=32)}([function(e,t,n){var m=n(1),v=n(5),y=n(6),g=n(15),b=n(17),O="prototype",w=function(e,t,n){var r,o,i,u,s=e&w.F,l=e&w.G,a=e&w.S,c=e&w.P,p=e&w.B,f=l?m:a?m[t]||(m[t]={}):(m[t]||{})[O],d=l?v:v[t]||(v[t]={}),h=d[O]||(d[O]={});for(r in l&&(n=t),n)i=((o=!s&&f&&f[r]!==undefined)?f:n)[r],u=p&&o?b(i,m):c&&"function"==typeof i?b(Function.call,i):i,f&&g(f,r,i,e&w.U),d[r]!=i&&y(d,r,u),c&&h[r]!=i&&(h[r]=i)};m.core=v,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(7),o=n(36);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(8),i=n(34),u=n(35),s=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=u(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(21);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t){e.exports=n},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var i=n(1),u=n(6),s=n(16),l=n(9)("src"),r="toString",o=Function[r],a=(""+o).split(r);n(5).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(s(n,"name")||u(n,"name",t)),e[t]!==n&&(o&&(s(n,l)||u(n,l,e[t]?""+e[t]:a.join(String(t)))),e===i?e[t]=n:r?e[t]?e[t]=n:u(e,t,n):(delete e[t],u(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[l]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(18);e.exports=function(r,o,e){if(i(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(38),o=n(27);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(10),o=n(11);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var l=n(20),a=n(23),c=n(39);e.exports=function(s){return function(e,t,n){var r,o=l(e),i=a(o.length),u=c(n,i);if(s&&t!=t){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((s||u in o)&&o[u]===t)return s||u||0;return!s&&-1}}},function(e,t,n){var r=n(24),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(26)("keys"),o=n(9);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(5),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(40)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(43)})},function(e,t,n){var b=n(17),O=n(10),w=n(28),x=n(23),r=n(47);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,g=e||r;return function(e,t,n){for(var r,o,i=w(e),u=O(i),s=b(t,n,3),l=x(u.length),a=0,c=f?g(e,l):d?g(e,0):undefined;a<l;a++)if((y||a in u)&&(o=s(r=u[a],a,i),p))if(f)c[a]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return a;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(26)("wks"),o=n(9),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(33),n(29),n(46),n(50),n(51),n(52),n(53),n(56);var G=n(13),J=o(n(58)),r=o(n(59));function o(e){return e&&e.__esModule?e:{"default":e}}function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u,s={13:"enter",27:"escape",32:"space",38:"up",40:"down"},Y=((u=document.createElement("x")).style.cssText="pointer-events:auto","auto"===u.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var l=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],selectedOptions:e.selectedOptions?[e.selectedOptions]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(i(i(t))),t.handleKeyDown=t.handleKeyDown.bind(i(i(t))),t.handleUpArrow=t.handleUpArrow.bind(i(i(t))),t.handleDownArrow=t.handleDownArrow.bind(i(i(t))),t.handleEnter=t.handleEnter.bind(i(i(t))),t.handlePrintableKey=t.handlePrintableKey.bind(i(i(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(i(i(t))),t.handleOptionBlur=t.handleOptionBlur.bind(i(i(t))),t.handleOptionClick=t.handleOptionClick.bind(i(i(t))),t.handleOptionFocus=t.handleOptionFocus.bind(i(i(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(i(i(t))),t.handleSelectedOptionClick=t.handleSelectedOptionClick.bind(i(i(t))),t.handleSelectedOptionKeyDown=t.handleSelectedOptionKeyDown.bind(i(i(t))),t.handleInputBlur=t.handleInputBlur.bind(i(i(t))),t.handleInputChange=t.handleInputChange.bind(i(i(t))),t.handleInputFocus=t.handleInputFocus.bind(i(i(t))),t.pollInputElement=t.pollInputElement.bind(i(i(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(i(i(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var s=-1===r,l=u&&null===t.focused;if(s&&l){var a=this.elementReferences[r];a.setSelectionRange(0,a.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[i])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null}),this.props.selectElement&&this.props.selectElement.multiple&&this.setState({menuOpen:!1,selected:null,query:""})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,s=n.selected,l=null===e.relatedTarget&&null===o,a=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&l||!(c||a)){var p=i&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(u[s])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,s=n.selected,l=-1!==r;if(clearTimeout(this.$blurInput),!l){var a=o&&f(),c=f()?u:this.templateInputValue(i[s]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:a,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,i=t.showAllValues,u=this.hasAutoselect(),s=e.target.value,l=0===s.length,a=this.state.query.length!==s.length,c=s.length>=r;this.setState({query:s}),i||!l&&a&&c?o(s,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:u&&t?0:-1})}):!l&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.props.selectElement&&this.props.selectElement.multiple&&this.updateMultiselect(n),this.forceUpdate()},t.updateMultiselect=function(t){if(t){var e=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===t})[0];e&&(e.selected=!0);var n=[].filter.call(this.props.selectElement.options,function(e){return e.textContent});this.props.selectedOptions=n.filter(function(e){return!0===e.selected}),this.setState({menuOpen:!1,selected:null,query:""})}},t.handleSelectedOptionClick=function(e,t){var n=this.props.selectedOptions[t];this.props.selectedOptions=this.props.selectedOptions.filter(function(e){return e!==n});var r=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===n.textContent})[0];r&&(r.selected=!1),this.forceUpdate()},t.handleSelectedOptionKeyDown=function(e,t){switch(s[e.keyCode]){case"space":case"enter":this.handleSelectedOptionClick(e,t)}},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(s[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,i=t.id,u=t.minLength,s=t.name,l=t.placeholder,a=t.required,c=t.multiple,p=t.showAllValues,f=t.tNoResults,d=t.tStatusQueryTooShort,h=t.tStatusNoResults,m=t.tStatusSelectedOption,v=t.tStatusResults,y=t.tSelectedOptionDescription,g=t.dropdownArrow,b=t.customAttributes,O=this.state,w=O.focused,x=O.hovered,_=O.menuOpen,S=O.options,E=O.query,C=O.selected,I=this.hasAutoselect(),j=-1===w,k=0===S.length,M=0!==E.length,A=E.length>=u,P=this.props.showNoOptionsFound&&j&&k&&M&&A,F=n+"__wrapper",D=n+"__input",N=null!==w?" "+D+"--focused":"",R=this.props.showAllValues?" "+D+"--show-all-values":" "+D+"--default",q=n+"__dropdown-arrow-down",T=-1!==w&&null!==w,L=n+"__menu",B=L+"--"+r,V=L+"--"+(_||P?"visible":"hidden"),K=n+"__option",U=n+"__list",Q=n+"__hint",$=this.templateInputValue(S[C]),W=$&&0===$.toLowerCase().indexOf(E.toLowerCase())&&I?E+$.substr(E.length):"",H=Y&&W;return p&&"string"==typeof(e=g({className:q}))&&(e=(0,G.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,G.createElement)("div",{className:F,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":_?"true":"false"},(0,G.createElement)(J["default"],{length:S.length,queryLength:E.length,minQueryLength:u,selectedOption:this.templateInputValue(S[C]),selectedOptionIndex:C,tQueryTooShort:d,tNoResults:h,tSelectedOption:m,tResults:v}),H&&(0,G.createElement)("span",null,(0,G.createElement)("input",{className:Q,readonly:!0,tabIndex:"-1",value:W})),(0,G.createElement)("input",X({"aria-activedescendant":!!T&&i+"__option--"+w,"aria-owns":i+"__listbox",autoComplete:"off",className:""+D+N+R,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function z(e){return{onChange:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:s,placeholder:l,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:a,value:E},b)),e,(0,G.createElement)("ul",{className:L+" "+B+" "+V,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},S.map(function(e,t){var n=(-1===w?C===t:w===t)&&null===x?" "+K+"--focused":"",r=t%2?" "+K+"--odd":"";return(0,G.createElement)("li",{"aria-selected":w===t,className:""+K+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:i+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),P&&(0,G.createElement)("li",{className:K+" "+K+"--no-results"},f())),c&&(0,G.createElement)("ul",{className:""+U,id:i+"__list",role:"listbox"},this.props.selectedOptions.map(function(e,t){return(0,G.createElement)("li",{id:i+"__option--"+t,className:"autocomplete__selected-option"},(0,G.createElement)("span",{dangerouslySetInnerHTML:{__html:o.templateSuggestion(e.textContent)}}),(0,G.createElement)("button",{type:"button",className:"autocomplete__remove-option","aria-label":o.templateSuggestion(e.textContent)+", selected. "+y(),onClick:function(e){return o.handleSelectedOptionClick(e,t)}},"remove"))}),P&&(0,G.createElement)("li",{className:K+" "+K+"--no-results"},f())))},e}(G.Component);(t["default"]=l).defaultProps={autoselect:!1,cssNamespace:"autocomplete",customAttributes:{},defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,multiple:!1,selectedOptions:{},tNoResults:function(){return"No results found"},tSelectedOptionDescription:function(){return"Press Enter or Space to remove selection"},dropdownArrow:r["default"]}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(37)})},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(14)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(19),d=n(41),h=n(42),m=n(28),v=n(10),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=d.f,u=h.f;o<r;)for(var s,l=v(arguments[o++]),a=i?f(l).concat(i(l)):f(l),c=a.length,p=0;p<c;)u.call(l,s=a[p++])&&(n[s]=l[s]);return n}:o},function(e,t,n){var u=n(16),s=n(20),l=n(22)(!1),a=n(25)("IE_PROTO");e.exports=function(e,t){var n,r=s(e),o=0,i=[];for(n in r)n!=a&&u(r,n)&&i.push(n);for(;t.length>o;)u(r,n=t[o++])&&(~l(i,n)||i.push(n));return i}},function(e,t,n){var r=n(24),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var o=r(8),i=r(44),u=r(27),s=r(25)("IE_PROTO"),l=function(){},a="prototype",c=function(){var e,t=r(14)("iframe"),n=u.length;for(t.style.display="none",r(45).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[a][u[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[a]=o(e),n=new l,l[a]=null,n[s]=e):n=c(),t===undefined?n:i(n,t)}},function(e,t,n){var u=n(7),s=n(8),l=n(19);e.exports=n(3)?Object.defineProperties:function(e,t){s(e);for(var n,r=l(t),o=r.length,i=0;i<o;)u.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(0),o=n(30)(1);r(r.P+r.F*!n(12)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(49),i=n(31)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=undefined),r(t)&&null===(t=t[i])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(21);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(0),o=n(22)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(12)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(7).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(30)(2);r(r.P+r.F*!n(12)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(54)})},function(e,t,n){"use strict";var i=n(18),u=n(2),s=n(55),l=[].slice,a={};e.exports=Function.bind||function(t){var n=i(this),r=l.call(arguments,1),o=function(){var e=r.concat(l.call(arguments));return this instanceof o?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)}(n,e.length,e):s(n,e,t)};return u(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(57)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var s=n(6),l=n(15),a=n(4),c=n(11),p=n(31);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),i=o[0],u=o[1];a(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(l(String.prototype,t,i),s(RegExp.prototype,r,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(29);var m=n(13);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,i=e.selectedOptionIndex,u=e.tQueryTooShort,s=e.tNoResults,l=e.tSelectedOption,a=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?l(o,t,i):"",h=null;return h=p?u(r):f?s():a(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(13),o=function i(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])});
1
+ (function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["Autocomplete"]=t(require("react")):e["Autocomplete"]=t(e["React"])})(window,function(n){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=32)}([function(e,t,n){var m=n(1),v=n(5),y=n(6),g=n(15),b=n(17),O="prototype",w=function(e,t,n){var r,o,i,u,s=e&w.F,l=e&w.G,a=e&w.S,c=e&w.P,p=e&w.B,f=l?m:a?m[t]||(m[t]={}):(m[t]||{})[O],d=l?v:v[t]||(v[t]={}),h=d[O]||(d[O]={});for(r in l&&(n=t),n)i=((o=!s&&f&&f[r]!==undefined)?f:n)[r],u=p&&o?b(i,m):c&&"function"==typeof i?b(Function.call,i):i,f&&g(f,r,i,e&w.U),d[r]!=i&&y(d,r,u),c&&h[r]!=i&&(h[r]=i)};m.core=v,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(7),o=n(36);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(8),i=n(34),u=n(35),s=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=u(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(21);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t){e.exports=n},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var i=n(1),u=n(6),s=n(16),l=n(9)("src"),r="toString",o=Function[r],a=(""+o).split(r);n(5).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(s(n,"name")||u(n,"name",t)),e[t]!==n&&(o&&(s(n,l)||u(n,l,e[t]?""+e[t]:a.join(String(t)))),e===i?e[t]=n:r?e[t]?e[t]=n:u(e,t,n):(delete e[t],u(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[l]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(18);e.exports=function(r,o,e){if(i(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(38),o=n(27);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(10),o=n(11);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var l=n(20),a=n(23),c=n(39);e.exports=function(s){return function(e,t,n){var r,o=l(e),i=a(o.length),u=c(n,i);if(s&&t!=t){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((s||u in o)&&o[u]===t)return s||u||0;return!s&&-1}}},function(e,t,n){var r=n(24),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(26)("keys"),o=n(9);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(5),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(40)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(43)})},function(e,t,n){var b=n(17),O=n(10),w=n(28),x=n(23),r=n(47);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,g=e||r;return function(e,t,n){for(var r,o,i=w(e),u=O(i),s=b(t,n,3),l=x(u.length),a=0,c=f?g(e,l):d?g(e,0):undefined;a<l;a++)if((y||a in u)&&(o=s(r=u[a],a,i),p))if(f)c[a]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return a;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(26)("wks"),o=n(9),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(33),n(29),n(46),n(50),n(51),n(52),n(53),n(56);var G=n(13),J=o(n(58)),r=o(n(59));function o(e){return e&&e.__esModule?e:{"default":e}}function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u,s={13:"enter",27:"escape",32:"space",38:"up",40:"down"},Y=((u=document.createElement("x")).style.cssText="pointer-events:auto","auto"===u.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var l=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],selectedOptions:e.selectedOptions?[e.selectedOptions]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(i(i(t))),t.handleKeyDown=t.handleKeyDown.bind(i(i(t))),t.handleUpArrow=t.handleUpArrow.bind(i(i(t))),t.handleDownArrow=t.handleDownArrow.bind(i(i(t))),t.handleEnter=t.handleEnter.bind(i(i(t))),t.handlePrintableKey=t.handlePrintableKey.bind(i(i(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(i(i(t))),t.handleOptionBlur=t.handleOptionBlur.bind(i(i(t))),t.handleOptionClick=t.handleOptionClick.bind(i(i(t))),t.handleOptionFocus=t.handleOptionFocus.bind(i(i(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(i(i(t))),t.handleSelectedOptionClick=t.handleSelectedOptionClick.bind(i(i(t))),t.handleSelectedOptionKeyDown=t.handleSelectedOptionKeyDown.bind(i(i(t))),t.handleInputBlur=t.handleInputBlur.bind(i(i(t))),t.handleInputChange=t.handleInputChange.bind(i(i(t))),t.handleInputFocus=t.handleInputFocus.bind(i(i(t))),t.pollInputElement=t.pollInputElement.bind(i(i(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(i(i(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var s=-1===r,l=u&&null===t.focused;if(s&&l){var a=this.elementReferences[r];a.setSelectionRange(0,a.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,r[i]?this.props.onConfirm(r[i]):this.props.onConfirm(r[0])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null}),this.props.selectElement&&this.props.selectElement.multiple&&this.setState({menuOpen:!1,selected:null,query:""})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,s=n.selected,l=null===e.relatedTarget&&null===o,a=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&l||!(c||a)){var p=i&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(u[s])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,s=n.selected,l=-1!==r;if(clearTimeout(this.$blurInput),!l){var a=o&&f(),c=f()?u:this.templateInputValue(i[s]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:a,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,i=t.showAllValues,u=this.hasAutoselect(),s=e.target.value,l=0===s.length,a=this.state.query.length!==s.length,c=s.length>=r;this.setState({query:s}),i||!l&&a&&c?o(s,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:u&&t?0:-1})}):!l&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),n?this.props.onConfirm(n):this.props.onConfirm(this.state.options[0]),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.props.selectElement&&this.props.selectElement.multiple&&this.updateMultiselect(n),this.forceUpdate()},t.updateMultiselect=function(t){if(t){var e=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===t})[0];e&&(e.selected=!0);var n=[].filter.call(this.props.selectElement.options,function(e){return e.textContent});this.props.selectedOptions=n.filter(function(e){return!0===e.selected}),this.setState({menuOpen:!1,selected:null,query:""})}},t.handleSelectedOptionClick=function(e,t){var n=this.props.selectedOptions[t];this.props.selectedOptions=this.props.selectedOptions.filter(function(e){return e!==n});var r=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===n.textContent})[0];r&&(r.selected=!1),this.forceUpdate()},t.handleSelectedOptionKeyDown=function(e,t){switch(s[e.keyCode]){case"space":case"enter":this.handleSelectedOptionClick(e,t)}},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(s[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,i=t.id,u=t.minLength,s=t.name,l=t.placeholder,a=t.required,c=t.multiple,p=t.showAllValues,f=t.tNoResults,d=t.tStatusQueryTooShort,h=t.tStatusNoResults,m=t.tStatusSelectedOption,v=t.tStatusResults,y=t.tSelectedOptionDescription,g=t.dropdownArrow,b=t.customAttributes,O=this.state,w=O.focused,x=O.hovered,_=O.menuOpen,S=O.options,E=O.query,C=O.selected,I=this.hasAutoselect(),j=-1===w,k=0===S.length,M=0!==E.length,A=E.length>=u,P=this.props.showNoOptionsFound&&j&&k&&M&&A,F=n+"__wrapper",D=n+"__input",N=null!==w?" "+D+"--focused":"",R=this.props.showAllValues?" "+D+"--show-all-values":" "+D+"--default",q=n+"__dropdown-arrow-down",T=-1!==w&&null!==w,L=n+"__menu",B=L+"--"+r,V=L+"--"+(_||P?"visible":"hidden"),K=n+"__option",U=n+"__list",Q=n+"__hint",$=this.templateInputValue(S[C]),W=$&&0===$.toLowerCase().indexOf(E.toLowerCase())&&I?E+$.substr(E.length):"",H=Y&&W;return p&&"string"==typeof(e=g({className:q}))&&(e=(0,G.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,G.createElement)("div",{className:F,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":_?"true":"false"},(0,G.createElement)(J["default"],{length:S.length,queryLength:E.length,minQueryLength:u,selectedOption:this.templateInputValue(S[C]),selectedOptionIndex:C,tQueryTooShort:d,tNoResults:h,tSelectedOption:m,tResults:v}),H&&(0,G.createElement)("span",null,(0,G.createElement)("input",{className:Q,readonly:!0,tabIndex:"-1",value:W})),(0,G.createElement)("input",X({"aria-activedescendant":!!T&&i+"__option--"+w,"aria-owns":i+"__listbox",autoComplete:"off",className:""+D+N+R,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function z(e){return{onChange:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:s,placeholder:l,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:a,value:E},b)),e,(0,G.createElement)("ul",{className:L+" "+B+" "+V,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},S.map(function(e,t){var n=(-1===w?C===t:w===t)&&null===x?" "+K+"--focused":"",r=t%2?" "+K+"--odd":"";return(0,G.createElement)("li",{"aria-selected":w===t,className:""+K+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:i+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),P&&(0,G.createElement)("li",{className:K+" "+K+"--no-results"},f())),c&&(0,G.createElement)("ul",{className:""+U,id:i+"__list",role:"listbox"},this.props.selectedOptions.map(function(e,t){return(0,G.createElement)("li",{id:i+"__option--"+t,className:"autocomplete__selected-option"},(0,G.createElement)("span",{dangerouslySetInnerHTML:{__html:o.templateSuggestion(e.textContent)}}),(0,G.createElement)("button",{type:"button",className:"autocomplete__remove-option","aria-label":o.templateSuggestion(e.textContent)+", selected. "+y(),onClick:function(e){return o.handleSelectedOptionClick(e,t)}},"remove"))}),P&&(0,G.createElement)("li",{className:K+" "+K+"--no-results"},f())))},e}(G.Component);(t["default"]=l).defaultProps={autoselect:!1,cssNamespace:"autocomplete",customAttributes:{},defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,multiple:!1,selectedOptions:{},tNoResults:function(){return"No results found"},tSelectedOptionDescription:function(){return"Press Enter or Space to remove selection"},dropdownArrow:r["default"]}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(37)})},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(14)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(19),d=n(41),h=n(42),m=n(28),v=n(10),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=d.f,u=h.f;o<r;)for(var s,l=v(arguments[o++]),a=i?f(l).concat(i(l)):f(l),c=a.length,p=0;p<c;)u.call(l,s=a[p++])&&(n[s]=l[s]);return n}:o},function(e,t,n){var u=n(16),s=n(20),l=n(22)(!1),a=n(25)("IE_PROTO");e.exports=function(e,t){var n,r=s(e),o=0,i=[];for(n in r)n!=a&&u(r,n)&&i.push(n);for(;t.length>o;)u(r,n=t[o++])&&(~l(i,n)||i.push(n));return i}},function(e,t,n){var r=n(24),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var o=r(8),i=r(44),u=r(27),s=r(25)("IE_PROTO"),l=function(){},a="prototype",c=function(){var e,t=r(14)("iframe"),n=u.length;for(t.style.display="none",r(45).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[a][u[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[a]=o(e),n=new l,l[a]=null,n[s]=e):n=c(),t===undefined?n:i(n,t)}},function(e,t,n){var u=n(7),s=n(8),l=n(19);e.exports=n(3)?Object.defineProperties:function(e,t){s(e);for(var n,r=l(t),o=r.length,i=0;i<o;)u.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(0),o=n(30)(1);r(r.P+r.F*!n(12)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(49),i=n(31)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=undefined),r(t)&&null===(t=t[i])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(21);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(0),o=n(22)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(12)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(7).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(30)(2);r(r.P+r.F*!n(12)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(54)})},function(e,t,n){"use strict";var i=n(18),u=n(2),s=n(55),l=[].slice,a={};e.exports=Function.bind||function(t){var n=i(this),r=l.call(arguments,1),o=function(){var e=r.concat(l.call(arguments));return this instanceof o?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)}(n,e.length,e):s(n,e,t)};return u(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(57)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var s=n(6),l=n(15),a=n(4),c=n(11),p=n(31);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),i=o[0],u=o[1];a(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(l(String.prototype,t,i),s(RegExp.prototype,r,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(29);var m=n(13);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,i=e.selectedOptionIndex,u=e.tQueryTooShort,s=e.tNoResults,l=e.tSelectedOption,a=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?l(o,t,i):"",h=null;return h=p?u(r):f?s():a(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(13),o=function i(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])});
2
2
  //# sourceMappingURL=accessible-autocomplete.react.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://Autocomplete/webpack/universalModuleDefinition","webpack://Autocomplete/webpack/bootstrap","webpack://Autocomplete/../node_modules/core-js/modules/_export.js","webpack://Autocomplete/../node_modules/core-js/modules/_global.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://Autocomplete/../node_modules/core-js/modules/_fails.js","webpack://Autocomplete/../node_modules/core-js/modules/_core.js","webpack://Autocomplete/../node_modules/core-js/modules/_hide.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://Autocomplete/../node_modules/core-js/modules/_an-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_uid.js","webpack://Autocomplete/../node_modules/core-js/modules/_iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_defined.js","webpack://Autocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://Autocomplete/external {\"amd\":\"react\",\"commonjs\":\"react\",\"commonjs2\":\"react\",\"root\":\"React\"}","webpack://Autocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_redefine.js","webpack://Autocomplete/../node_modules/core-js/modules/_has.js","webpack://Autocomplete/../node_modules/core-js/modules/_ctx.js","webpack://Autocomplete/../node_modules/core-js/modules/_a-function.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_cof.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-length.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared.js","webpack://Autocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-object.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://Autocomplete/../node_modules/core-js/modules/_wks.js","webpack://Autocomplete/./autocomplete.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://Autocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://Autocomplete/../node_modules/core-js/modules/_library.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://Autocomplete/../node_modules/core-js/modules/_html.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-array.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.filter.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_invoke.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://Autocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://Autocomplete/./status.js","webpack://Autocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__13__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","Function","U","W","R","Math","self","__g","it","a","exec","e","version","__e","dP","createDesc","f","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","fails","method","arg","document","is","createElement","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","String","this","aFunction","fn","that","length","b","apply","arguments","$keys","enumBugKeys","keys","IObject","defined","slice","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","min","ceil","floor","isNaN","shared","uid","SHARED","store","push","copyright","toObject","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","callbackfn","res","result","USE_SYMBOL","_preact","_status","_interopRequireDefault","_dropdownArrowDown","element","keyCodes","13","27","32","38","40","hasPointerEvents","style","cssText","pointerEvents","isIosDevice","navigator","userAgent","match","Autocomplete","props","_this","_Component","elementReferences","state","focused","hovered","clicked","menuOpen","options","defaultValue","selectedOptions","query","selected","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleSelectedOptionClick","handleSelectedOptionKeyDown","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","componentDidMount","componentWillUnmount","clearTimeout","$pollInput","$blurInput","_this2","setTimeout","inputReference","componentDidUpdate","prevProps","prevState","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","autoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","confirmOnBlur","onConfirm","setState","selectElement","multiple","event","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","updateMultiselect","forceUpdate","addedSelectOption","filter","option","textContent","availableOptions","removedOption","removedSelectOption","keyCode","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","isPrintableKeyCode","render","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","tSelectedOptionDescription","dropdownArrowFactory","customAttributes","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","showNoOptionsFound","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","selectedOptionsClassName","hintClassName","selectedOptionText","hintValue","toLowerCase","indexOf","substr","showHint","className","dangerouslySetInnerHTML","__html","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onChange","onFocus","ref","onMouseLeave","map","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","aria-label","Component","defaultProps","DropdownArrowDown","assign","valueOf","bitmap","configurable","writable","getKeys","gOPS","pIE","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","j","arrayIndexOf","IE_PROTO","names","max","getOwnPropertySymbols","dPs","Empty","createDict","iframeDocument","iframe","display","appendChild","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","$map","speciesConstructor","original","isArray","SPECIES","C","constructor","Array","$indexOf","$native","NEGATIVE_ZERO","searchElement","FProto","nameRE","$filter","invoke","arraySlice","factories","partArgs","bound","args","len","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","componentWillReceiveProps","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings":"CAAA,SAAAA,iCAAAC,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,UACA,mBAAAC,eAAAC,IACAD,OAAA,UAAAJ,GACA,iBAAAC,QACAA,QAAA,gBAAAD,EAAAG,QAAA,UAEAJ,EAAA,gBAAAC,EAAAD,EAAA,WARA,CASCO,OAAA,SAAAC,GACD,mBCTA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAT,QAGA,IAAAC,EAAAM,EAAAE,GAAA,CACAC,EAAAD,EACAE,GAAA,EACAX,QAAA,IAUA,OANAY,EAAAH,GAAAI,KAAAZ,EAAAD,QAAAC,IAAAD,QAA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N,SAAU,SAAC3N,EAAQqU,GAMjB,OAAUrU,EAAV,KAJsB,IAAXA,EAAgB,SAAW,WAItC,KAHkB,IAAXA,EAAgB,KAAO,OAG9B,eAA2DqU,sECbjE,IAAA1R,EAAA1J,EAAA,MAE0B,SAApBkW,EAAoB8E,GAAA,IAAGjH,EAAHiH,EAAGjH,UAAH,OACxB,EAAArK,EAAA3D,eAAA,OAAKzB,QAAQ,MAAM4X,MAAM,6BAA6BnI,UAAWA,EAAWoI,UAAU,UACpF,EAAAzS,EAAA3D,eAAA,KAAGqW,OAAO,OAAOC,KAAK,OAAOC,YAAU,YACrC,EAAA5S,EAAA3D,eAAA,WAASsW,KAAK,UAAUE,OAAO","file":"lib/accessible-autocomplete.react.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Autocomplete\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"Autocomplete\"] = factory(root[\"React\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__13__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 32);\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE__13__;","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n customAttributes: {},\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n multiple: false,\n selectedOptions: {},\n tNoResults: () => 'No results found',\n tSelectedOptionDescription: () => 'Press Enter or Space to remove selection',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n selectedOptions: props.selectedOptions ? [props.selectedOptions] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleSelectedOptionClick = this.handleSelectedOptionClick.bind(this)\n this.handleSelectedOptionKeyDown = this.handleSelectedOptionKeyDown.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n this.props.onConfirm(options[selected])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n\n if (this.props.selectElement && this.props.selectElement.multiple) {\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n this.props.onConfirm(selectedOption)\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n if (this.props.selectElement && this.props.selectElement.multiple) {\n this.updateMultiselect(selectedOption)\n }\n this.forceUpdate()\n }\n\n updateMultiselect (selectedOption) {\n if (selectedOption) {\n // Update select state for option\n const addedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === selectedOption)[0]\n if (addedSelectOption) { addedSelectOption.selected = true }\n\n // Update multiselect list\n let availableOptions = [].filter.call(this.props.selectElement.options, option => option.textContent)\n this.props.selectedOptions = availableOptions.filter(option => option.selected === true)\n\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleSelectedOptionClick (event, index) {\n // Remove from the list\n const removedOption = this.props.selectedOptions[index]\n this.props.selectedOptions = this.props.selectedOptions.filter(e => e !== removedOption)\n\n // Update select state for option\n const removedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === removedOption.textContent)[0]\n if (removedSelectOption) { removedSelectOption.selected = false }\n\n this.forceUpdate()\n }\n\n handleSelectedOptionKeyDown (event, index) {\n switch (keyCodes[event.keyCode]) {\n case 'space':\n this.handleSelectedOptionClick(event, index)\n break\n case 'enter':\n this.handleSelectedOptionClick(event, index)\n break\n }\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n multiple,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n tSelectedOptionDescription,\n dropdownArrow: dropdownArrowFactory,\n customAttributes\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const selectedOptionsClassName = `${cssNamespace}__list`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n {...customAttributes}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n\n {multiple && (\n <ul\n className={`${selectedOptionsClassName}`}\n id={`${id}__list`}\n role='listbox'\n >\n {this.props.selectedOptions.map((option, index) => {\n return (\n <li id={`${id}__option--${index}`} className='autocomplete__selected-option'>\n <span dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option.textContent) }} />\n <button\n type='button'\n className='autocomplete__remove-option'\n aria-label={`${this.templateSuggestion(option.textContent)}, selected. ${tSelectedOptionDescription()}`}\n onClick={(event) => this.handleSelectedOptionClick(event, index)}>remove</button>\n </li>\n )\n })}\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n )}\n </div>\n )\n }\n}\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://Autocomplete/webpack/universalModuleDefinition","webpack://Autocomplete/webpack/bootstrap","webpack://Autocomplete/../node_modules/core-js/modules/_export.js","webpack://Autocomplete/../node_modules/core-js/modules/_global.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://Autocomplete/../node_modules/core-js/modules/_fails.js","webpack://Autocomplete/../node_modules/core-js/modules/_core.js","webpack://Autocomplete/../node_modules/core-js/modules/_hide.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://Autocomplete/../node_modules/core-js/modules/_an-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_uid.js","webpack://Autocomplete/../node_modules/core-js/modules/_iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_defined.js","webpack://Autocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://Autocomplete/external {\"amd\":\"react\",\"commonjs\":\"react\",\"commonjs2\":\"react\",\"root\":\"React\"}","webpack://Autocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_redefine.js","webpack://Autocomplete/../node_modules/core-js/modules/_has.js","webpack://Autocomplete/../node_modules/core-js/modules/_ctx.js","webpack://Autocomplete/../node_modules/core-js/modules/_a-function.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_cof.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-length.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared.js","webpack://Autocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-object.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://Autocomplete/../node_modules/core-js/modules/_wks.js","webpack://Autocomplete/./autocomplete.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://Autocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://Autocomplete/../node_modules/core-js/modules/_library.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://Autocomplete/../node_modules/core-js/modules/_html.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-array.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.filter.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_invoke.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://Autocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://Autocomplete/./status.js","webpack://Autocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__13__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","Function","U","W","R","Math","self","__g","it","a","exec","e","version","__e","dP","createDesc","f","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","fails","method","arg","document","is","createElement","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","String","this","aFunction","fn","that","length","b","apply","arguments","$keys","enumBugKeys","keys","IObject","defined","slice","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","min","ceil","floor","isNaN","shared","uid","SHARED","store","push","copyright","toObject","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","callbackfn","res","result","USE_SYMBOL","_preact","_status","_interopRequireDefault","_dropdownArrowDown","element","keyCodes","13","27","32","38","40","hasPointerEvents","style","cssText","pointerEvents","isIosDevice","navigator","userAgent","match","Autocomplete","props","_this","_Component","elementReferences","state","focused","hovered","clicked","menuOpen","options","defaultValue","selectedOptions","query","selected","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleSelectedOptionClick","handleSelectedOptionKeyDown","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","componentDidMount","componentWillUnmount","clearTimeout","$pollInput","$blurInput","_this2","setTimeout","inputReference","componentDidUpdate","prevProps","prevState","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","autoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","confirmOnBlur","onConfirm","setState","selectElement","multiple","event","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","updateMultiselect","forceUpdate","addedSelectOption","filter","option","textContent","availableOptions","removedOption","removedSelectOption","keyCode","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","isPrintableKeyCode","render","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","tSelectedOptionDescription","dropdownArrowFactory","customAttributes","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","showNoOptionsFound","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","selectedOptionsClassName","hintClassName","selectedOptionText","hintValue","toLowerCase","indexOf","substr","showHint","className","dangerouslySetInnerHTML","__html","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onChange","onFocus","ref","onMouseLeave","map","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","aria-label","Component","defaultProps","DropdownArrowDown","assign","valueOf","bitmap","configurable","writable","getKeys","gOPS","pIE","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","j","arrayIndexOf","IE_PROTO","names","max","getOwnPropertySymbols","dPs","Empty","createDict","iframeDocument","iframe","display","appendChild","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","$map","speciesConstructor","original","isArray","SPECIES","C","constructor","Array","$indexOf","$native","NEGATIVE_ZERO","searchElement","FProto","nameRE","$filter","invoke","arraySlice","factories","partArgs","bound","args","len","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","componentWillReceiveProps","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","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AgBnE,EAAgBvJ,EAAQwN,GACxC,GAEA8G,EAAU,KASd,OAPEA,EADEH,EACQ1G,EAAeF,GAChB6G,EACCnJ,IAEA0C,EAAS3N,EAAQqU,IAGtB,EAAA1R,EAAA3D,eAAA,OACLuV,cAAY,OACZC,YAAU,SACVpH,KAAK,SACL7J,MAAO,CACLkR,OAAQ,IACRC,KAAM,gBACNC,OAAQ,MACRC,aAAc,OACdC,YAAa,OACbC,SAAU,SACVC,QAAS,IACTC,SAAU,WACVC,WAAY,SACZC,MAAO,QAGRZ,GACD,EAAA3R,EAAA3D,eAAA,YAAO+U,EAAO,IAAM,WA1EU9E,8BAC3BC,aAAe,CACpBzB,eAAgB,SAACF,GAAD,iBAA+BA,EAA/B,oCAChBtC,WAAY,iBAAM,sBAClByC,gBAAiB,SAACnE,EAAgBvJ,EAAQiB,GAAzB,OAAsCsI,EAAtC,MAAyDtI,EAAQ,GAAjE,OAAyEjB,EAAzE,kBACjB2N,SAAU,SAAC3N,EAAQqU,GAMjB,OAAUrU,EAAV,KAJsB,IAAXA,EAAgB,SAAW,WAItC,KAHkB,IAAXA,EAAgB,KAAO,OAG9B,eAA2DqU,sECbjE,IAAA1R,EAAA1J,EAAA,MAE0B,SAApBkW,EAAoB8E,GAAA,IAAGjH,EAAHiH,EAAGjH,UAAH,OACxB,EAAArK,EAAA3D,eAAA,OAAKzB,QAAQ,MAAM4X,MAAM,6BAA6BnI,UAAWA,EAAWoI,UAAU,UACpF,EAAAzS,EAAA3D,eAAA,KAAGqW,OAAO,OAAOC,KAAK,OAAOC,YAAU,YACrC,EAAA5S,EAAA3D,eAAA,WAASsW,KAAK,UAAUE,OAAO","file":"lib/accessible-autocomplete.react.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Autocomplete\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"Autocomplete\"] = factory(root[\"React\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__13__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 32);\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE__13__;","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n customAttributes: {},\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n multiple: false,\n selectedOptions: {},\n tNoResults: () => 'No results found',\n tSelectedOptionDescription: () => 'Press Enter or Space to remove selection',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n selectedOptions: props.selectedOptions ? [props.selectedOptions] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleSelectedOptionClick = this.handleSelectedOptionClick.bind(this)\n this.handleSelectedOptionKeyDown = this.handleSelectedOptionKeyDown.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n if (options[selected]) this.props.onConfirm(options[selected])\n else this.props.onConfirm(options[0])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n\n if (this.props.selectElement && this.props.selectElement.multiple) {\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n if (selectedOption) this.props.onConfirm(selectedOption)\n else this.props.onConfirm(this.state.options[0])\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n if (this.props.selectElement && this.props.selectElement.multiple) {\n this.updateMultiselect(selectedOption)\n }\n this.forceUpdate()\n }\n\n updateMultiselect (selectedOption) {\n if (selectedOption) {\n // Update select state for option\n const addedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === selectedOption)[0]\n if (addedSelectOption) { addedSelectOption.selected = true }\n\n // Update multiselect list\n let availableOptions = [].filter.call(this.props.selectElement.options, option => option.textContent)\n this.props.selectedOptions = availableOptions.filter(option => option.selected === true)\n\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleSelectedOptionClick (event, index) {\n // Remove from the list\n const removedOption = this.props.selectedOptions[index]\n this.props.selectedOptions = this.props.selectedOptions.filter(e => e !== removedOption)\n\n // Update select state for option\n const removedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === removedOption.textContent)[0]\n if (removedSelectOption) { removedSelectOption.selected = false }\n\n this.forceUpdate()\n }\n\n handleSelectedOptionKeyDown (event, index) {\n switch (keyCodes[event.keyCode]) {\n case 'space':\n this.handleSelectedOptionClick(event, index)\n break\n case 'enter':\n this.handleSelectedOptionClick(event, index)\n break\n }\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n multiple,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n tSelectedOptionDescription,\n dropdownArrow: dropdownArrowFactory,\n customAttributes\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const selectedOptionsClassName = `${cssNamespace}__list`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n {...customAttributes}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n\n {multiple && (\n <ul\n className={`${selectedOptionsClassName}`}\n id={`${id}__list`}\n role='listbox'\n >\n {this.props.selectedOptions.map((option, index) => {\n return (\n <li id={`${id}__option--${index}`} className='autocomplete__selected-option'>\n <span dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option.textContent) }} />\n <button\n type='button'\n className='autocomplete__remove-option'\n aria-label={`${this.templateSuggestion(option.textContent)}, selected. ${tSelectedOptionDescription()}`}\n onClick={(event) => this.handleSelectedOptionClick(event, index)}>remove</button>\n </li>\n )\n })}\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n )}\n </div>\n )\n }\n}\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
@@ -48,8 +48,8 @@
48
48
  "_requiredBy": [
49
49
  "/"
50
50
  ],
51
- "_resolved": "git://github.com/alphagov/accessible-autocomplete.git#97727b82f2283469e85523598cb62615a4de944b",
52
- "_shasum": "528c974d57b04be48a757fbc38b77c43f931112e",
51
+ "_resolved": "git://github.com/alphagov/accessible-autocomplete.git#3523dd9fffc70cbd9f6f555f75863c33a709f49e",
52
+ "_shasum": "c879cd6aa8ca0a320815c4e756ff62f40fb22e92",
53
53
  "_shrinkwrap": null,
54
54
  "_spec": "accessible-autocomplete@git://github.com/alphagov/accessible-autocomplete.git#add-multiselect-support",
55
55
  "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ",
@@ -126,7 +126,7 @@
126
126
  "webpack-dev-server": "^3.1.10",
127
127
  "webpack-sources": "^1.3.0"
128
128
  },
129
- "gitHead": "97727b82f2283469e85523598cb62615a4de944b",
129
+ "gitHead": "3523dd9fffc70cbd9f6f555f75863c33a709f49e",
130
130
  "homepage": "https://github.com/alphagov/accessible-autocomplete#readme",
131
131
  "husky": {
132
132
  "hooks": {
@@ -171,7 +171,8 @@ export default class Autocomplete extends Component {
171
171
  let newQuery
172
172
  if (this.props.confirmOnBlur) {
173
173
  newQuery = newState.query || query
174
- this.props.onConfirm(options[selected])
174
+ if (options[selected]) this.props.onConfirm(options[selected])
175
+ else this.props.onConfirm(options[0])
175
176
  } else {
176
177
  newQuery = query
177
178
  }
@@ -288,7 +289,8 @@ export default class Autocomplete extends Component {
288
289
  const selectedOption = this.state.options[index]
289
290
  const newQuery = this.templateInputValue(selectedOption)
290
291
  clearTimeout(this.$blurInput)
291
- this.props.onConfirm(selectedOption)
292
+ if (selectedOption) this.props.onConfirm(selectedOption)
293
+ else this.props.onConfirm(this.state.options[0])
292
294
  this.setState({
293
295
  focused: -1,
294
296
  clicked: index,
@@ -34,7 +34,11 @@ accessibleAutocomplete.enhanceSelectElement = (configurationOptions) => {
34
34
  }
35
35
  configurationOptions.onConfirm = configurationOptions.onConfirm || (query => {
36
36
  const requestedOption = [].filter.call(configurationOptions.selectElement.options, option => (option.textContent || option.innerText) === query)[0]
37
- if (requestedOption) { requestedOption.selected = true }
37
+ if (requestedOption) {
38
+ requestedOption.selected = true
39
+ } else {
40
+ configurationOptions.selectElement.options[0].selected = true
41
+ }
38
42
  })
39
43
 
40
44
  if (configurationOptions.selectElement.value || configurationOptions.defaultValue === undefined) {
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ ### [1.0.1](https://github.com/medikoo/d/compare/v0.1.1...v1.0.1) (2019-06-14)
6
+
7
+ ## Changelog for previous versions
8
+
9
+ See `CHANGES` file
@@ -1,3 +1,7 @@
1
+ For recent changelog see CHANGELOG.md
2
+
3
+ -----
4
+
1
5
  v1.0.0 -- 2015.12.04
2
6
  - autoBind changes:
3
7
  - replace `bindTo` argument with options and `resolveContext` option
@@ -1,19 +1,15 @@
1
- Copyright (C) 2013 Mariusz Nowak (www.medikoo.com)
1
+ ISC License
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
3
+ Copyright (c) 2013-2019, Mariusz Nowak, @medikoo, medikoo.com
9
4
 
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
12
8
 
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- THE SOFTWARE.
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.
@@ -1,4 +1,5 @@
1
1
  # D
2
+
2
3
  ## Property descriptor factory
3
4
 
4
5
  _Originally derived from [es5-ext](https://github.com/medikoo/es5-ext) package._
@@ -8,22 +9,36 @@ Defining properties with descriptors is very verbose:
8
9
  ```javascript
9
10
  var Account = function () {};
10
11
  Object.defineProperties(Account.prototype, {
11
- deposit: { value: function () {
12
+ deposit: {
13
+ value: function () {
12
14
  /* ... */
13
- }, configurable: true, enumerable: false, writable: true },
14
- withdraw: { value: function () {
15
+ },
16
+ configurable: true,
17
+ enumerable: false,
18
+ writable: true
19
+ },
20
+ withdraw: {
21
+ value: function () {
15
22
  /* ... */
16
- }, configurable: true, enumerable: false, writable: true },
17
- balance: { get: function () {
23
+ },
24
+ configurable: true,
25
+ enumerable: false,
26
+ writable: true
27
+ },
28
+ balance: {
29
+ get: function () {
18
30
  /* ... */
19
- }, configurable: true, enumerable: false }
31
+ },
32
+ configurable: true,
33
+ enumerable: false
34
+ }
20
35
  });
21
36
  ```
22
37
 
23
38
  D cuts that to:
24
39
 
25
40
  ```javascript
26
- var d = require('d');
41
+ var d = require("d");
27
42
 
28
43
  var Account = function () {};
29
44
  Object.defineProperties(Account.prototype, {
@@ -46,19 +61,20 @@ By default, created descriptor follow characteristics of native ES5 properties,
46
61
  ```
47
62
 
48
63
  You can overwrite it by preceding _value_ argument with instruction:
64
+
49
65
  ```javascript
50
- d('c', value); // { configurable: true, enumerable: false, writable: false }
51
- d('ce', value); // { configurable: true, enumerable: true, writable: false }
52
- d('e', value); // { configurable: false, enumerable: true, writable: false }
66
+ d("c", value); // { configurable: true, enumerable: false, writable: false }
67
+ d("ce", value); // { configurable: true, enumerable: true, writable: false }
68
+ d("e", value); // { configurable: false, enumerable: true, writable: false }
53
69
 
54
70
  // Same way for get/set:
55
- d.gs('e', value); // { configurable: false, enumerable: true }
71
+ d.gs("e", value); // { configurable: false, enumerable: true }
56
72
  ```
57
73
 
58
74
  ### Installation
59
75
 
60
- $ npm install d
61
-
76
+ $ npm install d
77
+
62
78
  To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)
63
79
 
64
80
  ### Other utilities
@@ -87,13 +103,11 @@ domEl.addEventListener('click', foo.increment, false);
87
103
  Define lazy properties, which will be resolved on first access
88
104
 
89
105
  ```javascript
90
- var d = require('d');
91
- var lazy = require('d/lazy');
106
+ var d = require("d");
107
+ var lazy = require("d/lazy");
92
108
 
93
109
  var Foo = function () {};
94
- Object.defineProperties(Foo.prototype, lazy({
95
- items: d(function () { return []; })
96
- }));
110
+ Object.defineProperties(Foo.prototype, lazy({ items: d(function () { return []; }) }));
97
111
 
98
112
  var foo = new Foo();
99
113
  foo.items.push(1, 2); // foo.items array created and defined directly on foo
@@ -101,4 +115,20 @@ foo.items.push(1, 2); // foo.items array created and defined directly on foo
101
115
 
102
116
  ## Tests [![Build Status](https://travis-ci.org/medikoo/d.png)](https://travis-ci.org/medikoo/d)
103
117
 
104
- $ npm test
118
+ $ npm test
119
+
120
+ ## Security contact information
121
+
122
+ To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
123
+
124
+ ---
125
+
126
+ <div align="center">
127
+ <b>
128
+ <a href="https://tidelift.com/subscription/pkg/npm-d?utm_source=npm-d&utm_medium=referral&utm_campaign=readme">Get professional support for d with a Tidelift subscription</a>
129
+ </b>
130
+ <br>
131
+ <sub>
132
+ Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
133
+ </sub>
134
+ </div>
@@ -1,18 +1,19 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
- var copy = require('es5-ext/object/copy')
4
- , normalizeOptions = require('es5-ext/object/normalize-options')
5
- , ensureCallable = require('es5-ext/object/valid-callable')
6
- , map = require('es5-ext/object/map')
7
- , callable = require('es5-ext/object/valid-callable')
8
- , validValue = require('es5-ext/object/valid-value')
3
+ var isValue = require("type/value/is")
4
+ , ensureValue = require("type/value/ensure")
5
+ , ensurePlainFunction = require("type/plain-function/ensure")
6
+ , copy = require("es5-ext/object/copy")
7
+ , normalizeOptions = require("es5-ext/object/normalize-options")
8
+ , map = require("es5-ext/object/map");
9
9
 
10
- , bind = Function.prototype.bind, defineProperty = Object.defineProperty
10
+ var bind = Function.prototype.bind
11
+ , defineProperty = Object.defineProperty
11
12
  , hasOwnProperty = Object.prototype.hasOwnProperty
12
13
  , define;
13
14
 
14
15
  define = function (name, desc, options) {
15
- var value = validValue(desc) && callable(desc.value), dgs;
16
+ var value = ensureValue(desc) && ensurePlainFunction(desc.value), dgs;
16
17
  dgs = copy(desc);
17
18
  delete dgs.writable;
18
19
  delete dgs.value;
@@ -27,6 +28,6 @@ define = function (name, desc, options) {
27
28
 
28
29
  module.exports = function (props/*, options*/) {
29
30
  var options = normalizeOptions(arguments[1]);
30
- if (options.resolveContext != null) ensureCallable(options.resolveContext);
31
+ if (isValue(options.resolveContext)) ensurePlainFunction(options.resolveContext);
31
32
  return map(props, function (desc, name) { return define(name, desc, options); });
32
33
  };
@@ -1,37 +1,36 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
- var assign = require('es5-ext/object/assign')
4
- , normalizeOpts = require('es5-ext/object/normalize-options')
5
- , isCallable = require('es5-ext/object/is-callable')
6
- , contains = require('es5-ext/string/#/contains')
3
+ var isValue = require("type/value/is")
4
+ , isPlainFunction = require("type/plain-function/is")
5
+ , assign = require("es5-ext/object/assign")
6
+ , normalizeOpts = require("es5-ext/object/normalize-options")
7
+ , contains = require("es5-ext/string/#/contains");
7
8
 
8
- , d;
9
-
10
- d = module.exports = function (dscr, value/*, options*/) {
9
+ var d = (module.exports = function (dscr, value/*, options*/) {
11
10
  var c, e, w, options, desc;
12
- if ((arguments.length < 2) || (typeof dscr !== 'string')) {
11
+ if (arguments.length < 2 || typeof dscr !== "string") {
13
12
  options = value;
14
13
  value = dscr;
15
14
  dscr = null;
16
15
  } else {
17
16
  options = arguments[2];
18
17
  }
19
- if (dscr == null) {
18
+ if (isValue(dscr)) {
19
+ c = contains.call(dscr, "c");
20
+ e = contains.call(dscr, "e");
21
+ w = contains.call(dscr, "w");
22
+ } else {
20
23
  c = w = true;
21
24
  e = false;
22
- } else {
23
- c = contains.call(dscr, 'c');
24
- e = contains.call(dscr, 'e');
25
- w = contains.call(dscr, 'w');
26
25
  }
27
26
 
28
27
  desc = { value: value, configurable: c, enumerable: e, writable: w };
29
28
  return !options ? desc : assign(normalizeOpts(options), desc);
30
- };
29
+ });
31
30
 
32
31
  d.gs = function (dscr, get, set/*, options*/) {
33
32
  var c, e, options, desc;
34
- if (typeof dscr !== 'string') {
33
+ if (typeof dscr !== "string") {
35
34
  options = set;
36
35
  set = get;
37
36
  get = dscr;
@@ -39,23 +38,23 @@ d.gs = function (dscr, get, set/*, options*/) {
39
38
  } else {
40
39
  options = arguments[3];
41
40
  }
42
- if (get == null) {
41
+ if (!isValue(get)) {
43
42
  get = undefined;
44
- } else if (!isCallable(get)) {
43
+ } else if (!isPlainFunction(get)) {
45
44
  options = get;
46
45
  get = set = undefined;
47
- } else if (set == null) {
46
+ } else if (!isValue(set)) {
48
47
  set = undefined;
49
- } else if (!isCallable(set)) {
48
+ } else if (!isPlainFunction(set)) {
50
49
  options = set;
51
50
  set = undefined;
52
51
  }
53
- if (dscr == null) {
52
+ if (isValue(dscr)) {
53
+ c = contains.call(dscr, "c");
54
+ e = contains.call(dscr, "e");
55
+ } else {
54
56
  c = true;
55
57
  e = false;
56
- } else {
57
- c = contains.call(dscr, 'c');
58
- e = contains.call(dscr, 'e');
59
58
  }
60
59
 
61
60
  desc = { get: get, set: set, configurable: c, enumerable: e };
@@ -1,32 +1,30 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
- var map = require('es5-ext/object/map')
4
- , isCallable = require('es5-ext/object/is-callable')
5
- , validValue = require('es5-ext/object/valid-value')
6
- , contains = require('es5-ext/string/#/contains')
3
+ var isPlainFunction = require("type/plain-function/is")
4
+ , ensureValue = require("type/value/ensure")
5
+ , isValue = require("type/value/is")
6
+ , map = require("es5-ext/object/map")
7
+ , contains = require("es5-ext/string/#/contains");
7
8
 
8
- , call = Function.prototype.call
9
+ var call = Function.prototype.call
9
10
  , defineProperty = Object.defineProperty
10
11
  , getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
11
12
  , getPrototypeOf = Object.getPrototypeOf
12
13
  , hasOwnProperty = Object.prototype.hasOwnProperty
13
- , cacheDesc = { configurable: false, enumerable: false, writable: false,
14
- value: null }
14
+ , cacheDesc = { configurable: false, enumerable: false, writable: false, value: null }
15
15
  , define;
16
16
 
17
17
  define = function (name, options) {
18
- var value, dgs, cacheName, desc, writable = false, resolvable
19
- , flat;
20
- options = Object(validValue(options));
18
+ var value, dgs, cacheName, desc, writable = false, resolvable, flat;
19
+ options = Object(ensureValue(options));
21
20
  cacheName = options.cacheName;
22
21
  flat = options.flat;
23
- if (cacheName == null) cacheName = name;
22
+ if (!isValue(cacheName)) cacheName = name;
24
23
  delete options.cacheName;
25
24
  value = options.value;
26
- resolvable = isCallable(value);
25
+ resolvable = isPlainFunction(value);
27
26
  delete options.value;
28
- dgs = { configurable: Boolean(options.configurable),
29
- enumerable: Boolean(options.enumerable) };
27
+ dgs = { configurable: Boolean(options.configurable), enumerable: Boolean(options.enumerable) };
30
28
  if (name !== cacheName) {
31
29
  dgs.get = function () {
32
30
  if (hasOwnProperty.call(this, cacheName)) return this[cacheName];
@@ -46,8 +44,8 @@ define = function (name, options) {
46
44
  // was defined with a value, following workarounds that
47
45
  // While in IE11 it may happen that here ownDesc is undefined (go figure)
48
46
  if (ownDesc) {
49
- if (ownDesc.hasOwnProperty('value')) return ownDesc.value;
50
- if ((typeof ownDesc.get === 'function') && (ownDesc.get !== self)) {
47
+ if (ownDesc.hasOwnProperty("value")) return ownDesc.value;
48
+ if (typeof ownDesc.get === "function" && ownDesc.get !== self) {
51
49
  return ownDesc.get.call(this);
52
50
  }
53
51
  return value;
@@ -65,8 +63,8 @@ define = function (name, options) {
65
63
  // It happens in Safari, that getter is still called after property
66
64
  // was defined with a value, following workarounds that
67
65
  ownDesc = getOwnPropertyDescriptor(this, name);
68
- if (ownDesc.hasOwnProperty('value')) return ownDesc.value;
69
- if ((typeof ownDesc.get === 'function') && (ownDesc.get !== self)) {
66
+ if (ownDesc.hasOwnProperty("value")) return ownDesc.value;
67
+ if (typeof ownDesc.get === "function" && ownDesc.get !== self) {
70
68
  return ownDesc.get.call(this);
71
69
  }
72
70
  }
@@ -86,14 +84,14 @@ define = function (name, options) {
86
84
  };
87
85
  if (options.desc) {
88
86
  desc = {
89
- configurable: contains.call(options.desc, 'c'),
90
- enumerable: contains.call(options.desc, 'e')
87
+ configurable: contains.call(options.desc, "c"),
88
+ enumerable: contains.call(options.desc, "e")
91
89
  };
92
90
  if (cacheName === name) {
93
- desc.writable = contains.call(options.desc, 'w');
91
+ desc.writable = contains.call(options.desc, "w");
94
92
  desc.value = null;
95
93
  } else {
96
- writable = contains.call(options.desc, 'w');
94
+ writable = contains.call(options.desc, "w");
97
95
  desc.get = dgs.get;
98
96
  desc.set = dgs.set;
99
97
  }