container/doc/Creating containers - Part .../donate_data/more-facets.js

98 lines
44 KiB
JavaScript

// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3.0
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=59)}({0:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=window,i=(r.$,r.jQuery)},1:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="localhost"===location.hostname||"www-"===location.host.substr(0,4)||"cat-"===location.host.substr(0,4)||"review-"===location.host.substr(0,7)||"webdev-"===location.host.substr(0,7)||"58-review-"===location.host.substr(0,10)||"ia-petabox-review-"===location.host.substr(0,18)?console.log.bind(console):function(){}},10:function(t,e,n){"use strict";function r(t){for(var e="".concat(t).split("."),n=e[0],r=e.length>1?".".concat(e[1]):"",i=/(\d+)(\d{3})/;i.test(n);)n=n.replace(i,"$1,$2");return n+r}n.d(e,"a",(function(){return r}))},2:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function s(t){i(a,r,o,s,u,"next",t)}function u(t){i(a,r,o,s,u,"throw",t)}s(void 0)}))}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function y(t,e,n){return(y=v()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&h(i,n.prototype),i}).apply(null,arguments)}function b(t){var e="function"==typeof Map?new Map:void 0;return(b=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return y(t,arguments,p(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,t)})(t)}function m(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){var e=v();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function _(t,e,n){return(_="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function w(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function S(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||O(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){if(t){if("string"==typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(t,e):void 0}}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function j(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=O(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return j})),n.d(e,"d",(function(){return S})),n.d(e,"e",(function(){return d})),n.d(e,"f",(function(){return g})),n.d(e,"g",(function(){return _})),n.d(e,"h",(function(){return p})),n.d(e,"i",(function(){return r})),n.d(e,"j",(function(){return b})),n.d(e,"k",(function(){return o})),n.d(e,"l",(function(){return w})),n.d(e,"m",(function(){return f}))},3:function(t,e,n){"use strict";n.d(e,"a",(function(){return it})),n.d(e,"b",(function(){return nt})),n.d(e,"c",(function(){return Q})),n.d(e,"d",(function(){return D})),n.d(e,"e",(function(){return K}));var r=n(2),i="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,o=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e!==n;){var r=e.nextSibling;t.removeChild(e),e=r}},a="{{lit-".concat(String(Math.random()).slice(2),"}}"),s="\x3c!--".concat(a,"--\x3e"),u=new RegExp("".concat(a,"|").concat(s)),c=function t(e,n){Object(r.a)(this,t),this.parts=[],this.element=n;for(var i=[],o=[],s=document.createTreeWalker(n.content,133,null,!1),c=0,f=-1,h=0,v=e.strings,y=e.values.length;h<y;){var b=s.nextNode();if(null!==b){if(f++,1===b.nodeType){if(b.hasAttributes()){for(var m=b.attributes,g=m.length,_=0,w=0;w<g;w++)l(m[w].name,"$lit$")&&_++;for(;_-- >0;){var S=v[h],O=p.exec(S)[2],k=O.toLowerCase()+"$lit$",j=b.getAttribute(k);b.removeAttribute(k);var x=j.split(u);this.parts.push({type:"attribute",index:f,name:O,strings:x}),h+=x.length-1}}"TEMPLATE"===b.tagName&&(o.push(b),s.currentNode=b.content)}else if(3===b.nodeType){var P=b.data;if(P.indexOf(a)>=0){for(var C=b.parentNode,N=P.split(u),A=N.length-1,E=0;E<A;E++){var T=void 0,R=N[E];if(""===R)T=d();else{var V=p.exec(R);null!==V&&l(V[2],"$lit$")&&(R=R.slice(0,V.index)+V[1]+V[2].slice(0,-"$lit$".length)+V[3]),T=document.createTextNode(R)}C.insertBefore(T,b),this.parts.push({type:"node",index:++f})}""===N[A]?(C.insertBefore(d(),b),i.push(b)):b.data=N[A],h+=A}}else if(8===b.nodeType)if(b.data===a){var U=b.parentNode;null!==b.previousSibling&&f!==c||(f++,U.insertBefore(d(),b)),c=f,this.parts.push({type:"node",index:f}),null===b.nextSibling?b.data="":(i.push(b),f--),h++}else for(var M=-1;-1!==(M=b.data.indexOf(a,M+1));)this.parts.push({type:"node",index:-1}),h++}else s.currentNode=o.pop()}for(var z=0,I=i;z<I.length;z++){var D=I[z];D.parentNode.removeChild(D)}},l=function(t,e){var n=t.length-e.length;return n>=0&&t.slice(n)===e},f=function(t){return-1!==t.index},d=function(){return document.createComment("")},p=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/function h(t,e){for(var n=t.element.content,r=t.parts,i=document.createTreeWalker(n,133,null,!1),o=y(r),a=r[o],s=-1,u=0,c=[],l=null;i.nextNode();){s++;var f=i.currentNode;for(f.previousSibling===l&&(l=null),e.has(f)&&(c.push(f),null===l&&(l=f)),null!==l&&u++;void 0!==a&&a.index===s;)a.index=null!==l?-1:a.index-u,a=r[o=y(r,o)]}c.forEach((function(t){return t.parentNode.removeChild(t)}))}var v=function(t){for(var e=11===t.nodeType?0:1,n=document.createTreeWalker(t,133,null,!1);n.nextNode();)e++;return e},y=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=e+1;n<t.length;n++){var r=t[n];if(f(r))return n}return-1};
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
var b=new WeakMap,m=function(t){return"function"==typeof t&&b.has(t)},g={},_={},w=function(){function t(e,n,i){Object(r.a)(this,t),this.__parts=[],this.template=e,this.processor=n,this.options=i}return Object(r.b)(t,[{key:"update",value:function(t){var e,n=0,i=Object(r.c)(this.__parts);try{for(i.s();!(e=i.n()).done;){var o=e.value;void 0!==o&&o.setValue(t[n]),n++}}catch(t){i.e(t)}finally{i.f()}var a,s=Object(r.c)(this.__parts);try{for(s.s();!(a=s.n()).done;){var u=a.value;void 0!==u&&u.commit()}}catch(t){s.e(t)}finally{s.f()}}},{key:"_clone",value:function(){for(var t,e=i?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],o=this.template.parts,a=document.createTreeWalker(e,133,null,!1),s=0,u=0,c=a.nextNode();s<o.length;)if(t=o[s],f(t)){for(;u<t.index;)u++,"TEMPLATE"===c.nodeName&&(n.push(c),a.currentNode=c.content),null===(c=a.nextNode())&&(a.currentNode=n.pop(),c=a.nextNode());if("node"===t.type){var l=this.processor.handleTextExpression(this.options);l.insertAfterNode(c.previousSibling),this.__parts.push(l)}else{var d;(d=this.__parts).push.apply(d,Object(r.d)(this.processor.handleAttributeExpressions(c,t.name,t.strings,this.options)))}s++}else this.__parts.push(void 0),s++;return i&&(document.adoptNode(e),customElements.upgrade(e)),e}}]),t}(),S=" ".concat(a," "),O=function(){function t(e,n,i,o){Object(r.a)(this,t),this.strings=e,this.values=n,this.type=i,this.processor=o}return Object(r.b)(t,[{key:"getHTML",value:function(){for(var t=this.strings.length-1,e="",n=!1,r=0;r<t;r++){var i=this.strings[r],o=i.lastIndexOf("\x3c!--");n=(o>-1||n)&&-1===i.indexOf("--\x3e",o+1);var u=p.exec(i);e+=null===u?i+(n?S:s):i.substr(0,u.index)+u[1]+u[2]+"$lit$"+u[3]+a}return e+=this.strings[t]}},{key:"getTemplateElement",value:function(){var t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}]),t}(),k=function(t){return null===t||!("object"===Object(r.i)(t)||"function"==typeof t)},j=function(t){return Array.isArray(t)||!(!t||!t[Symbol.iterator])},x=function(){function t(e,n,i){Object(r.a)(this,t),this.dirty=!0,this.element=e,this.name=n,this.strings=i,this.parts=[];for(var o=0;o<i.length-1;o++)this.parts[o]=this._createPart()}return Object(r.b)(t,[{key:"_createPart",value:function(){return new P(this)}},{key:"_getValue",value:function(){for(var t=this.strings,e=t.length-1,n="",i=0;i<e;i++){n+=t[i];var o=this.parts[i];if(void 0!==o){var a=o.value;if(k(a)||!j(a))n+="string"==typeof a?a:String(a);else{var s,u=Object(r.c)(a);try{for(u.s();!(s=u.n()).done;){var c=s.value;n+="string"==typeof c?c:String(c)}}catch(t){u.e(t)}finally{u.f()}}}}return n+=t[e]}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}]),t}(),P=function(){function t(e){Object(r.a)(this,t),this.value=void 0,this.committer=e}return Object(r.b)(t,[{key:"setValue",value:function(t){t===g||k(t)&&t===this.value||(this.value=t,m(t)||(this.committer.dirty=!0))}},{key:"commit",value:function(){for(;m(this.value);){var t=this.value;this.value=g,t(this)}this.value!==g&&this.committer.commit()}}]),t}(),C=function(){function t(e){Object(r.a)(this,t),this.value=void 0,this.__pendingValue=void 0,this.options=e}return Object(r.b)(t,[{key:"appendInto",value:function(t){this.startNode=t.appendChild(d()),this.endNode=t.appendChild(d())}},{key:"insertAfterNode",value:function(t){this.startNode=t,this.endNode=t.nextSibling}},{key:"appendIntoPart",value:function(t){t.__insert(this.startNode=d()),t.__insert(this.endNode=d())}},{key:"insertAfterPart",value:function(t){t.__insert(this.startNode=d()),this.endNode=t.endNode,t.endNode=this.startNode}},{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){if(null!==this.startNode.parentNode){for(;m(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=g,t(this)}var e=this.__pendingValue;e!==g&&(k(e)?e!==this.value&&this.__commitText(e):e instanceof O?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):j(e)?this.__commitIterable(e):e===_?(this.value=_,this.clear()):this.__commitText(e))}}},{key:"__insert",value:function(t){this.endNode.parentNode.insertBefore(t,this.endNode)}},{key:"__commitNode",value:function(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}},{key:"__commitText",value:function(t){var e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}},{key:"__commitTemplateResult",value:function(t){var e=this.options.templateFactory(t);if(this.value instanceof w&&this.value.template===e)this.value.update(t.values);else{var n=new w(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}}},{key:"__commitIterable",value:function(e){Array.isArray(this.value)||(this.value=[],this.clear());var n,i,o=this.value,a=0,s=Object(r.c)(e);try{for(s.s();!(i=s.n()).done;){var u=i.value;void 0===(n=o[a])&&(n=new t(this.options),o.push(n),0===a?n.appendIntoPart(this):n.insertAfterPart(o[a-1])),n.setValue(u),n.commit(),a++}}catch(t){s.e(t)}finally{s.f()}a<o.length&&(o.length=a,this.clear(n&&n.endNode))}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.startNode;o(this.startNode.parentNode,t.nextSibling,this.endNode)}}]),t}(),N=function(){function t(e,n,i){if(Object(r.a)(this,t),this.value=void 0,this.__pendingValue=void 0,2!==i.length||""!==i[0]||""!==i[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=n,this.strings=i}return Object(r.b)(t,[{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;m(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=g,t(this)}if(this.__pendingValue!==g){var e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=g}}}]),t}(),A=function(t){Object(r.e)(n,t);var e=Object(r.f)(n);function n(t,i,o){var a;return Object(r.a)(this,n),(a=e.call(this,t,i,o)).single=2===o.length&&""===o[0]&&""===o[1],a}return Object(r.b)(n,[{key:"_createPart",value:function(){return new E(this)}},{key:"_getValue",value:function(){return this.single?this.parts[0].value:Object(r.g)(Object(r.h)(n.prototype),"_getValue",this).call(this)}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]),n}(x),E=function(t){Object(r.e)(n,t);var e=Object(r.f)(n);function n(){return Object(r.a)(this,n),e.apply(this,arguments)}return n}(P),T=!1;!function(){try{var t={get capture(){return T=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}}();var R=function(){function t(e,n,i){var o=this;Object(r.a)(this,t),this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=n,this.eventContext=i,this.__boundHandleEvent=function(t){return o.handleEvent(t)}}return Object(r.b)(t,[{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;m(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=g,t(this)}if(this.__pendingValue!==g){var e=this.__pendingValue,n=this.value,r=null==e||null!=n&&(e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive),i=null!=e&&(null==n||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),i&&(this.__options=V(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=g}}},{key:"handleEvent",value:function(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}]),t}(),V=function(t){return t&&(T?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)};
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
function U(t){var e=M.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},M.set(t.type,e));var n=e.stringsArray.get(t.strings);if(void 0!==n)return n;var r=t.strings.join(a);return void 0===(n=e.keyString.get(r))&&(n=new c(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}var M=new Map,z=new WeakMap,I=new(function(){function t(){Object(r.a)(this,t)}return Object(r.b)(t,[{key:"handleAttributeExpressions",value:function(t,e,n,r){var i=e[0];return"."===i?new A(t,e.slice(1),n).parts:"@"===i?[new R(t,e.slice(1),r.eventContext)]:"?"===i?[new N(t,e.slice(1),n)]:new x(t,e,n).parts}},{key:"handleTextExpression",value:function(t){return new C(t)}}]),t}());
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.2.1");var D=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new O(t,n,"html",I)},F=function(t,e){return"".concat(t,"--").concat(e)},q=!0;void 0===window.ShadyCSS?q=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),q=!1);var $=function(t){return function(e){var n=F(e.type,t),r=M.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},M.set(n,r));var i=r.stringsArray.get(e.strings);if(void 0!==i)return i;var o=e.strings.join(a);if(void 0===(i=r.keyString.get(o))){var s=e.getTemplateElement();q&&window.ShadyCSS.prepareTemplateDom(s,t),i=new c(e,s),r.keyString.set(o,i)}return r.stringsArray.set(e.strings,i),i}},B=["html","svg"],L=new Set,H=function(t,e,n){L.add(t);var r=n?n.element:document.createElement("template"),i=e.querySelectorAll("style"),o=i.length;if(0!==o){for(var a=document.createElement("style"),s=0;s<o;s++){var u=i[s];u.parentNode.removeChild(u),a.textContent+=u.textContent}!function(t){B.forEach((function(e){var n=M.get(F(e,t));void 0!==n&&n.keyString.forEach((function(t){var e=t.element.content,n=new Set;Array.from(e.querySelectorAll("style")).forEach((function(t){n.add(t)})),h(t,n)}))}))}(t);var c=r.content;n?function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.element.content,i=t.parts;if(null!=n)for(var o=document.createTreeWalker(r,133,null,!1),a=y(i),s=0,u=-1;o.nextNode();){u++;var c=o.currentNode;for(c===n&&(s=v(e),n.parentNode.insertBefore(e,n));-1!==a&&i[a].index===u;){if(s>0){for(;-1!==a;)i[a].index+=s,a=y(i,a);return}a=y(i,a)}}else r.appendChild(e)}(n,a,c.firstChild):c.insertBefore(a,c.firstChild),window.ShadyCSS.prepareTemplateStyles(r,t);var l=c.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==l)e.insertBefore(l.cloneNode(!0),e.firstChild);else if(n){c.insertBefore(a,c.firstChild);var f=new Set;f.add(a),h(n,f)}}else window.ShadyCSS.prepareTemplateStyles(r,t)};window.JSCompiler_renameProperty=function(t,e){return t};var W={toAttribute:function(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute:function(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},J=function(t,e){return e!==t&&(e==e||t==t)},Z={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:J},G=function(t){Object(r.e)(i,t);var e,n=Object(r.f)(i);function i(){var t;return Object(r.a)(this,i),(t=n.call(this))._updateState=0,t._instanceProperties=void 0,t._updatePromise=new Promise((function(e){return t._enableUpdatingResolver=e})),t._changedProperties=new Map,t._reflectingProperties=void 0,t.initialize(),t}return Object(r.b)(i,[{key:"initialize",value:function(){this._saveInstanceProperties(),this._requestUpdate()}},{key:"_saveInstanceProperties",value:function(){var t=this;this.constructor._classProperties.forEach((function(e,n){if(t.hasOwnProperty(n)){var r=t[n];delete t[n],t._instanceProperties||(t._instanceProperties=new Map),t._instanceProperties.set(n,r)}}))}},{key:"_applyInstanceProperties",value:function(){var t=this;this._instanceProperties.forEach((function(e,n){return t[n]=e})),this._instanceProperties=void 0}},{key:"connectedCallback",value:function(){this.enableUpdating()}},{key:"enableUpdating",value:function(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}},{key:"disconnectedCallback",value:function(){}},{key:"attributeChangedCallback",value:function(t,e,n){e!==n&&this._attributeToProperty(t,n)}},{key:"_propertyToAttribute",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z,r=this.constructor,i=r._attributeNameForProperty(t,n);if(void 0!==i){var o=r._propertyValueToAttribute(e,n);if(void 0===o)return;this._updateState=8|this._updateState,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._updateState=-9&this._updateState}}},{key:"_attributeToProperty",value:function(t,e){if(!(8&this._updateState)){var n=this.constructor,r=n._attributeToPropertyMap.get(t);if(void 0!==r){var i=n.getPropertyOptions(r);this._updateState=16|this._updateState,this[r]=n._propertyValueFromAttribute(e,i),this._updateState=-17&this._updateState}}}},{key:"_requestUpdate",value:function(t,e){var n=!0;if(void 0!==t){var r=this.constructor,i=r.getPropertyOptions(t);r._valueHasChanged(this[t],e,i.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==i.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,i))):n=!1}!this._hasRequestedUpdate&&n&&(this._updatePromise=this._enqueueUpdate())}},{key:"requestUpdate",value:function(t,e){return this._requestUpdate(t,e),this.updateComplete}},{key:"_enqueueUpdate",value:(e=Object(r.k)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._updateState=4|this._updateState,t.prev=1,t.next=4,this._updatePromise;case 4:t.next=8;break;case 6:t.prev=6,t.t0=t.catch(1);case 8:if(null==(e=this.performUpdate())){t.next=12;break}return t.next=12,e;case 12:return t.abrupt("return",!this._hasRequestedUpdate);case 13:case"end":return t.stop()}}),t,this,[[1,6]])}))),function(){return e.apply(this,arguments)})},{key:"performUpdate",value:function(){this._instanceProperties&&this._applyInstanceProperties();var t=!1,e=this._changedProperties;try{(t=this.shouldUpdate(e))?this.update(e):this._markUpdated()}catch(e){throw t=!1,this._markUpdated(),e}t&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(e)),this.updated(e))}},{key:"_markUpdated",value:function(){this._changedProperties=new Map,this._updateState=-5&this._updateState}},{key:"_getUpdateComplete",value:function(){return this._updatePromise}},{key:"shouldUpdate",value:function(t){return!0}},{key:"update",value:function(t){var e=this;void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((function(t,n){return e._propertyToAttribute(n,e[n],t)})),this._reflectingProperties=void 0),this._markUpdated()}},{key:"updated",value:function(t){}},{key:"firstUpdated",value:function(t){}},{key:"_hasRequestedUpdate",get:function(){return 4&this._updateState}},{key:"hasUpdated",get:function(){return 1&this._updateState}},{key:"updateComplete",get:function(){return this._getUpdateComplete()}}],[{key:"_ensureClassProperties",value:function(){var t=this;if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;var e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((function(e,n){return t._classProperties.set(n,e)}))}}},{key:"createProperty",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z;if(this._ensureClassProperties(),this._classProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){var n="symbol"===Object(r.i)(t)?Symbol():"__".concat(t),i=this.getPropertyDescriptor(t,n,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}},{key:"getPropertyDescriptor",value:function(t,e,n){return{get:function(){return this[e]},set:function(n){var r=this[t];this[e]=n,this._requestUpdate(t,r)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(t){return this._classProperties&&this._classProperties.get(t)||Z}},{key:"finalize",value:function(){var t=Object.getPrototypeOf(this);if(t.hasOwnProperty("finalized")||t.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){var e,n=this.properties,i=[].concat(Object(r.d)(Object.getOwnPropertyNames(n)),Object(r.d)("function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n):[])),o=Object(r.c)(i);try{for(o.s();!(e=o.n()).done;){var a=e.value;this.createProperty(a,n[a])}}catch(t){o.e(t)}finally{o.f()}}}},{key:"_attributeNameForProperty",value:function(t,e){var n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}},{key:"_valueHasChanged",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J;return n(t,e)}},{key:"_propertyValueFromAttribute",value:function(t,e){var n=e.type,r=e.converter||W,i="function"==typeof r?r:r.fromAttribute;return i?i(t,n):t}},{key:"_propertyValueToAttribute",value:function(t,e){if(void 0!==e.reflect){var n=e.type,r=e.converter;return(r&&r.toAttribute||W.toAttribute)(t,n)}}},{key:"observedAttributes",get:function(){var t=this;this.finalize();var e=[];return this._classProperties.forEach((function(n,r){var i=t._attributeNameForProperty(r,n);void 0!==i&&(t._attributeToPropertyMap.set(i,r),e.push(i))})),e}}]),i}(Object(r.j)(HTMLElement));G.finalized=!0;
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
var Q=function(t){return function(e){return"function"==typeof e?function(t,e){return window.customElements.define(t,e),e}(t,e):function(t,e){return{kind:e.kind,elements:e.elements,finisher:function(e){window.customElements.define(t,e)}}}(t,e)}};function K(t){return function(e,n){return void 0!==n?function(t,e,n){e.constructor.createProperty(n,t)}(t,e,n):function(t,e){return"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?Object.assign(Object.assign({},e),{finisher:function(n){n.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer:function(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher:function(n){n.createProperty(e.key,t)}}}(t,e)}}
/**
@license
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
var X="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Y=Symbol(),tt=function(){function t(e,n){if(Object(r.a)(this,t),n!==Y)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}return Object(r.b)(t,[{key:"toString",value:function(){return this.cssText}},{key:"styleSheet",get:function(){return void 0===this._styleSheet&&(X?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}}]),t}(),et=function(t){if(t instanceof tt)return t.cssText;if("number"==typeof t)return t;throw new Error("Value passed to 'css' function must be a 'css' function result: ".concat(t,". Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security."))},nt=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=n.reduce((function(e,n,r){return e+et(n)+t[r+1]}),t[0]);return new tt(i,Y)};(window.litElementVersions||(window.litElementVersions=[])).push("2.3.1");var rt={},it=function(t){Object(r.e)(n,t);var e=Object(r.f)(n);function n(){return Object(r.a)(this,n),e.apply(this,arguments)}return Object(r.b)(n,[{key:"initialize",value:function(){Object(r.g)(Object(r.h)(n.prototype),"initialize",this).call(this),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}},{key:"createRenderRoot",value:function(){return this.attachShadow({mode:"open"})}},{key:"adoptStyles",value:function(){var t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?X?this.renderRoot.adoptedStyleSheets=t.map((function(t){return t.styleSheet})):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map((function(t){return t.cssText})),this.localName))}},{key:"connectedCallback",value:function(){Object(r.g)(Object(r.h)(n.prototype),"connectedCallback",this).call(this),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}},{key:"update",value:function(t){var e=this,i=this.render();Object(r.g)(Object(r.h)(n.prototype),"update",this).call(this,t),i!==rt&&this.constructor.render(i,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((function(t){var n=document.createElement("style");n.textContent=t.cssText,e.renderRoot.appendChild(n)})))}},{key:"render",value:function(){return rt}}],[{key:"getStyles",value:function(){return this.styles}},{key:"_getUniqueStyles",value:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_styles",this))){var t=this.getStyles();if(void 0===t)this._styles=[];else if(Array.isArray(t)){var e=function t(e,n){return e.reduceRight((function(e,n){return Array.isArray(n)?t(n,e):(e.add(n),e)}),n)}(t,new Set),n=[];e.forEach((function(t){return n.unshift(t)})),this._styles=n}else this._styles=[t]}}}]),n}(G);it.finalized=!0,it.render=function(t,e,n){if(!n||"object"!==Object(r.i)(n)||!n.scopeName)throw new Error("The `scopeName` option is required.");var i=n.scopeName,a=z.has(e),s=q&&11===e.nodeType&&!!e.host,u=s&&!L.has(i),c=u?document.createDocumentFragment():e;if(function(t,e,n){var r=z.get(e);void 0===r&&(o(e,e.firstChild),z.set(e,r=new C(Object.assign({templateFactory:U},n))),r.appendInto(e)),r.setValue(t),r.commit()}(t,c,Object.assign({templateFactory:$(i)},n)),u){var l=z.get(c);z.delete(c);var f=l.value instanceof w?l.value.template:void 0;H(i,c,f),o(e,e.firstChild),e.appendChild(c),z.set(e,l)}!a&&s&&window.ShadyCSS.styleElement(e.host)}},59:function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(1),o=n(8),a=n(10),s=n(3);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){var t=g(['\n.fatable { /* xxx pull these rules out of archive.less if decide to pull "no JS" facets page.. */\n /**/-webkit-column-width: 250px;/*android*/\n /**/ -moz-column-width: 250px;/*firefox*/\n /**/ column-width: 250px;/*SUPERGREAT CSS3 FEATURE*/\n font-size: 12px;\n}\n.farow {\n width: 100%;\n display: inline-block;\n margin-bottom: 0;\n font-weight: 500;\n}\n.farow.hidden {\n display: none;\n}\n.farow .facell a {\n word-break: break-word;\n}\n.facell.fin {\n background-color: rgb(252, 194, 76); /*@yellow-em*/\n color: black;\n}\n.facell:first-child {\n float: left;\n width: 20px;\n}\n.facell:nth-child(2){\n text-align: right;\n float: right;\n}\n.facell:last-child {\n .breaker-breaker;\n display: flex; /*because want to lay facets cells out in one direction so that checkbox and facet cells value can in two different column*/\n}\n\n#morf-paging {\n margin-top:15px;\n margin-bottom:15px;\n background-color:#efefef;\n text-align:right;\n font-size:13px;\n padding-top:7px;\n padding-bottom:7px;\n padding-right:15px;\n word-spacing: 5px;\n color:#4a4a4a;\n}\n#morf-paging .topinblock {\n background-color: #fafafa;\n padding:7px 5px;\n margin-top:-7px;\n margin-bottom:-7px;\n}\n\n.loading {\n font-style: italic;\n margin: 25px;\n text-align: center;\n}\n.loading img {\n width: 25px;\n}\n']);return c=function(){return t},t}function l(){var t=g(['\n<link rel="stylesheet" href="/includes/build/css/archive.min.css">\n <div id="morf-page">\n <form>\n <div class="fatable">\n ',"\n </div>\n ",'\n <div id="morf-paging">\n ','\n </div>\n <center>\n <input class="btn ','" type="button"\n value="Apply your filters" @click='," />\n </center>\n </form>\n </div>"]);return l=function(){return t},t}function f(){var t=g(['\n <a href="#','" @click="','" data-action="pager_next">\n <span class="iconochive-right-solid" />\n </a>']);return f=function(){return t},t}function d(){var t=g([" "]);return d=function(){return t},t}function p(){var t=g(['<a href="#','" @click="','">',"</a>"]);return p=function(){return t},t}function h(){var t=g(['<div class="topinblock">',"</div>"]);return h=function(){return t},t}function v(){var t=g(['<div class="loading">loading filters... <img alt="" src="/images/loading.gif"/></div>']);return v=function(){return t},t}function y(){var t=g(["",""]);return y=function(){return t},t}function b(){var t=g(['<a href="/details/','">',"</a>"]);return b=function(){return t},t}function m(){var t=g(['\n <div class="','">\n <div class="facell">\n <input\n type="checkbox"\n ?checked=','\n name="','"\n value="','"\n />\n </div>\n <div class="facell">\n ','\n </div>\n <div class="facell">\n ',"\n </div>\n </div>"]);return m=function(){return t},t}function g(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e,n){return e&&_(t.prototype,e),n&&_(t,n),t}function S(t,e){return(S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j(t);if(e){var i=j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return k(this,n)}}function k(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&S(t,e)}(n,t);var e=O(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this)).cons(),t}return w(n,null,[{key:"click",value:function(t){var e=Object(r.a)(t.currentTarget),n=e.attr("href"),i=e.data("switchtoalpha");i&&"-"===i[0]?r.a.cookie(i.substr(1).concat("A2Z"),1,{path:"/",expires:1}):i&&r.a.cookie(i.concat("A2Z"),null,{path:"/",expires:1});var o="morf-modal",a="#".concat(o),s='\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header modal-header-std">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n <span class="iconochive-remove-circle"></span>\n </button>\n <h2 class="modal-title"></h2>\n </div>\n <div class="modal-body">\n <more-facets href="'.concat(n,'"></more-facets>\n </div>\n </div>\n </div>');return Object(r.a)(a).length||Object(r.a)("body").prepend(Object(r.a)('<div id="'.concat(o,'" class="modal fade" role="dialog" aria-hidden="true"/>'))),Object(r.a)(a).html(s).modal("show"),!1}},{key:"properties",get:function(){return{mounted:{type:Boolean},page:{type:Number},href:{type:String},morf:{type:String},hdr:{type:String},options:{type:Array},submit:{type:String}}}}]),w(n,[{key:"cons",value:function(){this.mounted=!1,this.page=1,this.href="",this.morf="",this.hdr="",this.options=[],this.submit="",this.checked={}}},{key:"getFacets",value:function(){var t=this;r.a.getJSON("".concat(this.href,"&headless=1&output=json"),(function(e){Object(i.a)(e),t.options=e.options,t.morf=e.morf,t.hdr=e.hdr,t.submit=e.submit,t.checked={};for(var n=0;n<e.checked.length;n++)t.checked[e.checked[n]]=1})).fail((function(){t.cons(),t.hdr="failed to get results"})).always((function(){t.mounted=!0}))}},{key:"render",value:function(){var t=this;Object(i.a)("rendering..");var e=!this.mounted;""===this.hdr&&(e=!0,this.getFacets()),Object(r.a)("#morf-modal .modal-title").html(e?"":this.hdr);var n=100*(this.page-1),o=n+100-1,u=this.options.map((function(r,i){var u=r.txt?r.txt:r.val,c=i>=n&&i<=o&&!e?"farow":"farow hidden";return Object(s.d)(m(),c,t.checked[r.val],r.val,r.val,Object(a.a)(r.n),t.href.match(/morf=collection$/)?Object(s.d)(b(),r.val,u):Object(s.d)(y(),u))})),c=[],g=Math.ceil(this.options.length/100),_=e?Object(s.d)(v()):"";if(!e){var w=1;for(w=1;w<=g;w++)this.page===w?c.push(Object(s.d)(h(),w)):c.push(Object(s.d)(p(),w,this.pageClick,w)),c.push(Object(s.d)(d()));this.page<g&&c.push(Object(s.d)(f(),1+this.page,this.pageClick))}return Object(s.d)(l(),u,_,c,e?"btn-primary hidden":"btn-primary",this.submitClick)}},{key:"pageClick",value:function(t){t.stopPropagation(),t.preventDefault(),this.page="pager_next"===t.currentTarget.dataset.action?this.page+1:parseInt(Object(r.a)(t.target).text(),10)}},{key:"submitClick",value:function(){var t=this;Object(i.a)("submitted");var e=this.submit;this.shadowRoot.querySelectorAll("input:checked").forEach((function(n){var r="&and[]=".concat(t.morf,'%3A"').concat(encodeURIComponent(n.value),'"');Object(i.a)("checked",n.value,"=>",r),e+=r})),Object(i.a)(e),location.href=e}}],[{key:"styles",get:function(){return Object(s.b)(c())}}]),n}(s.a);Object(r.a)((function(){return Object(o.a)("body",(function(t){return!Object(r.a)(t.currentTarget,"a").hasClass("js-more-facets-click")||x.click(t)}),"callback","a")})),customElements.define("more-facets",x)},8:function(t,e,n){"use strict";function r(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"false",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if("string"!=typeof t)throw new Error("first arg should be a string");$(t).on("click",r,(function(t){var r=e(t);return"callback"===n&&r?r:"default"===n||(t&&t.preventDefault&&t.preventDefault(),t&&t.stopPropagation&&t.stopPropagation(),!1)}))}n.d(e,"a",(function(){return r}))}});
//# sourceMappingURL=more-facets.min.js.map
// @license-end