"use strict";function ownKeys(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function _objectSpread(t){for(var e=1;e=i)?(e.setItem(t.key,JSON.stringify({})),{}):a.visits},c={key:"autopluck",expiry:24};function r(e){return t||(e=e||window,t=window.localStorage),t}function d(e){var t=r(),n=i(t,a);n[e]||(n[e]=0),n[e]+=1,(e={}).visits=n,e.updated_at=(new Date).toISOString(),t.setItem(a.key,JSON.stringify(e))}function e(e,t){function n(e){d(t.location.toString()),setInterval(function(){t.location.toString()!==l&&(d(t.location.toString()),l=t.location.toString())},2e3)}function o(t){return function(o,e){o=o||[],e=t||[];var a=Object.keys(o);return e.reduce(function(e,t){var n=0;return t=(t||"").toLowerCase(),a.forEach(function(e){e.toLowerCase().match(t.toLowerCase())&&(n+=o[e])}),e[t]=n,e},{})}((e=r(),i(e,a)),t);var e}return t=t||window,s=t.document,a=Object.assign({},c,e),"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n():s.addEventListener("DOMContentLoaded",n),{matches:o,contains:function(e){return 0