p-elements-core 2.0.15 → 2.1.0-rc10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/p-elements-core.js +1 -72
  2. package/package.json +56 -56
  3. package/readme.md +386 -0
  4. package/typings/custom-element-controller.d.ts +18 -0
  5. package/typings/custom-element-controller.d.ts.map +1 -0
  6. package/typings/custom-element.d.ts +140 -0
  7. package/typings/custom-element.d.ts.map +1 -0
  8. package/typings/decorators/bind.d.ts +6 -0
  9. package/typings/decorators/bind.d.ts.map +1 -0
  10. package/typings/decorators/custom-element-config.d.ts +8 -0
  11. package/typings/decorators/custom-element-config.d.ts.map +1 -0
  12. package/typings/decorators/property.d.ts +213 -0
  13. package/typings/decorators/property.d.ts.map +1 -0
  14. package/typings/decorators/query.d.ts +2 -0
  15. package/typings/decorators/query.d.ts.map +1 -0
  16. package/typings/decorators/render-property-on-set.d.ts +2 -0
  17. package/typings/decorators/render-property-on-set.d.ts.map +1 -0
  18. package/typings/maquette/cache.d.ts +10 -0
  19. package/typings/maquette/cache.d.ts.map +1 -0
  20. package/typings/maquette/dom.d.ts +60 -0
  21. package/typings/maquette/dom.d.ts.map +1 -0
  22. package/typings/maquette/h.d.ts +35 -0
  23. package/typings/maquette/h.d.ts.map +1 -0
  24. package/typings/maquette/index.d.ts +12 -0
  25. package/typings/maquette/index.d.ts.map +1 -0
  26. package/typings/maquette/interfaces.d.ts +475 -0
  27. package/typings/maquette/interfaces.d.ts.map +1 -0
  28. package/typings/maquette/jsx.d.ts +6 -0
  29. package/typings/maquette/jsx.d.ts.map +1 -0
  30. package/typings/maquette/mapping.d.ts +14 -0
  31. package/typings/maquette/mapping.d.ts.map +1 -0
  32. package/typings/maquette/projection.d.ts +9 -0
  33. package/typings/maquette/projection.d.ts.map +1 -0
  34. package/typings/maquette/projector.d.ts +27 -0
  35. package/typings/maquette/projector.d.ts.map +1 -0
  36. package/typings/p-elements-core.d.ts +225 -0
  37. package/typings/p-elements-core.d.ts.map +1 -0
  38. package/.editorconfig +0 -17
  39. package/.gitlab-ci.yml +0 -16
  40. package/dist/p-elements-core-modern.js +0 -72
  41. package/dist/sample.js +0 -20
  42. package/index.html +0 -171
  43. package/karma.conf.js +0 -32
  44. package/p-elements-core.d.ts +0 -141
  45. package/screen.css +0 -16
  46. package/src/bar.css +0 -3
  47. package/src/cache.ts +0 -35
  48. package/src/commonjs.js +0 -182
  49. package/src/custom-element.ts +0 -185
  50. package/src/custom-inline-style-element.ts +0 -42
  51. package/src/custom-style-element.ts +0 -27
  52. package/src/decorators/bind.ts +0 -40
  53. package/src/decorators/custom-element-config.ts +0 -17
  54. package/src/decorators/property-render-on-set.ts +0 -49
  55. package/src/decorators/reflect-to-attribute.ts +0 -51
  56. package/src/dom.ts +0 -100
  57. package/src/h.ts +0 -93
  58. package/src/index.tsx +0 -84
  59. package/src/interfaces.ts +0 -455
  60. package/src/mapping.ts +0 -55
  61. package/src/projection.ts +0 -537
  62. package/src/projector.ts +0 -168
  63. package/src/sample.css +0 -19
  64. package/src/sample.spec.ts +0 -112
  65. package/src/sample.tsx +0 -187
  66. package/src/tsconfig.json +0 -16
  67. package/theme.css +0 -12
  68. package/tsconfig.json +0 -17
  69. package/tslint.json +0 -33
  70. package/webpack.config.js +0 -100
  71. package/webpack.config.karma.js +0 -35
@@ -1,72 +0,0 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=296)}({17:function(e,t,n){"use strict";function r(e,t){Reflect.get(e,"_dp_"+t)||Reflect.defineProperty(e,"_dp_"+t,{configurable:!0,enumerable:!0,get:function(){return this["_"+t+"_value"]},set:function(e){this["_"+t+"_value"]=e}}),e["_dp_setters_"+t]||(e["_dp_setters_"+t]=[]);e["_dp_setters_"+t].push((function(e,t){e&&e.renderNow&&e.renderNow()}));Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return this["_"+t+"_value"]},set:function(n){var r=this;this["_dp_"+t]=n,e["_dp_setters_"+t]&&e["_dp_setters_"+t].forEach((function(e){e(r,n)}))}})}n.d(t,"a",(function(){return r}))},21:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return function(t){window.customElements.define(e.tagName,t,e.options);var n=e.tagName.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));window[n.charAt(0).toUpperCase()+n.slice(1)]=t}}},22:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,i="".concat("http://www.w3.org/","2000/svg"),a="".concat("http://www.w3.org/","1999/xlink"),l=[],s=function(e,t){var n={};return Object.keys(e).forEach((function(t){n[t]=e[t]})),t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n},c=function(e,t){return e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties)},u=function(e){if("string"!=typeof e)throw new Error("Style values must be strings")},d=function(e,t,n){if(""!==t.vnodeSelector)for(var r=n;r<e.length;r++)if(c(e[r],t))return r;return-1},f=function(e,t,n,r){var o=e[t];if(""!==o.vnodeSelector){var i=o.properties;if(!(i?void 0===i.key?i.bind:i.key:void 0))for(var a=0;a<e.length;a++)if(a!==t){var l=e[a];if(c(l,o))throw new Error("".concat(n.vnodeSelector," had a ").concat(o.vnodeSelector," child ").concat("added"===r?r:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable."))}}},p=function(e){if(e.properties){var t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},h=[],m=!1,v=function e(t){(t.children||[]).forEach(e),t.properties&&t.properties.afterRemoved&&t.properties.afterRemoved.apply(t.properties.bind||t.properties,[t.domNode])},y=function(){m=!1,h.forEach(v),h.length=0},g=function(e){h.push(e),m||(m=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(y,{timeout:16}):setTimeout(y,16))},b=function(e){var t=e.domNode;if(e.properties){var n=e.properties.exitAnimation;if(n){t.style.pointerEvents="none";return void n(t,(function(){t.parentNode&&(t.parentNode.removeChild(t),g(e))}),e.properties)}}t.parentNode&&(t.parentNode.removeChild(t),g(e))},E=function(e,t,n){!function(e,t,n){if(t){var r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var s=a.value;w(s,e,void 0,n)}}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}}}(e,t.children,n),t.text&&(e.textContent=t.text),function(e,t,n){if(t)for(var o=n.eventHandlerInterceptor,l=Object.keys(t),s=l.length,c=function(s){var c,d=l[s],f=t[d];if("className"===d)throw new Error('Property "className" is not supported, use "class".');if("class"===d)f.split(/\s+/).forEach((function(t){return e.classList.add(t)}));else if("classes"===d)for(var p=Object.keys(f),h=p.length,m=0;m<h;m++){var v=p[m];f[v]&&e.classList.add(v)}else if("styles"===d)for(var y=Object.keys(f),g=y.length,b=0;b<g;b++){var E=y[b],w=f[E];w&&(u(w),n.styleApplyer(e,E,w))}else if("key"!==d&&null!=f){var S=r(f);"function"===S?0===d.lastIndexOf("on",0)&&(o&&(f=o(d,f,e,t)),"oninput"===d&&(c=f,f=function(e){c.apply(this,[e]),e.target["oninput-value"]=e.target.value}),e[d]=f):"string"===S&&"value"!==d&&"innerHTML"!==d?n.namespace===i&&"href"===d?e.setAttributeNS(a,d,f):e.setAttribute(d,f):e[d]=f}},d=0;d<s;d++)c(d)}(e,t.properties,n),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,n,t.vnodeSelector,t.properties,t.children])},w=function(e,t,n,r){var o,a=0,l=e.vnodeSelector,c=t.ownerDocument;if(""===l)o=e.domNode=c.createTextNode(e.text),void 0!==n?t.insertBefore(o,n):t.appendChild(o);else{for(var u=0;u<=l.length;++u){var d=l.charAt(u);if(u===l.length||"."===d||"#"===d){var f=l.charAt(a-1),p=l.slice(a,u);if("."===f)o.classList.add(p);else if("#"===f)o.id=p;else{if("svg"===p&&(r=s(r,{namespace:i})),void 0!==r.namespace)o=e.domNode=c.createElementNS(r.namespace,p);else{var h=void 0;e.properties&&e.properties.is?function(){var t=document.createElement("div");t.style.display="none",document.body.appendChild(t),t.innerHTML="<".concat(p,' is="').concat(e.properties.is,'"></').concat(p,">"),setTimeout((function(){document.body.removeChild(t)}),10),h=c.createElement(p,{is:e.properties.is})}():h=c.createElement(p),o=e.domNode=e.domNode||h,"input"===p&&e.properties&&void 0!==e.properties.type&&o.setAttribute("type",e.properties.type)}void 0!==n?t.insertBefore(o,n):o.parentNode!==t&&t.appendChild(o)}a=u+1}}E(o,e,r)}},S=function(e,t,n){t&&t.split(" ").forEach((function(t){return e.classList.toggle(t,n)}))},C=function(e,t,n,r,i){if(n===r)return!1;r=r||l;for(var a,s=(n=n||l).length,u=r.length,h=0,m=0,v=!1;m<u;){var y=h<s?n[h]:void 0,g=r[m];if(void 0!==y&&c(y,g))v=o(y,g,i)||v,h++;else{var E=d(n,g,h+1);if(E>=0){for(a=h;a<E;a++)b(n[a]),f(n,a,e,"removed");v=o(n[E],g,i)||v,h=E+1}else w(g,t,h<s?n[h].domNode:void 0,i),p(g),f(r,m,e,"added")}m++}if(s>h)for(a=h;a<s;a++)b(n[a]),f(n,a,e,"removed");return v};o=function(e,t,n){var o=e.domNode,l=!1;if(e===t)return!1;var c=!1;if(""===t.vnodeSelector){if(t.text!==e.text){var d=o.ownerDocument.createTextNode(t.text);return o.parentNode.replaceChild(d,o),t.domNode=d,l=!0}t.domNode=o}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(n=s(n,{namespace:i})),e.text!==t.text&&(c=!0,void 0===t.text?o.removeChild(o.firstChild):o.textContent=t.text),t.domNode=o,c=C(t,o,e.children,t.children,n)||c,c=function(e,t,n,o){if(n){for(var l=!1,s=Object.keys(n),c=s.length,d=0;d<c;d++){var f=s[d],p=n[f],h=t[f];if("class"===f)h!==p&&(S(e,h,!1),S(e,p,!0));else if("classes"===f)for(var m=e.classList,v=Object.keys(p),y=v.length,g=0;g<y;g++){var b=v[g],E=!!p[b];E!==!!h[b]&&(l=!0,E?m.add(b):m.remove(b))}else if("styles"===f)for(var w=Object.keys(p),C=w.length,N=0;N<C;N++){var T=w[N],M=p[T];M!==h[T]&&(l=!0,M?(u(M),o.styleApplyer(e,T,M)):o.styleApplyer(e,T,""))}else if(p||"string"!=typeof h||(p=""),"value"===f){var _=e[f];_!==p&&(e["oninput-value"]?_===e["oninput-value"]:p!==h)&&(e[f]=p,e["oninput-value"]=void 0),p!==h&&(l=!0)}else if(p!==h){var O=r(p);"function"===O&&o.eventHandlerInterceptor||("string"===O&&"innerHTML"!==f?o.namespace===i&&"href"===f?e.setAttributeNS(a,f,p):"role"===f&&""===p?e.removeAttribute(f):e.setAttribute(f,p):e[f]!==p&&(e[f]=p),l=!0)}}return l}}(o,e.properties,t.properties,n)||c,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[o,n,t.vnodeSelector,t.properties,t.children]);return c&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(o,t.properties,e.properties),l};var N,T=function(e,t){return{getLastRender:function(){return e},update:function(n){if(e.vnodeSelector!==n.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var r=e;e=n,o(r,n,t)},domNode:e.domNode}},M={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,t,n){e.style[t]=n}},_=function(e){return s(M,e)},O=function(e,t,n){return n=_(n),w(t,e,void 0,n),T(t,n)},L=function(e,t,n){return n=_(n),w(t,e.parentNode,e,n),T(t,n)},x=function(e,t,n){return n=_(n),t.domNode=e,E(e,t,n),T(t,n)},A=function(e,t,n){return n=_(n),w(t,e.parentNode,e,n),e.parentNode.removeChild(e),T(t,n)},D=function(e,t){for(var n=[];e!==t;)n.push(e),e=e.parentNode;return n};N=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){return e.filter(t)[0]};var H=function(e,t){var n=e;return t.forEach((function(e){n=n&&n.children?N(n.children,(function(t){return t.domNode===e})):void 0})),n},R=function(e){var t,n,r=_(e),o=r.performanceLogger,i=!0,a=!1,l=[],s=[],c=function(e,n,i){var a;r.eventHandlerInterceptor=function(e,t,n){var r=function(r){n("domEvent",r);var o=t(),i=D(r.currentTarget,o.domNode);i.reverse();var a,l=H(o.getLastRender(),i);return e.scheduleRender(),l&&(a=l.properties["on".concat(r.type)].apply(l.properties.bind||this,arguments)),n("domEventProcessed",r),a};return function(e,t,n,o){return r}}(t,(function(){return a}),o),a=e(n,i(),r),l.push(a),s.push(i)},u=function(){if(n=void 0,i){i=!1,o("renderStart",void 0);for(var e=0;e<l.length;e++){var t=s[e]();o("rendered",void 0),l[e].update(t),o("patched",void 0)}o("renderDone",void 0),i=!0}};return t={renderNow:u,scheduleRender:function(){n||a||(n=requestAnimationFrame(u))},stop:function(){n&&(cancelAnimationFrame(n),n=void 0),a=!0},resume:function(){a=!1,i=!0,t.scheduleRender()},append:function(e,t){c(O,e,t)},insertBefore:function(e,t){c(L,e,t)},merge:function(e,t){c(x,e,t)},replace:function(e,t){c(A,e,t)},detach:function(e){for(var t=0;t<s.length;t++)if(s[t]===e)return s.splice(t,1),l.splice(t,1)[0];throw new Error("renderFunction was not found")}}};function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){var t="function"==typeof Map?new Map:void 0;return(F=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return I(e,arguments,q(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),V(r,e)})(e)}function I(e,t,n){return(I=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(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&V(o,n.prototype),o}).apply(null,arguments)}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return G}));var U,B=n(50);U=document.registerElement,/\{\s*\[native code\]\s*\}/.test(""+U)||B(window,"auto");var K=Symbol("UPDATE_ON_CONNECTED"),G=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=(n=function(e,t){return!t||"object"!==P(t)&&"function"!=typeof t?k(e):t}(this,q(t).call(this,e))).constructor.observedProperties,o=void 0===r?[]:r;return n[K]=[],"function"==typeof n.renderNow&&o.forEach((function(e){var t=n[e],r=Symbol(e);n[r]=t,Object.defineProperty(k(k(n)),e,{get:function(){return this[r]},set:function(e){this[r]=e,this.renderNow()}}),void 0!==t&&n[K].push(e)})),"function"==typeof n.init&&n.init(),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(t,e),n=t,(r=[{key:"initShadowRoot",value:function(e,t){var n=this;return new Promise((function(r,o){n.shadowRoot||n.attachShadow({mode:"open"}),n.shadowRoot&&setTimeout((function(){if(!n._projector){var o=R();o.append(n.shadowRoot,t.bind(n)),n._projector=o}var i=document.createElement("template");i.innerHTML=e,function e(){var t=window.ShadyCSS;if("function"==typeof t.prepareTemplate){t.prepareTemplate(i,n.tagName.toLowerCase());var o=document.importNode(i.content,!0).querySelector("style");o&&n.shadowRoot&&(Array.from(n.shadowRoot.children).forEach((function(e){n.shadowRoot&&"STYLE"===e.tagName&&n.shadowRoot.removeChild(e)})),n.shadowRoot.insertBefore(o,n.shadowRoot.firstChild)),t.styleElement&&t.styleElement(n),t.styleSubtree&&t.styleSubtree(n),t.styleDocument&&t.styleDocument(),n.renderNow(),r(!0)}else setTimeout(e,100)}()}),150)}))}},{key:"removeDoubleStyleElements",value:function(){var e=document.querySelectorAll('style[scope="'.concat(this.tagName.toLowerCase(),'"]'));e&&Array.prototype.slice.call(e).forEach((function(t,n){n<e.length-1&&document.head.removeChild(t)}))}},{key:"updateStyle",value:function(){this.shadowRoot&&window.ShadyCSS&&(window.ShadyCSS.styleElement(this),window.ShadyCSS.styleSubtree(this),window.ShadyCSS.styleDocument(),this.removeDoubleStyleElements())}},{key:"templateFromString",value:function(e){var t=this;this.shadowRoot?this.shadowRoot.innerHTML="":this.attachShadow({mode:"open"}),window.ShadyCSS&&window.addEventListener("customStyleConnected",(function(e){t.updateStyle()}));var n=document.createElement("template");n.innerHTML=e,window.ShadyCSS&&window.ShadyCSS.prepareTemplate(n,this.tagName.toLowerCase());var r=document.importNode(n.content,!0);return window.ShadyCSS&&(window.ShadyCSS.styleElement(this),this.removeDoubleStyleElements()),r}},{key:"createProjector",value:function(e,t){var n=this;return new Promise((function(r,o){var i;setTimeout((function(){(i=R()).append(e,t),n._projector=i,r(i),n.dispatchEvent(new CustomEvent("firstRender",{}))}),1)}))}},{key:"getNewProjectorInstance",value:function(){return R()}},{key:"renderNow",value:function(){this._projector&&this._projector.renderNow()}}])&&j(n.prototype,r),o&&j(n,o),t}(F(HTMLElement))},29:function(e,t,n){"use strict";function r(e,t){Reflect.get(e,"_dp_"+t)||Reflect.defineProperty(e,"_dp_"+t,{configurable:!0,enumerable:!0,get:function(){return this["_"+t+"_value"]},set:function(e){this["_"+t+"_value"]=e}}),e["_dp_setters_"+t]||(e["_dp_setters_"+t]=[]);e["_dp_setters_"+t].push((function(e,n){e&&e.getAttribute&&e.getAttribute(t)!==n&&e.setAttribute(t,n)}));Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return this["_"+t+"_value"]},set:function(n){var r=this;this["_dp_"+t]=n,e["_dp_setters_"+t]&&e["_dp_setters_"+t].forEach((function(e){e(r,n)}))}})}n.d(t,"a",(function(){return r}))},296:function(e,t,n){n(88),n(89),n(90),n(91),n(92),n(93),n(94),e.exports=n(96)},40:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},50:function(e,t){e.exports=
2
- /*!
3
- ISC License
4
-
5
- Copyright (c) 2014-2018, Andrea Giammarchi, @WebReflection
6
-
7
- Permission to use, copy, modify, and/or distribute this software for any
8
- purpose with or without fee is hereby granted, provided that the above
9
- copyright notice and this permission notice appear in all copies.
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
- PERFORMANCE OF THIS SOFTWARE.
18
-
19
- */
20
- function(e,t){"use strict";var n=e.document,r=e.Object,o=function(e){var t,n,o,i,a=/^[A-Z]+[a-z]/,l=function(e,t){(t=t.toLowerCase())in s||(s[e]=(s[e]||[]).concat(t),s[t]=s[t.toUpperCase()]=e)},s=(r.create||r)(null),c={};for(n in e)for(i in e[n])for(o=e[n][i],s[i]=o,t=0;t<o.length;t++)s[o[t].toLowerCase()]=s[o[t].toUpperCase()]=i;return c.get=function(e){return"string"==typeof e?s[e]||(a.test(e)?[]:""):function(e){var t,n=[];for(t in s)e.test(t)&&n.push(t);return n}(e)},c.set=function(e,t){return a.test(e)?l(e,t):l(t,e),c},c}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof t&&(t={type:t||"auto"});var i,a,l,s,c,u,d,f,p,h="registerElement",m="__"+h+(1e5*e.Math.random()>>0),v="addEventListener",y="attached",g="Callback",b="detached",E="extends",w="attributeChanged"+g,S=y+g,C="connected"+g,N="disconnected"+g,T="created"+g,M=b+g,_="ADDITION",O="REMOVAL",L="DOMAttrModified",x="DOMContentLoaded",A="DOMSubtreeModified",D="<",H="=",R=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,P=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],j=[],k=[],F="",I=n.documentElement,V=j.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},q=r.prototype,U=q.hasOwnProperty,B=q.isPrototypeOf,K=r.defineProperty,G=[],W=r.getOwnPropertyDescriptor,$=r.getOwnPropertyNames,z=r.getPrototypeOf,X=r.setPrototypeOf,Z=!!r.__proto__,Y="__dreCEv1",J=e.customElements,Q=!/^force/.test(t.type)&&!!(J&&J.define&&J.get&&J.whenDefined),ee=r.create||r,te=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[V.call(t,e)]},set:function(r,o){(e=V.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},ne=e.Promise||function(e){var t=[],n=!1,r={catch:function(){return r},then:function(e){return t.push(e),n&&setTimeout(o,1),r}};function o(e){for(n=!0;t.length;)t.shift()(e)}return e(o),r},re=!1,oe=ee(null),ie=ee(null),ae=new te,le=function(e){return e.toLowerCase()},se=r.create||function e(t){return t?(e.prototype=t,new e):this},ce=X||(Z?function(e,t){return e.__proto__=t,e}:$&&W?function(){function e(e,t){for(var n,r=$(t),o=0,i=r.length;o<i;o++)n=r[o],U.call(e,n)||K(e,n,W(t,n))}return function(t,n){do{e(t,n)}while((n=z(n))&&!B.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),ue=e.MutationObserver||e.WebKitMutationObserver,de=e.HTMLAnchorElement,fe=(e.HTMLElement||e.Element||e.Node).prototype,pe=!B.call(fe,I),he=pe?function(e,t,n){return e[t]=n.value,e}:K,me=pe?function(e){return 1===e.nodeType}:function(e){return B.call(fe,e)},ve=pe&&[],ye=fe.attachShadow,ge=fe.cloneNode,be=fe.dispatchEvent,Ee=fe.getAttribute,we=fe.hasAttribute,Se=fe.removeAttribute,Ce=fe.setAttribute,Ne=n.createElement,Te=n.importNode,Me=Ne,_e=ue&&{attributes:!0,characterData:!0,attributeOldValue:!0},Oe=ue||function(e){He=!1,I.removeEventListener(L,Oe)},Le=0,xe=h in n&&!/^force-all/.test(t.type),Ae=!0,De=!1,He=!0,Re=!0,Pe=!0;function je(){var e=i.splice(0,i.length);for(Le=0;e.length;)e.shift().call(null,e.shift())}function ke(e,t){for(var n=0,r=e.length;n<r;n++)ze(e[n],t)}function Fe(e){return function(t){me(t)&&(ze(t,e),F.length&&ke(t.querySelectorAll(F),e))}}function Ie(e){var t=Ee.call(e,"is"),n=e.nodeName.toUpperCase(),r=V.call(j,t?H+t.toUpperCase():D+n);return t&&-1<r&&!Ve(n,t)?-1:r}function Ve(e,t){return-1<F.indexOf(e+'[is="'+t+'"]')}function qe(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,i=e[_]||2,a=e[O]||3;!Pe||o&&o!==t||!t[w]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==i&&n!==a)||t[w](r,n===i?null:e.prevValue,n===a?null:e.newValue)}function Ue(e){var t=Fe(e);return function(e){i.push(t,e.target),Le&&clearTimeout(Le),Le=setTimeout(je,1)}}function Be(e){Re&&(Re=!1,e.currentTarget.removeEventListener(x,Be)),F.length&&ke((e.target||n).querySelectorAll(F),e.detail===b?b:y),pe&&function(){for(var e,t=0,n=ve.length;t<n;t++)e=ve[t],I.contains(e)||(n--,ve.splice(t--,1),ze(e,b))}()}function Ke(e,t){Ce.call(this,e,t),a.call(this,{target:this})}function Ge(e,t,n){var r=t.apply(e,n),o=Ie(r);return-1<o&&f(r,k[o]),n.pop()&&F.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)t=e[n],f(t,k[Ie(t)])}(r.querySelectorAll(F)),r}function We(e,t){ce(e,t),c?c.observe(e,_e):(He&&(e.setAttribute=Ke,e[m]=s(e),e[v](A,a)),e[v](L,qe)),e[T]&&Pe&&(e.created=!0,e[T](),e.created=!1)}function $e(e){throw new Error("A "+e+" type is already registered")}function ze(e,t){var n,r,o=Ie(e);-1<o&&(d(e,k[o]),o=0,t!==y||e[y]?t!==b||e[b]||(e[y]=!1,e[b]=!0,r="disconnected",o=1):(e[b]=!1,e[y]=!0,r="connected",o=1,pe&&V.call(ve,e)<0&&ve.push(e)),o&&(n=e[t+g]||e[r+g])&&n.call(e))}function Xe(){}function Ze(e,t,r){var o=r&&r[E]||"",i=t.prototype,a=se(i),l=t.observedAttributes||G,s={prototype:a};he(a,T,{value:function(){if(re)re=!1;else if(!this[Y]){this[Y]=!0,new t(this),i[T]&&i[T].call(this);var e=oe[ae.get(t)];(!Q||e.create.length>1)&&Qe(this)}}}),he(a,w,{value:function(e){-1<V.call(l,e)&&i[w]&&i[w].apply(this,arguments)}}),i[C]&&he(a,S,{value:i[C]}),i[N]&&he(a,M,{value:i[N]}),o&&(s[E]=o),e=e.toUpperCase(),oe[e]={constructor:t,create:o?[o,le(e)]:[e]},ae.set(t,e),n[h](e.toLowerCase(),s),et(e),ie[e].r()}function Ye(e){var t=oe[e.toUpperCase()];return t&&t.constructor}function Je(e){return"string"==typeof e?e:e&&e.is||""}function Qe(e){for(var t,n=e[w],r=n?e.attributes:G,o=r.length;o--;)t=r[o],n.call(e,t.name||t.nodeName,null,t.value||t.nodeValue)}function et(e){return(e=e.toUpperCase())in ie||(ie[e]={},ie[e].p=new ne((function(t){ie[e].r=t}))),ie[e].p}function tt(){J&&delete e.customElements,K(e,"customElements",{configurable:!0,value:new Xe}),K(e,"CustomElementRegistry",{configurable:!0,value:Xe});for(var t=function(t){var r=e[t];if(r){e[t]=function(e){var t,o;return e||(e=this),e[Y]||(re=!0,t=oe[ae.get(e.constructor)],(e=(o=Q&&1===t.create.length)?Reflect.construct(r,G,t.constructor):n.createElement.apply(n,t.create))[Y]=!0,re=!1,o||Qe(e)),e},e[t].prototype=r.prototype;try{r.prototype.constructor=e[t]}catch(n){!0,K(r,Y,{value:e[t]})}}},r=o.get(/^HTML[A-Z]*[a-z]/),i=r.length;i--;t(r[i]));n.createElement=function(e,t){var n=Je(t);return n?Me.call(this,e,le(n)):Me.call(this,e)},xe||(De=!0,n[h](""))}if(ue&&((p=n.createElement("div")).innerHTML="<div><div></div></div>",new ue((function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(p=W(fe,"innerHTML"))&&p.set;n&&K(fe,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),p=null})).observe(p,{childList:!0,subtree:!0}),p.innerHTML=""),xe||(X||Z?(d=function(e,t){B.call(t,e)||We(e,t)},f=We):f=d=function(e,t){e[m]||(e[m]=r(!0),We(e,t))},pe?(He=!1,function(){var e=W(fe,v),t=e.value,n=function(e){var t=new CustomEvent(L,{bubbles:!0});t.attrName=e,t.prevValue=Ee.call(this,e),t.newValue=null,t[O]=t.attrChange=2,Se.call(this,e),be.call(this,t)},r=function(e,t){var n=we.call(this,e),r=n&&Ee.call(this,e),o=new CustomEvent(L,{bubbles:!0});Ce.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o.MODIFICATION=o.attrChange=1:o[_]=o.attrChange=0,be.call(this,o)},o=function(e){var t,n=e.currentTarget,r=n[m],o=e.propertyName;r.hasOwnProperty(o)&&(r=r[o],(t=new CustomEvent(L,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t[_]=t.attrChange=0:t.MODIFICATION=t.attrChange=1,be.call(n,t))};e.value=function(e,i,a){e===L&&this[w]&&this.setAttribute!==r&&(this[m]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,e,i,a)},K(fe,v,e)}()):ue||(I[v](L,Oe),I.setAttribute(m,1),I.removeAttribute(m),He&&(a=function(e){var t,n,r;if(this===e.target){for(r in t=this[m],this[m]=n=s(this),n){if(!(r in t))return l(0,this,r,t[r],n[r],_);if(n[r]!==t[r])return l(1,this,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return l(2,this,r,t[r],n[r],O)}},l=function(e,t,n,r,o,i){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};a[i]=e,qe(a)},s=function(e){for(var t,n,r={},o=e.attributes,i=0,a=o.length;i<a;i++)"setAttribute"!==(n=(t=o[i]).name)&&(r[n]=t.value);return r})),n[h]=function(e,t){if(r=e.toUpperCase(),Ae&&(Ae=!1,ue?(c=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new ue((function(r){for(var o,i,a,l=0,s=r.length;l<s;l++)"childList"===(o=r[l]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(i=o.target,Pe&&i[w]&&"style"!==o.attributeName&&(a=Ee.call(i,o.attributeName))!==o.oldValue&&i[w](o.attributeName,o.oldValue,a))}))}(Fe(y),Fe(b)),(u=function(e){return c.observe(e,{childList:!0,subtree:!0}),e})(n),ye&&(fe.attachShadow=function(){return u(ye.apply(this,arguments))})):(i=[],n[v]("DOMNodeInserted",Ue(y)),n[v]("DOMNodeRemoved",Ue(b))),n[v](x,Be),n[v]("readystatechange",Be),n.importNode=function(e,t){switch(e.nodeType){case 1:return Ge(n,Te,[e,!!t]);case 11:for(var r=n.createDocumentFragment(),o=e.childNodes,i=o.length,a=0;a<i;a++)r.appendChild(n.importNode(o[a],!!t));return r;default:return ge.call(e,!!t)}},fe.cloneNode=function(e){return Ge(this,ge,[!!e])}),De)return De=!1;if(-2<V.call(j,H+r)+V.call(j,D+r)&&$e(e),!R.test(r)||-1<V.call(P,r))throw new Error("The type "+e+" is invalid");var r,o,a=function(){return s?n.createElement(d,r):n.createElement(d)},l=t||q,s=U.call(l,E),d=s?t[E].toUpperCase():r;return s&&-1<V.call(j,D+d)&&$e(d),o=j.push((s?H:D)+r)-1,F=F.concat(F.length?",":"",s?d+'[is="'+e.toLowerCase()+'"]':d),a.prototype=k[o]=U.call(l,"prototype")?l.prototype:se(fe),F.length&&ke(n.querySelectorAll(F),y),a},n.createElement=Me=function(e,t){var r=Je(t),o=r?Ne.call(n,e,le(r)):Ne.call(n,e),i=""+e,a=V.call(j,(r?H:D)+(r||i).toUpperCase()),l=-1<a;return r&&(o.setAttribute("is",r=r.toLowerCase()),l&&(l=Ve(i.toUpperCase(),r))),Pe=!n.createElement.innerHTMLHelper,l&&f(o,k[a]),o}),Xe.prototype={constructor:Xe,define:Q?function(e,t,n){if(n)Ze(e,t,n);else{var r=e.toUpperCase();oe[r]={constructor:t,create:[r]},ae.set(t,r),J.define(e,t)}}:Ze,get:Q?function(e){return J.get(e)||Ye(e)}:Ye,whenDefined:Q?function(e){return ne.race([J.whenDefined(e),et(e)])}:et},!J||/^force/.test(t.type))tt();else if(!t.noBuiltIn)try{!function(t,r,o){var i=new RegExp("^<a\\s+is=('|\")"+o+"\\1></a>$");if(r[E]="a",(t.prototype=se(de.prototype)).constructor=t,e.customElements.define(o,t,r),!i.test(n.createElement("a",{is:o}).outerHTML)||!i.test((new t).outerHTML))throw r}((function e(){return Reflect.construct(de,[],e)}),{},"document-register-element-a")}catch(e){tt()}if(!t.noBuiltIn)try{if(Ne.call(n,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(e){le=function(e){return{is:e.toLowerCase()}}}}},88:function(e,t){
21
- /**
22
- * @license
23
- * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
24
- * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
25
- * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
26
- * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
27
- * Code distributed by Google as part of the polymer project is also
28
- * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
29
- */
30
- !function(){"use strict";var e="undefined"==typeof HTMLTemplateElement,t=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),n=!1;/Trident/.test(navigator.userAgent)&&function(){n=!0;var e=Node.prototype.cloneNode;Node.prototype.cloneNode=function(t){var n=e.call(this,t);return this instanceof DocumentFragment&&(n.__proto__=DocumentFragment.prototype),n},DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll,DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector,Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var t=Node.prototype.insertBefore;function r(e,n){if(e instanceof DocumentFragment)for(var r;r=e.firstChild;)t.call(this,r,n);else t.call(this,e,n);return e}Node.prototype.insertBefore=r;var o=Node.prototype.appendChild;Node.prototype.appendChild=function(e){return e instanceof DocumentFragment?r.call(this,e,null):o.call(this,e),e};var i=Node.prototype.removeChild,a=Node.prototype.replaceChild;Node.prototype.replaceChild=function(e,t){return e instanceof DocumentFragment?(r.call(this,e,t),i.call(this,t)):a.call(this,e,t),t},Document.prototype.createDocumentFragment=function(){var e=this.createElement("df");return e.__proto__=DocumentFragment.prototype,e};var l=Document.prototype.importNode;Document.prototype.importNode=function(e,t){t=t||!1;var n=l.call(this,e,t);return e instanceof DocumentFragment&&(n.__proto__=DocumentFragment.prototype),n}}();var r=Node.prototype.cloneNode,o=Document.prototype.createElement,i=Document.prototype.importNode,a=Node.prototype.removeChild,l=Node.prototype.appendChild,s=Node.prototype.replaceChild,c=DOMParser.prototype.parseFromString,u=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(e){this.innerHTML=e}},d=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},f=Element.prototype.querySelectorAll,p=Document.prototype.querySelectorAll,h=DocumentFragment.prototype.querySelectorAll;function m(e,t){if(!e.childNodes.length)return[];switch(e.nodeType){case Node.DOCUMENT_NODE:return p.call(e,t);case Node.DOCUMENT_FRAGMENT_NODE:return h.call(e,t);default:return f.call(e,t)}}var v=function(){if(!e){var n=document.createElement("template"),r=document.createElement("template");r.content.appendChild(document.createElement("div")),n.content.appendChild(r);var o=n.cloneNode(!0);return 0===o.content.childNodes.length||0===o.content.firstChild.content.childNodes.length||t}}(),y=function(){};if(e){var g=document.implementation.createHTMLDocument("template"),b=!0,E=document.createElement("style");E.textContent="template{display:none;}";var w=document.head;w.insertBefore(E,w.firstElementChild),y.prototype=Object.create(HTMLElement.prototype);var S=!document.createElement("div").hasOwnProperty("innerHTML");y.decorate=function(e){if(!e.content&&e.namespaceURI===document.documentElement.namespaceURI){var t;for(e.content=g.createDocumentFragment();t=e.firstChild;)l.call(e.content,t);if(S)e.__proto__=y.prototype;else if(e.cloneNode=function(e){return y._cloneNode(this,e)},b)try{N(e),T(e)}catch(e){b=!1}y.bootstrap(e.content)}};var C={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},N=function(e){Object.defineProperty(e,"innerHTML",{get:function(){return R(this)},set:function(e){var t=C[function(e){return(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(e)||["",""])[1].toLowerCase()}(e)];if(t)for(var n=0;n<t.length;n++)e="<"+t[n]+">"+e+"</"+t[n]+">";for(g.body.innerHTML=e,y.bootstrap(g);this.content.firstChild;)a.call(this.content,this.content.firstChild);var r=g.body;if(t)for(var o=0;o<t.length;o++)r=r.lastChild;for(;r.firstChild;)l.call(this.content,r.firstChild)},configurable:!0})},T=function(e){Object.defineProperty(e,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(e){if(!this.parentNode)throw new Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");g.body.innerHTML=e;for(var t=this.ownerDocument.createDocumentFragment();g.body.firstChild;)l.call(t,g.body.firstChild);s.call(this.parentNode,t,this)},configurable:!0})};N(y.prototype),T(y.prototype),y.bootstrap=function(e){for(var t,n=m(e,"template"),r=0,o=n.length;r<o&&(t=n[r]);r++)y.decorate(t)},document.addEventListener("DOMContentLoaded",(function(){y.bootstrap(document)})),Document.prototype.createElement=function(){var e=o.apply(this,arguments);return"template"===e.localName&&y.decorate(e),e},DOMParser.prototype.parseFromString=function(){var e=c.apply(this,arguments);return y.bootstrap(e),e},Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return R(this)},set:function(e){u.set.call(this,e),y.bootstrap(this)},configurable:!0,enumerable:!0});var M=/[&\u00A0"]/g,_=/[&\u00A0<>]/g,O=function(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}},L=function(e){return e.replace(M,O)},x=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t},A=x(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),D=x(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]),H=function(e,t,n){switch(e.nodeType){case Node.ELEMENT_NODE:for(var r,o=e.localName,i="<"+o,a=e.attributes,l=0;r=a[l];l++)i+=" "+r.name+'="'+L(r.value)+'"';return i+=">",A[o]?i:i+R(e,n)+"</"+o+">";case Node.TEXT_NODE:var s=e.data;return t&&D[t.localName]?s:function(e){return e.replace(_,O)}(s);case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw window.console.error(e),new Error("not implemented")}},R=function(e,t){"template"===e.localName&&(e=e.content);for(var n,r="",o=t?t(e):d.get.call(e),i=0,a=o.length;i<a&&(n=o[i]);i++)r+=H(n,e,t);return r}}if(e||v){y._cloneNode=function(e,t){var n=r.call(e,!1);return this.decorate&&this.decorate(n),t&&(l.call(n.content,r.call(e.content,!0)),P(n.content,e.content)),n};var P=function(e,t){if(t.querySelectorAll){var n=m(t,"template");if(0!==n.length)for(var r,o,i=m(e,"template"),a=0,l=i.length;a<l;a++)o=n[a],r=i[a],y&&y.decorate&&y.decorate(o),s.call(r.parentNode,j.call(o,!0),r)}},j=Node.prototype.cloneNode=function(e){var o;if(!n&&t&&this instanceof DocumentFragment){if(!e)return this.ownerDocument.createDocumentFragment();o=k.call(this.ownerDocument,this,!0)}else o=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?y._cloneNode(this,e):r.call(this,e);return e&&P(o,this),o},k=Document.prototype.importNode=function(e,t){if(t=t||!1,"template"===e.localName)return y._cloneNode(e,t);var n=i.call(this,e,t);return t&&(P(n,e),function(e){for(var t,n,r=m(e,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]'),i=0;i<r.length;i++){n=r[i],(t=o.call(document,"script")).textContent=n.textContent;for(var a,l=n.attributes,c=0;c<l.length;c++)a=l[c],t.setAttribute(a.name,a.value);s.call(n.parentNode,t,n)}}(n)),n}}e&&(window.HTMLTemplateElement=y)}()},89:function(e,t){
31
- /*!
32
- ISC License
33
-
34
- Copyright (c) 2014-2018, Andrea Giammarchi, @WebReflection
35
-
36
- Permission to use, copy, modify, and/or distribute this software for any
37
- purpose with or without fee is hereby granted, provided that the above
38
- copyright notice and this permission notice appear in all copies.
39
-
40
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
41
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
42
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
43
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
44
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
45
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
46
- PERFORMANCE OF THIS SOFTWARE.
47
-
48
- */
49
- !function(e,t){"use strict";var n=e.document,r=e.Object,o=function(e){var t,n,o,i,a=/^[A-Z]+[a-z]/,l=function(e,t){(t=t.toLowerCase())in s||(s[e]=(s[e]||[]).concat(t),s[t]=s[t.toUpperCase()]=e)},s=(r.create||r)(null),c={};for(n in e)for(i in e[n])for(o=e[n][i],s[i]=o,t=0;t<o.length;t++)s[o[t].toLowerCase()]=s[o[t].toUpperCase()]=i;return c.get=function(e){return"string"==typeof e?s[e]||(a.test(e)?[]:""):function(e){var t,n=[];for(t in s)e.test(t)&&n.push(t);return n}(e)},c.set=function(e,t){return a.test(e)?l(e,t):l(t,e),c},c}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof t&&(t={type:t||"auto"});var i,a,l,s,c,u,d,f,p,h="registerElement",m="__"+h+(1e5*e.Math.random()>>0),v="addEventListener",y="attached",g="Callback",b="detached",E="extends",w="attributeChanged"+g,S=y+g,C="connected"+g,N="disconnected"+g,T="created"+g,M=b+g,_="ADDITION",O="REMOVAL",L="DOMAttrModified",x="DOMContentLoaded",A="DOMSubtreeModified",D="<",H="=",R=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,P=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],j=[],k=[],F="",I=n.documentElement,V=j.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},q=r.prototype,U=q.hasOwnProperty,B=q.isPrototypeOf,K=r.defineProperty,G=[],W=r.getOwnPropertyDescriptor,$=r.getOwnPropertyNames,z=r.getPrototypeOf,X=r.setPrototypeOf,Z=!!r.__proto__,Y="__dreCEv1",J=e.customElements,Q=!/^force/.test(t.type)&&!!(J&&J.define&&J.get&&J.whenDefined),ee=r.create||r,te=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[V.call(t,e)]},set:function(r,o){(e=V.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},ne=e.Promise||function(e){var t=[],n=!1,r={catch:function(){return r},then:function(e){return t.push(e),n&&setTimeout(o,1),r}};function o(e){for(n=!0;t.length;)t.shift()(e)}return e(o),r},re=!1,oe=ee(null),ie=ee(null),ae=new te,le=function(e){return e.toLowerCase()},se=r.create||function e(t){return t?(e.prototype=t,new e):this},ce=X||(Z?function(e,t){return e.__proto__=t,e}:$&&W?function(){function e(e,t){for(var n,r=$(t),o=0,i=r.length;o<i;o++)n=r[o],U.call(e,n)||K(e,n,W(t,n))}return function(t,n){do{e(t,n)}while((n=z(n))&&!B.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),ue=e.MutationObserver||e.WebKitMutationObserver,de=e.HTMLAnchorElement,fe=(e.HTMLElement||e.Element||e.Node).prototype,pe=!B.call(fe,I),he=pe?function(e,t,n){return e[t]=n.value,e}:K,me=pe?function(e){return 1===e.nodeType}:function(e){return B.call(fe,e)},ve=pe&&[],ye=fe.attachShadow,ge=fe.cloneNode,be=fe.dispatchEvent,Ee=fe.getAttribute,we=fe.hasAttribute,Se=fe.removeAttribute,Ce=fe.setAttribute,Ne=n.createElement,Te=n.importNode,Me=Ne,_e=ue&&{attributes:!0,characterData:!0,attributeOldValue:!0},Oe=ue||function(e){He=!1,I.removeEventListener(L,Oe)},Le=0,xe=h in n&&!/^force-all/.test(t.type),Ae=!0,De=!1,He=!0,Re=!0,Pe=!0;function je(){var e=i.splice(0,i.length);for(Le=0;e.length;)e.shift().call(null,e.shift())}function ke(e,t){for(var n=0,r=e.length;n<r;n++)ze(e[n],t)}function Fe(e){return function(t){me(t)&&(ze(t,e),F.length&&ke(t.querySelectorAll(F),e))}}function Ie(e){var t=Ee.call(e,"is"),n=e.nodeName.toUpperCase(),r=V.call(j,t?H+t.toUpperCase():D+n);return t&&-1<r&&!Ve(n,t)?-1:r}function Ve(e,t){return-1<F.indexOf(e+'[is="'+t+'"]')}function qe(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,i=e[_]||2,a=e[O]||3;!Pe||o&&o!==t||!t[w]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==i&&n!==a)||t[w](r,n===i?null:e.prevValue,n===a?null:e.newValue)}function Ue(e){var t=Fe(e);return function(e){i.push(t,e.target),Le&&clearTimeout(Le),Le=setTimeout(je,1)}}function Be(e){Re&&(Re=!1,e.currentTarget.removeEventListener(x,Be)),F.length&&ke((e.target||n).querySelectorAll(F),e.detail===b?b:y),pe&&function(){for(var e,t=0,n=ve.length;t<n;t++)e=ve[t],I.contains(e)||(n--,ve.splice(t--,1),ze(e,b))}()}function Ke(e,t){Ce.call(this,e,t),a.call(this,{target:this})}function Ge(e,t,n){var r=t.apply(e,n),o=Ie(r);return-1<o&&f(r,k[o]),n.pop()&&F.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)t=e[n],f(t,k[Ie(t)])}(r.querySelectorAll(F)),r}function We(e,t){ce(e,t),c?c.observe(e,_e):(He&&(e.setAttribute=Ke,e[m]=s(e),e[v](A,a)),e[v](L,qe)),e[T]&&Pe&&(e.created=!0,e[T](),e.created=!1)}function $e(e){throw new Error("A "+e+" type is already registered")}function ze(e,t){var n,r,o=Ie(e);-1<o&&(d(e,k[o]),o=0,t!==y||e[y]?t!==b||e[b]||(e[y]=!1,e[b]=!0,r="disconnected",o=1):(e[b]=!1,e[y]=!0,r="connected",o=1,pe&&V.call(ve,e)<0&&ve.push(e)),o&&(n=e[t+g]||e[r+g])&&n.call(e))}function Xe(){}function Ze(e,t,r){var o=r&&r[E]||"",i=t.prototype,a=se(i),l=t.observedAttributes||G,s={prototype:a};he(a,T,{value:function(){if(re)re=!1;else if(!this[Y]){this[Y]=!0,new t(this),i[T]&&i[T].call(this);var e=oe[ae.get(t)];(!Q||e.create.length>1)&&Qe(this)}}}),he(a,w,{value:function(e){-1<V.call(l,e)&&i[w]&&i[w].apply(this,arguments)}}),i[C]&&he(a,S,{value:i[C]}),i[N]&&he(a,M,{value:i[N]}),o&&(s[E]=o),e=e.toUpperCase(),oe[e]={constructor:t,create:o?[o,le(e)]:[e]},ae.set(t,e),n[h](e.toLowerCase(),s),et(e),ie[e].r()}function Ye(e){var t=oe[e.toUpperCase()];return t&&t.constructor}function Je(e){return"string"==typeof e?e:e&&e.is||""}function Qe(e){for(var t,n=e[w],r=n?e.attributes:G,o=r.length;o--;)t=r[o],n.call(e,t.name||t.nodeName,null,t.value||t.nodeValue)}function et(e){return(e=e.toUpperCase())in ie||(ie[e]={},ie[e].p=new ne((function(t){ie[e].r=t}))),ie[e].p}function tt(){J&&delete e.customElements,K(e,"customElements",{configurable:!0,value:new Xe}),K(e,"CustomElementRegistry",{configurable:!0,value:Xe});for(var t=function(t){var r=e[t];if(r){e[t]=function(e){var t,o;return e||(e=this),e[Y]||(re=!0,t=oe[ae.get(e.constructor)],(e=(o=Q&&1===t.create.length)?Reflect.construct(r,G,t.constructor):n.createElement.apply(n,t.create))[Y]=!0,re=!1,o||Qe(e)),e},e[t].prototype=r.prototype;try{r.prototype.constructor=e[t]}catch(n){!0,K(r,Y,{value:e[t]})}}},r=o.get(/^HTML[A-Z]*[a-z]/),i=r.length;i--;t(r[i]));n.createElement=function(e,t){var n=Je(t);return n?Me.call(this,e,le(n)):Me.call(this,e)},xe||(De=!0,n[h](""))}if(ue&&((p=n.createElement("div")).innerHTML="<div><div></div></div>",new ue((function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(p=W(fe,"innerHTML"))&&p.set;n&&K(fe,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),p=null})).observe(p,{childList:!0,subtree:!0}),p.innerHTML=""),xe||(X||Z?(d=function(e,t){B.call(t,e)||We(e,t)},f=We):f=d=function(e,t){e[m]||(e[m]=r(!0),We(e,t))},pe?(He=!1,function(){var e=W(fe,v),t=e.value,n=function(e){var t=new CustomEvent(L,{bubbles:!0});t.attrName=e,t.prevValue=Ee.call(this,e),t.newValue=null,t[O]=t.attrChange=2,Se.call(this,e),be.call(this,t)},r=function(e,t){var n=we.call(this,e),r=n&&Ee.call(this,e),o=new CustomEvent(L,{bubbles:!0});Ce.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o.MODIFICATION=o.attrChange=1:o[_]=o.attrChange=0,be.call(this,o)},o=function(e){var t,n=e.currentTarget,r=n[m],o=e.propertyName;r.hasOwnProperty(o)&&(r=r[o],(t=new CustomEvent(L,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t[_]=t.attrChange=0:t.MODIFICATION=t.attrChange=1,be.call(n,t))};e.value=function(e,i,a){e===L&&this[w]&&this.setAttribute!==r&&(this[m]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,e,i,a)},K(fe,v,e)}()):ue||(I[v](L,Oe),I.setAttribute(m,1),I.removeAttribute(m),He&&(a=function(e){var t,n,r;if(this===e.target){for(r in t=this[m],this[m]=n=s(this),n){if(!(r in t))return l(0,this,r,t[r],n[r],_);if(n[r]!==t[r])return l(1,this,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return l(2,this,r,t[r],n[r],O)}},l=function(e,t,n,r,o,i){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};a[i]=e,qe(a)},s=function(e){for(var t,n,r={},o=e.attributes,i=0,a=o.length;i<a;i++)"setAttribute"!==(n=(t=o[i]).name)&&(r[n]=t.value);return r})),n[h]=function(e,t){if(r=e.toUpperCase(),Ae&&(Ae=!1,ue?(c=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new ue((function(r){for(var o,i,a,l=0,s=r.length;l<s;l++)"childList"===(o=r[l]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(i=o.target,Pe&&i[w]&&"style"!==o.attributeName&&(a=Ee.call(i,o.attributeName))!==o.oldValue&&i[w](o.attributeName,o.oldValue,a))}))}(Fe(y),Fe(b)),(u=function(e){return c.observe(e,{childList:!0,subtree:!0}),e})(n),ye&&(fe.attachShadow=function(){return u(ye.apply(this,arguments))})):(i=[],n[v]("DOMNodeInserted",Ue(y)),n[v]("DOMNodeRemoved",Ue(b))),n[v](x,Be),n[v]("readystatechange",Be),n.importNode=function(e,t){switch(e.nodeType){case 1:return Ge(n,Te,[e,!!t]);case 11:for(var r=n.createDocumentFragment(),o=e.childNodes,i=o.length,a=0;a<i;a++)r.appendChild(n.importNode(o[a],!!t));return r;default:return ge.call(e,!!t)}},fe.cloneNode=function(e){return Ge(this,ge,[!!e])}),De)return De=!1;if(-2<V.call(j,H+r)+V.call(j,D+r)&&$e(e),!R.test(r)||-1<V.call(P,r))throw new Error("The type "+e+" is invalid");var r,o,a=function(){return s?n.createElement(d,r):n.createElement(d)},l=t||q,s=U.call(l,E),d=s?t[E].toUpperCase():r;return s&&-1<V.call(j,D+d)&&$e(d),o=j.push((s?H:D)+r)-1,F=F.concat(F.length?",":"",s?d+'[is="'+e.toLowerCase()+'"]':d),a.prototype=k[o]=U.call(l,"prototype")?l.prototype:se(fe),F.length&&ke(n.querySelectorAll(F),y),a},n.createElement=Me=function(e,t){var r=Je(t),o=r?Ne.call(n,e,le(r)):Ne.call(n,e),i=""+e,a=V.call(j,(r?H:D)+(r||i).toUpperCase()),l=-1<a;return r&&(o.setAttribute("is",r=r.toLowerCase()),l&&(l=Ve(i.toUpperCase(),r))),Pe=!n.createElement.innerHTMLHelper,l&&f(o,k[a]),o}),Xe.prototype={constructor:Xe,define:Q?function(e,t,n){if(n)Ze(e,t,n);else{var r=e.toUpperCase();oe[r]={constructor:t,create:[r]},ae.set(t,r),J.define(e,t)}}:Ze,get:Q?function(e){return J.get(e)||Ye(e)}:Ye,whenDefined:Q?function(e){return ne.race([J.whenDefined(e),et(e)])}:et},!J||/^force/.test(t.type))tt();else if(!t.noBuiltIn)try{!function(t,r,o){var i=new RegExp("^<a\\s+is=('|\")"+o+"\\1></a>$");if(r[E]="a",(t.prototype=se(de.prototype)).constructor=t,e.customElements.define(o,t,r),!i.test(n.createElement("a",{is:o}).outerHTML)||!i.test((new t).outerHTML))throw r}((function e(){return Reflect.construct(de,[],e)}),{},"document-register-element-a")}catch(e){tt()}if(!t.noBuiltIn)try{if(Ne.call(n,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(e){le=function(e){return{is:e.toLowerCase()}}}}(window)},90:function(e,t,n){(function(e){(function(){"use strict";var t="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},n="undefined"!=typeof window&&window===this?this:void 0!==e&&null!=e?e:this;function r(){r=function(){},n.Symbol||(n.Symbol=i)}var o,i=(o=0,function(e){return"jscomp_symbol_"+(e||"")+o++});function a(){r();var e=n.Symbol.iterator;e||(e=n.Symbol.iterator=n.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&t(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return l(this)}}),a=function(){}}function l(e){var t=0;return function(e){return a(),(e={next:e})[n.Symbol.iterator]=function(){return this},e}((function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}))}function s(e){a(),r(),a();var t=e[Symbol.iterator];return t?t.call(e):l(e)}function c(e,t){return{index:e,l:[],v:t}}function u(e,t,n,r){var o=0,i=0,a=0,l=0,s=Math.min(t-o,r-i);if(0==o&&0==i)e:{for(a=0;a<s;a++)if(e[a]!==n[a])break e;a=s}if(t==e.length&&r==n.length){l=e.length;for(var u=n.length,f=0;f<s-a&&d(e[--l],n[--u]);)f++;l=f}if(i+=a,r-=l,0==(t-=l)-(o+=a)&&0==r-i)return[];if(o==t){for(t=c(o,0);i<r;)t.l.push(n[i++]);return[t]}if(i==r)return[c(o,t-o)];for(r=r-(a=i)+1,l=t-(s=o)+1,t=Array(r),u=0;u<r;u++)t[u]=Array(l),t[u][0]=u;for(u=0;u<l;u++)t[0][u]=u;for(u=1;u<r;u++)for(f=1;f<l;f++)if(e[s+f-1]===n[a+u-1])t[u][f]=t[u-1][f-1];else{var p=t[u-1][f]+1,h=t[u][f-1]+1;t[u][f]=p<h?p:h}for(s=t.length-1,a=t[0].length-1,r=t[s][a],e=[];0<s||0<a;)0==s?(e.push(2),a--):0==a?(e.push(3),s--):(l=t[s-1][a-1],(p=(u=t[s-1][a])<(f=t[s][a-1])?u<l?u:l:f<l?f:l)==l?(l==r?e.push(0):(e.push(1),r=l),s--,a--):p==u?(e.push(3),s--,r=u):(e.push(2),a--,r=f));for(e.reverse(),t=void 0,s=[],a=0;a<e.length;a++)switch(e[a]){case 0:t&&(s.push(t),t=void 0),o++,i++;break;case 1:t||(t=c(o,0)),t.v++,o++,t.l.push(n[i]),i++;break;case 2:t||(t=c(o,0)),t.v++,o++;break;case 3:t||(t=c(o,0)),t.l.push(n[i]),i++}return t&&s.push(t),s}function d(e,t){return e===t}function f(){this.N=this.root=null,this.A=!1,this.h=this.s=this.G=this.assignedSlot=this.assignedNodes=this.i=null,this.childNodes=this.nextSibling=this.previousSibling=this.lastChild=this.firstChild=this.parentNode=this.j=void 0,this.R=this.J=!1,this.o={}}function p(e){return e.D||(e.D=new f),e.D}function h(e){return e&&e.D}f.prototype.toJSON=function(){return{}};var m=window.ShadyDOM||{};m.$=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var v=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");m.g=!!(v&&v.configurable&&v.get),m.H=m.force||!m.$;var y=navigator.userAgent.match("Trident"),g=navigator.userAgent.match("Edge");function b(e){return(e=h(e))&&void 0!==e.firstChild}function E(e){return"ShadyRoot"===e.W}function w(e){if(E(e=e.getRootNode()))return e}void 0===m.O&&(m.O=m.g&&(y||g));var S=Element.prototype,C=S.matches||S.matchesSelector||S.mozMatchesSelector||S.msMatchesSelector||S.oMatchesSelector||S.webkitMatchesSelector;function N(e,t){if(e&&t)for(var n,r=Object.getOwnPropertyNames(t),o=0;o<r.length&&(n=r[o]);o++){var i=n,a=e,l=Object.getOwnPropertyDescriptor(t,i);l&&Object.defineProperty(a,i,l)}}function T(e,t){for(var n=[],r=1;r<arguments.length;++r)n[r-1]=arguments[r];for(r=0;r<n.length;r++)N(e,n[r]);return e}var M=document.createTextNode(""),_=0,O=[];function L(e){O.push(e),M.textContent=_++}new MutationObserver((function(){for(;O.length;)try{O.shift()()}catch(e){throw M.textContent=_++,e}})).observe(M,{characterData:!0});var x=!!document.contains;function A(e,t){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function D(e){for(var t=e.length-1;0<=t;t--){var n=e[t],r=n.getAttribute("id")||n.getAttribute("name");r&&"length"!==r&&isNaN(r)&&(e[r]=n)}return e.item=function(t){return e[t]},e.namedItem=function(t){if("length"!==t&&isNaN(t)&&e[t])return e[t];for(var n=s(e),r=n.next();!r.done;r=n.next())if(((r=r.value).getAttribute("id")||r.getAttribute("name"))==t)return r;return null},e}var H,R=[];function P(e){H||(H=!0,L(j)),R.push(e)}function j(){H=!1;for(var e=!!R.length;R.length;)R.shift()();return e}j.list=R;var k=/[&\u00A0"]/g,F=/[&\u00A0<>]/g;function I(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function V(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var q=V("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),U=V("style script xmp iframe noembed noframes plaintext noscript".split(" "));function B(e,t){"template"===e.localName&&(e=e.content);for(var n,r="",o=t?t(e):e.childNodes,i=0,a=o.length;i<a&&(n=o[i]);i++){e:{var l=n,s=e,c=t;switch(l.nodeType){case Node.ELEMENT_NODE:for(var u=l.localName,d="<"+u,f=l.attributes,p=0;s=f[p];p++)d+=" "+s.name+'="'+s.value.replace(k,I)+'"';d+=">",l=q[u]?d:d+B(l,c)+"</"+u+">";break e;case Node.TEXT_NODE:l=l.data,l=s&&U[s.localName]?l:l.replace(F,I);break e;case Node.COMMENT_NODE:l="\x3c!--"+l.data+"--\x3e";break e;default:throw window.console.error(l),Error("not implemented")}}r+=l}return r}var K=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),G=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function W(e){var t=[];for(K.currentNode=e,e=K.firstChild();e;)t.push(e),e=K.nextSibling();return t}var $={parentNode:function(e){return K.currentNode=e,K.parentNode()},firstChild:function(e){return K.currentNode=e,K.firstChild()},lastChild:function(e){return K.currentNode=e,K.lastChild()},previousSibling:function(e){return K.currentNode=e,K.previousSibling()},nextSibling:function(e){return K.currentNode=e,K.nextSibling()}};$.childNodes=W,$.parentElement=function(e){return G.currentNode=e,G.parentNode()},$.firstElementChild=function(e){return G.currentNode=e,G.firstChild()},$.lastElementChild=function(e){return G.currentNode=e,G.lastChild()},$.previousElementSibling=function(e){return G.currentNode=e,G.previousSibling()},$.nextElementSibling=function(e){return G.currentNode=e,G.nextSibling()},$.children=function(e){var t=[];for(G.currentNode=e,e=G.firstChild();e;)t.push(e),e=G.nextSibling();return D(t)},$.innerHTML=function(e){return B(e,(function(e){return W(e)}))},$.textContent=function(e){switch(e.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:e=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1);for(var t,n="";t=e.nextNode();)n+=t.nodeValue;return n;default:return e.nodeValue}};var z=m.g,X=[Node.prototype,Element.prototype,HTMLElement.prototype];function Z(e){var t;e:{for(t=0;t<X.length;t++){var n=X[t];if(n.hasOwnProperty(e)){t=n;break e}}t=void 0}if(!t)throw Error("Could not find descriptor for "+e);return Object.getOwnPropertyDescriptor(t,e)}var Y=z?{parentNode:Z("parentNode"),firstChild:Z("firstChild"),lastChild:Z("lastChild"),previousSibling:Z("previousSibling"),nextSibling:Z("nextSibling"),childNodes:Z("childNodes"),parentElement:Z("parentElement"),previousElementSibling:Z("previousElementSibling"),nextElementSibling:Z("nextElementSibling"),innerHTML:Z("innerHTML"),textContent:Z("textContent"),firstElementChild:Z("firstElementChild"),lastElementChild:Z("lastElementChild"),children:Z("children")}:{},J=z?{firstElementChild:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"firstElementChild"),lastElementChild:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"lastElementChild"),children:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"children")}:{},Q=z?{firstElementChild:Object.getOwnPropertyDescriptor(Document.prototype,"firstElementChild"),lastElementChild:Object.getOwnPropertyDescriptor(Document.prototype,"lastElementChild"),children:Object.getOwnPropertyDescriptor(Document.prototype,"children")}:{},ee={M:Y,ja:J,ea:Q,parentNode:function(e){return Y.parentNode.get.call(e)},firstChild:function(e){return Y.firstChild.get.call(e)},lastChild:function(e){return Y.lastChild.get.call(e)},previousSibling:function(e){return Y.previousSibling.get.call(e)},nextSibling:function(e){return Y.nextSibling.get.call(e)},childNodes:function(e){return Array.prototype.slice.call(Y.childNodes.get.call(e))},parentElement:function(e){return Y.parentElement.get.call(e)},previousElementSibling:function(e){return Y.previousElementSibling.get.call(e)},nextElementSibling:function(e){return Y.nextElementSibling.get.call(e)},innerHTML:function(e){return Y.innerHTML.get.call(e)},textContent:function(e){return Y.textContent.get.call(e)},children:function(e){switch(e.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return J.children.get.call(e);case Node.DOCUMENT_NODE:return Q.children.get.call(e);default:return Y.children.get.call(e)}},firstElementChild:function(e){switch(e.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return J.firstElementChild.get.call(e);case Node.DOCUMENT_NODE:return Q.firstElementChild.get.call(e);default:return Y.firstElementChild.get.call(e)}},lastElementChild:function(e){switch(e.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return J.lastElementChild.get.call(e);case Node.DOCUMENT_NODE:return Q.lastElementChild.get.call(e);default:return Y.lastElementChild.get.call(e)}}},te=m.O?ee:$,ne=Element.prototype.insertBefore,re=Element.prototype.replaceChild,oe=Element.prototype.removeChild,ie=Element.prototype.setAttribute,ae=Element.prototype.removeAttribute,le=Element.prototype.cloneNode,se=Document.prototype.importNode,ce=Element.prototype.addEventListener,ue=Element.prototype.removeEventListener,de=Window.prototype.addEventListener,fe=Window.prototype.removeEventListener,pe=Element.prototype.dispatchEvent,he=Node.prototype.contains||HTMLElement.prototype.contains,me=Document.prototype.getElementById,ve=Element.prototype.querySelector,ye=DocumentFragment.prototype.querySelector,ge=Document.prototype.querySelector,be=Element.prototype.querySelectorAll,Ee=DocumentFragment.prototype.querySelectorAll,we=Document.prototype.querySelectorAll,Se={};function Ce(e){for(;e.firstChild;)e.removeChild(e.firstChild)}Se.appendChild=Element.prototype.appendChild,Se.insertBefore=ne,Se.replaceChild=re,Se.removeChild=oe,Se.setAttribute=ie,Se.removeAttribute=ae,Se.cloneNode=le,Se.importNode=se,Se.addEventListener=ce,Se.removeEventListener=ue,Se.aa=de,Se.ba=fe,Se.dispatchEvent=pe,Se.contains=he,Se.getElementById=me,Se.ha=ve,Se.ka=ye,Se.fa=ge,Se.querySelector=function(e){switch(this.nodeType){case Node.ELEMENT_NODE:return ve.call(this,e);case Node.DOCUMENT_NODE:return ge.call(this,e);default:return ye.call(this,e)}},Se.ia=be,Se.la=Ee,Se.ga=we,Se.querySelectorAll=function(e){switch(this.nodeType){case Node.ELEMENT_NODE:return be.call(this,e);case Node.DOCUMENT_NODE:return we.call(this,e);default:return Ee.call(this,e)}};var Ne=m.g,Te=document.implementation.createHTMLDocument("inert"),Me=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),_e=Me&&Me.get,Oe=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),Le={parentElement:{get:function(){var e=h(this);return(e=e&&e.parentNode)&&e.nodeType!==Node.ELEMENT_NODE&&(e=null),void 0!==e?e:te.parentElement(this)},configurable:!0},parentNode:{get:function(){var e=h(this);return void 0!==(e=e&&e.parentNode)?e:te.parentNode(this)},configurable:!0},nextSibling:{get:function(){var e=h(this);return void 0!==(e=e&&e.nextSibling)?e:te.nextSibling(this)},configurable:!0},previousSibling:{get:function(){var e=h(this);return void 0!==(e=e&&e.previousSibling)?e:te.previousSibling(this)},configurable:!0},nextElementSibling:{get:function(){var e=h(this);if(e&&void 0!==e.nextSibling){for(e=this.nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e}return te.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){var e=h(this);if(e&&void 0!==e.previousSibling){for(e=this.previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}return te.previousElementSibling(this)},configurable:!0}},xe={className:{get:function(){return this.getAttribute("class")||""},set:function(e){this.setAttribute("class",e)},configurable:!0}},Ae={childNodes:{get:function(){if(b(this)){var e=h(this);if(!e.childNodes){e.childNodes=[];for(var t=this.firstChild;t;t=t.nextSibling)e.childNodes.push(t)}var n=e.childNodes}else n=te.childNodes(this);return n.item=function(e){return n[e]},n},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var e=h(this);return void 0!==(e=e&&e.firstChild)?e:te.firstChild(this)},configurable:!0},lastChild:{get:function(){var e=h(this);return void 0!==(e=e&&e.lastChild)?e:te.lastChild(this)},configurable:!0},textContent:{get:function(){if(b(this)){for(var e,t=[],n=0,r=this.childNodes;e=r[n];n++)e.nodeType!==Node.COMMENT_NODE&&t.push(e.textContent);return t.join("")}return te.textContent(this)},set:function(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!b(this)&&Ne){var t=this.firstChild;(t!=this.lastChild||t&&t.nodeType!=Node.TEXT_NODE)&&Ce(this),ee.M.textContent.set.call(this,e)}else Ce(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(e));break;default:this.nodeValue=e}},configurable:!0},firstElementChild:{get:function(){var e=h(this);if(e&&void 0!==e.firstChild){for(e=this.firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e}return te.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){var e=h(this);if(e&&void 0!==e.lastChild){for(e=this.lastChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}return te.lastElementChild(this)},configurable:!0},children:{get:function(){return b(this)?D(Array.prototype.filter.call(this.childNodes,(function(e){return e.nodeType===Node.ELEMENT_NODE}))):te.children(this)},configurable:!0},innerHTML:{get:function(){return b(this)?B("template"===this.localName?this.content:this):te.innerHTML(this)},set:function(e){var t="template"===this.localName?this.content:this;Ce(t);var n=this.localName||"div";for(n=this.namespaceURI&&this.namespaceURI!==Te.namespaceURI?Te.createElementNS(this.namespaceURI,n):Te.createElement(n),Ne?ee.M.innerHTML.set.call(n,e):n.innerHTML=e,e="template"===this.localName?n.content:n;e.firstChild;)t.appendChild(e.firstChild)},configurable:!0}},De={shadowRoot:{get:function(){var e=h(this);return e&&e.N||null},configurable:!0}},He={activeElement:{get:function(){var e=Oe&&Oe.get?Oe.get.call(document):m.g?void 0:document.activeElement;if(e&&e.nodeType){var t=!!E(this);if(this===document||t&&this.host!==e&&Se.contains.call(this.host,e)){for(t=w(e);t&&t!==this;)t=w(e=t.host);e=this===document?t?null:e:t===this?e:null}else e=null}else e=null;return e},set:function(){},configurable:!0}};function Re(e,t,n){for(var r in t){var o=Object.getOwnPropertyDescriptor(e,r);o&&o.configurable||!o&&n?Object.defineProperty(e,r,t[r]):n&&console.warn("Could not define",r,"on",e)}}function Pe(e){Re(e,Le),Re(e,xe),Re(e,Ae),Re(e,He)}var je=m.g?function(){}:function(e){var t=p(e);t.J||(t.J=!0,Re(e,Le,!0),Re(e,xe,!0))},ke=m.g?function(){}:function(e){p(e).R||(Re(e,Ae,!0),Re(e,De,!0))},Fe=te.childNodes;function Ie(e,t,n){je(e),n=n||null;var r=p(e),o=p(t),i=n?p(n):null;r.previousSibling=n?i.previousSibling:t.lastChild,(i=h(r.previousSibling))&&(i.nextSibling=e),(i=h(r.nextSibling=n))&&(i.previousSibling=e),r.parentNode=t,n?n===o.firstChild&&(o.firstChild=e):(o.lastChild=e,o.firstChild||(o.firstChild=e)),o.childNodes=null}function Ve(e){var t=p(e);if(void 0===t.firstChild){t.childNodes=null;var n=Fe(e);for(t.firstChild=n[0]||null,t.lastChild=n[n.length-1]||null,ke(e),t=0;t<n.length;t++){var r=n[t],o=p(r);o.parentNode=e,o.nextSibling=n[t+1]||null,o.previousSibling=n[t-1]||null,je(r)}}}var qe,Ue=te.parentNode,Be=te.childNodes,Ke={},Ge=m.deferConnectionCallbacks&&"loading"===document.readyState;function We(e){var t=[];do{t.unshift(e)}while(e=e.parentNode);return t}function $e(e,t,n){if(e!==Ke)throw new TypeError("Illegal constructor");this.W="ShadyRoot",this.host=t,this.Z=n&&n.mode,Ve(t),(e=p(t)).root=this,e.N="closed"!==this.Z?this:null,(e=p(this)).firstChild=e.lastChild=e.parentNode=e.nextSibling=e.previousSibling=null,e.childNodes=[],this.L=this.u=!1,this.c=this.b=this.a=null,ze(this)}function ze(e){e.u||(e.u=!0,P((function(){return Xe(e)})))}function Xe(e){for(var t;e;){e.u&&(t=e);e:{var n=e;if(E(e=n.host.getRootNode()))for(var r=n.host.childNodes,o=0;o<r.length;o++)if("slot"==(n=r[o]).localName)break e;e=void 0}}t&&t._renderRoot()}function Ze(e,t,n){var r=p(t),o=r.s;r.s=null,n||(n=(e=e.b[t.slot||"__catchall"])&&e[0]),n?(p(n).assignedNodes.push(t),r.assignedSlot=n):r.assignedSlot=void 0,o!==r.assignedSlot&&r.assignedSlot&&(p(r.assignedSlot).A=!0)}function Ye(e,t,n){for(var r,o=0;o<n.length&&(r=n[o]);o++)if("slot"==r.localName){var i=h(r).assignedNodes;i&&i.length&&Ye(e,t,i)}else t.push(n[o])}function Je(e,t){Se.dispatchEvent.call(t,new Event("slotchange")),(t=h(t)).assignedSlot&&Je(e,t.assignedSlot)}function Qe(e){if(e.c&&e.c.length){for(var t,n=e.c,r=0;r<n.length;r++){var o=n[r];Ve(o),Ve(o.parentNode);var i=et(o);e.b[i]?((t=t||{})[i]=!0,e.b[i].push(o)):e.b[i]=[o],e.a.push(o)}if(t)for(var a in t)e.b[a]=tt(e.b[a]);e.c=[]}}function et(e){var t=e.name||e.getAttribute("name")||"__catchall";return e.U=t}function tt(e){return e.sort((function(e,t){e=We(e);for(var n=We(t),r=0;r<e.length;r++){t=e[r];var o=n[r];if(t!==o)return(e=Array.from(t.parentNode.childNodes)).indexOf(t)-e.indexOf(o)}}))}function nt(e){return Qe(e),!(!e.a||!e.a.length)}if($e.prototype._renderRoot=function(){var e=Ge;if(Ge=!0,this.u=!1,this.a){Qe(this);for(var t,n=0;n<this.a.length;n++){var r=h(t=this.a[n]),o=r.assignedNodes;if(r.assignedNodes=[],r.h=[],r.G=o)for(r=0;r<o.length;r++){var i=h(o[r]);i.s=i.assignedSlot,i.assignedSlot===t&&(i.assignedSlot=null)}}for(t=this.host.firstChild;t;t=t.nextSibling)Ze(this,t);for(n=0;n<this.a.length;n++){if(!(o=h(t=this.a[n])).assignedNodes.length)for(r=t.firstChild;r;r=r.nextSibling)Ze(this,r,t);if((r=(r=h(t.parentNode))&&r.root)&&nt(r)&&r._renderRoot(),Ye(this,o.h,o.assignedNodes),r=o.G){for(i=0;i<r.length;i++)h(r[i]).s=null;o.G=null,r.length>o.assignedNodes.length&&(o.A=!0)}o.A&&(o.A=!1,Je(this,t))}for(n=this.a,t=[],o=0;o<n.length;o++)(i=h(r=n[o].parentNode))&&i.root||!(0>t.indexOf(r))||t.push(r);for(n=0;n<t.length;n++){r=(o=t[n])===this?this.host:o,i=[],o=o.childNodes;for(var a=0;a<o.length;a++){var l=o[a];if("slot"==l.localName){l=h(l).h;for(var s=0;s<l.length;s++)i.push(l[s])}else i.push(l)}o=void 0,a=Be(r),l=u(i,i.length,a,a.length);for(var c=s=0;s<l.length&&(o=l[s]);s++){for(var d,f=0;f<o.l.length&&(d=o.l[f]);f++)Ue(d)===r&&Se.removeChild.call(r,d),a.splice(o.index+c,1);c-=o.v}for(c=0;c<l.length&&(o=l[c]);c++)for(s=a[o.index],f=o.index;f<o.index+o.v;f++)d=i[f],Se.insertBefore.call(r,d,s),a.splice(f,0,d)}}if(!this.L)for(t=0,n=(d=this.host.childNodes).length;t<n;t++)r=h(o=d[t]),Ue(o)!==this.host||"slot"!==o.localName&&r.assignedSlot||Se.removeChild.call(this.host,o);this.L=!0,Ge=e,qe&&qe()},window.customElements&&m.H){var rt=new Map;qe=function(){var e=Array.from(rt);rt.clear();for(var t=(e=s(e)).next();!t.done;t=e.next()){var n=(t=s(t.value)).next().value;t.next().value?n.S():n.T()}},Ge&&document.addEventListener("readystatechange",(function(){Ge=!1,qe()}),{once:!0});var ot=window.customElements.define;Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:function(e,t){var n=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;ot.call(window.customElements,e,function(e,t,n){var r=0,o="__isConnected"+r++;return(t||n)&&(e.prototype.connectedCallback=e.prototype.S=function(){Ge?rt.set(this,!0):this[o]||(this[o]=!0,t&&t.call(this))},e.prototype.disconnectedCallback=e.prototype.T=function(){Ge?this.isConnected||rt.set(this,!1):this[o]&&(this[o]=!1,n&&n.call(this))}),e}(t,n,r)),t.prototype.connectedCallback=n,t.prototype.disconnectedCallback=r}})}var it=te.parentNode;function at(e,t,n){if(t===e)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var r=h(n);if(void 0!==(r=r&&r.parentNode)&&r!==e||void 0===r&&it(n)!==e)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===t)return t;var o=[],i=mt,a=w(e),l=a?a.host.localName:"";if(t.parentNode){var c=yt(t);lt(t.parentNode,t,!(!a&&t.getRootNode()instanceof ShadowRoot)),i=function(e,t){pt()&&(vt(e,c),mt(e,t))}}r=!0;var u=!function e(t,n){var r=pt();if(!r)return!0;if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){r=!0;for(var o=0;r&&o<t.childNodes.length;o++)r=r&&e(t.childNodes[o],n);return r}return t.nodeType!==Node.ELEMENT_NODE||r.currentScopeForNode(t)===n}(t,l);return!a||t.__noInsertionPoint&&!u||gt(t,(function(e){"slot"===e.localName&&o.push(e),u&&i(e,l)})),o.length&&function(e,t){e.c=e.c||[],e.a=e.a||[],e.b=e.b||{},e.c.push.apply(e.c,t instanceof Array?t:function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(s(t)))}(a,o),("slot"===e.localName||o.length)&&a&&ze(a),b(e)&&(function(e,t,n){ke(t);var r=p(t);if(void 0!==r.firstChild&&(r.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){r=e.childNodes;for(var o=0;o<r.length;o++)Ie(r[o],t,n);t=void 0!==(e=p(e)).firstChild?null:void 0,e.firstChild=e.lastChild=t,e.childNodes=t}else Ie(e,t,n)}(t,e,n),a=h(e),st(e)?(ze(a.root),r=!1):a.root&&(r=!1)),r?(r=E(e)?e.host:e,n?(n=function e(t){var n=t;return t&&"slot"===t.localName&&(n=(n=(n=h(t))&&n.h)&&n.length?n[0]:e(t.nextSibling)),n}(n),Se.insertBefore.call(r,t,n)):Se.appendChild.call(r,t)):t.ownerDocument!==e.ownerDocument&&e.ownerDocument.adoptNode(t),ut(e,t),t}function lt(e,t,n){if(n=void 0!==n&&n,t.parentNode!==e)throw Error("The node to be removed is not a child of this node: "+t);var r=w(t),o=h(e);if(b(e)&&(function(e,t){var n=p(e);e===(t=p(t)).firstChild&&(t.firstChild=n.nextSibling),e===t.lastChild&&(t.lastChild=n.previousSibling),e=n.previousSibling;var r=n.nextSibling;e&&(p(e).nextSibling=r),r&&(p(r).previousSibling=e),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==t.childNodes&&(t.childNodes=null)}(t,e),st(e))){ze(o.root);var i=!0}if(pt()&&!n&&r){var a=yt(t);gt(t,(function(e){vt(e,a)}))}if(function e(t){var n=h(t);if(n&&void 0!==n.j){n=t.childNodes;for(var r,o=0,i=n.length;o<i&&(r=n[o]);o++)e(r)}(t=h(t))&&(t.j=void 0)}(t),r){var l=e&&"slot"===e.localName;l&&(i=!0),((n=function(e,t){if(e.a){Qe(e);var n,r=e.b;for(n in r)for(var o=r[n],i=0;i<o.length;i++){var a=o[i];if(A(t,a)){o.splice(i,1);var l=e.a.indexOf(a);if(0<=l&&e.a.splice(l,1),i--,l=(a=h(a)).h)for(var s=0;s<l.length;s++){var c=l[s],u=Ue(c);u&&Se.removeChild.call(u,c)}a.h=[],a.assignedNodes=[],l=!0}}return l}}(r,t))||l)&&ze(r)}return i||(i=E(e)?e.host:e,(!o.root&&"slot"!==t.localName||i===it(t))&&Se.removeChild.call(i,t)),ut(e,null,t),t}function st(e){return(e=(e=h(e))&&e.root)&&nt(e)}function ct(e,t){if("slot"===t)st(e=e.parentNode)&&ze(h(e).root);else if("slot"===e.localName&&"name"===t&&(t=w(e))){if(t.a){Qe(t);var n=e.U,r=et(e);if(r!==n){var o=(n=t.b[n]).indexOf(e);0<=o&&n.splice(o,1),(n=t.b[r]||(t.b[r]=[])).push(e),1<n.length&&(t.b[r]=tt(n))}}ze(t)}}function ut(e,t,n){(e=(e=h(e))&&e.i)&&(t&&e.addedNodes.push(t),n&&e.removedNodes.push(n),function(e){e.c||(e.c=!0,L((function(){e.flush()})))}(e))}function dt(e,t,n){var r=[];return function e(t,n,r,o){for(var i,a=0,l=t.length;a<l&&(i=t[a]);a++){var s;if(s=i.nodeType===Node.ELEMENT_NODE){var c=n,u=r,d=o,f=c(s=i);f&&d.push(s),u&&u(f)?s=f:(e(s.childNodes,c,u,d),s=void 0)}if(s)break}}(e.childNodes,t,n,r),r}var ft=null;function pt(){return ft||(ft=window.ShadyCSS&&window.ShadyCSS.ScopingShim),ft||null}function ht(e,t,n){var r=pt();r&&"class"===t?r.setElementClass(e,n):(Se.setAttribute.call(e,t,n),ct(e,t))}function mt(e,t){var n=pt();n&&n.scopeNode(e,t)}function vt(e,t){var n=pt();n&&n.unscopeNode(e,t)}function yt(e){if(e.nodeType!==Node.ELEMENT_NODE)return"";var t=pt();return t?t.currentScopeForNode(e):""}function gt(e,t){if(e){e.nodeType===Node.ELEMENT_NODE&&t(e);for(var n,r=0;r<e.childNodes.length;r++)(n=e.childNodes[r]).nodeType===Node.ELEMENT_NODE&&gt(n,t)}}function bt(){this.c=!1,this.addedNodes=[],this.removedNodes=[],this.w=new Set}bt.prototype.flush=function(){if(this.c){this.c=!1;var e=this.takeRecords();e.length&&this.w.forEach((function(t){t(e)}))}},bt.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var e=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],e}return[]};var Et="__eventWrappers"+Date.now(),wt=function(){var e=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return e?function(t){return e.get.call(t)}:null}(),St={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Ct={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function Nt(e,t){var n=[],r=e;for(e=e===window?window:e.getRootNode();r;)n.push(r),r=r.assignedSlot?r.assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(t||r!==e)?r.host:r.parentNode;return n[n.length-1]===document&&n.push(window),n}function Tt(e,t){if(!E)return e;e=Nt(e,!0);for(var n,r,o,i,a=0;a<t.length;a++)if((o=(n=t[a])===window?window:n.getRootNode())!==r&&(i=e.indexOf(o),r=o),!E(o)||-1<i)return n}var Mt={get composed(){return void 0===this.m&&(wt?this.m="focusin"===this.type||"focusout"===this.type||wt(this):!1!==this.isTrusted&&(this.m=St[this.type])),this.m||!1},composedPath:function(){return this.I||(this.I=Nt(this.__target,this.composed)),this.I},get target(){return Tt(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.C?(this.K||(this.K=Nt(this.C,!0)),Tt(this.currentTarget||this.__previousCurrentTarget,this.K)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.B=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.B=this.P=!0}};function _t(e){function t(t,n){return(t=new e(t,n)).m=n&&!!n.composed,t}return function(e,t){for(var n in t)e[n]=t[n]}(t,e),t.prototype=e.prototype,t}var Ot={focus:!0,blur:!0};function Lt(e){return e.__target!==e.target||e.C!==e.relatedTarget}function xt(e,t,n){if(n=t.__handlers&&t.__handlers[e.type]&&t.__handlers[e.type][n])for(var r,o=0;(r=n[o])&&(!Lt(e)||e.target!==e.relatedTarget)&&(r.call(t,e),!e.P);o++);}function At(e){var t,n=e.composedPath();Object.defineProperty(e,"currentTarget",{get:function(){return o},configurable:!0});for(var r=n.length-1;0<=r;r--){var o=n[r];if(xt(e,o,"capture"),e.B)return}for(Object.defineProperty(e,"eventPhase",{get:function(){return Event.AT_TARGET}}),r=0;r<n.length;r++){var i=h(o=n[r]);if(i=i&&i.root,(0===r||i&&i===t)&&(xt(e,o,"bubble"),o!==window&&(t=o.getRootNode()),e.B))break}}function Dt(e,t,n,r,o,i){for(var a=0;a<e.length;a++){var l=e[a],s=l.type,c=l.capture,u=l.once,d=l.passive;if(t===l.node&&n===s&&r===c&&o===u&&i===d)return a}return-1}function Ht(e,t,n){if(t){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){var o=this instanceof Window?Se.aa:Se.addEventListener;if(Ct[e])return o.call(this,e,t,n);if(n&&"object"==typeof n)var i=!!n.capture,a=!!n.once,l=!!n.passive;else i=!!n,l=a=!1;var s=n&&n.F||this,c=t[Et];if(c){if(-1<Dt(c,s,e,i,a,l))return}else t[Et]=[];c=function(o){if(a&&this.removeEventListener(e,t,n),o.__target||Pt(o),s!==this){var i=Object.getOwnPropertyDescriptor(o,"currentTarget");Object.defineProperty(o,"currentTarget",{get:function(){return s},configurable:!0})}if(o.__previousCurrentTarget=o.currentTarget,(!E(s)||-1!=o.composedPath().indexOf(s))&&(o.composed||-1<o.composedPath().indexOf(s)))if(Lt(o)&&o.target===o.relatedTarget)o.eventPhase===Event.BUBBLING_PHASE&&o.stopImmediatePropagation();else if(o.eventPhase===Event.CAPTURING_PHASE||o.bubbles||o.target===s||s instanceof Window){var l="function"===r?t.call(s,o):t.handleEvent&&t.handleEvent(o);return s!==this&&(i?(Object.defineProperty(o,"currentTarget",i),i=null):delete o.currentTarget),l}},t[Et].push({node:s,type:e,capture:i,once:a,passive:l,ca:c}),Ot[e]?(this.__handlers=this.__handlers||{},this.__handlers[e]=this.__handlers[e]||{capture:[],bubble:[]},this.__handlers[e][i?"capture":"bubble"].push(c)):o.call(this,e,c,n)}}}function Rt(e,t,n){if(t){var r=this instanceof Window?Se.ba:Se.removeEventListener;if(Ct[e])return r.call(this,e,t,n);if(n&&"object"==typeof n)var o=!!n.capture,i=!!n.once,a=!!n.passive;else o=!!n,a=i=!1;var l=n&&n.F||this,s=void 0,c=null;try{c=t[Et]}catch(e){}c&&(-1<(i=Dt(c,l,e,o,i,a))&&(s=c.splice(i,1)[0].ca,c.length||(t[Et]=void 0))),r.call(this,e,s||t,n),s&&Ot[e]&&this.__handlers&&this.__handlers[e]&&(-1<(s=(e=this.__handlers[e][o?"capture":"bubble"]).indexOf(s))&&e.splice(s,1))}}function Pt(e){if(e.__target=e.target,e.C=e.relatedTarget,m.g){var t=Object.getPrototypeOf(e);if(!t.hasOwnProperty("__patchProto")){var n=Object.create(t);n.da=t,N(n,Mt),t.__patchProto=n}e.__proto__=t.__patchProto}else N(e,Mt)}var jt=_t(window.Event),kt=_t(window.CustomEvent),Ft=_t(window.MouseEvent);function It(e){var t=e.getRootNode();return E(t)&&Xe(t),(e=h(e))&&e.assignedSlot||null}var Vt={addEventListener:Ht.bind(window),removeEventListener:Rt.bind(window)},qt={addEventListener:Ht,removeEventListener:Rt,appendChild:function(e){return at(this,e)},insertBefore:function(e,t){return at(this,e,t)},removeChild:function(e){return lt(this,e)},replaceChild:function(e,t){return at(this,e,t),lt(this,t),e},cloneNode:function(e){if("template"==this.localName)var t=Se.cloneNode.call(this,e);else if(t=Se.cloneNode.call(this,!1),e&&t.nodeType!==Node.ATTRIBUTE_NODE){e=this.childNodes;for(var n,r=0;r<e.length;r++)n=e[r].cloneNode(!0),t.appendChild(n)}return t},getRootNode:function(){return function e(t){if(t&&t.nodeType){var n=p(t),r=n.j;return void 0===r&&(E(t)?(r=t,n.j=r):(r=(r=t.parentNode)?e(r):t,Se.contains.call(document.documentElement,t)&&(n.j=r))),r}}(this)},contains:function(e){return A(this,e)},dispatchEvent:function(e){return j(),Se.dispatchEvent.call(this,e)}};Object.defineProperties(qt,{isConnected:{get:function(){if(_e&&_e.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var e=this.ownerDocument;if(x){if(Se.contains.call(e,this))return!0}else if(e.documentElement&&Se.contains.call(e.documentElement,this))return!0;for(e=this;e&&!(e instanceof Document);)e=e.parentNode||(E(e)?e.host:void 0);return!!(e&&e instanceof Document)},configurable:!0}});var Ut={get assignedSlot(){return It(this)}},Bt={querySelector:function(e){return dt(this,(function(t){return C.call(t,e)}),(function(e){return!!e}))[0]||null},querySelectorAll:function(e,t){if(t){t=Array.prototype.slice.call(Se.querySelectorAll.call(this,e));var n=this.getRootNode();return t.filter((function(e){return e.getRootNode()==n}))}return dt(this,(function(t){return C.call(t,e)}))}},Kt={assignedNodes:function(e){if("slot"===this.localName){var t=this.getRootNode();return E(t)&&Xe(t),(t=h(this))&&(e&&e.flatten?t.h:t.assignedNodes)||[]}}},Gt=T({setAttribute:function(e,t){ht(this,e,t)},removeAttribute:function(e){Se.removeAttribute.call(this,e),ct(this,e)},attachShadow:function(e){if(!this)throw"Must provide a host.";if(!e)throw"Not enough arguments.";return new $e(Ke,this,e)},get slot(){return this.getAttribute("slot")},set slot(e){ht(this,"slot",e)},get assignedSlot(){return It(this)}},Bt,Kt);Object.defineProperties(Gt,De);var Wt=T({importNode:function(e,t){return function e(t,n){if(t.ownerDocument!==document||"template"===t.localName)return Se.importNode.call(document,t,n);var r=Se.importNode.call(document,t,!1);if(n){t=t.childNodes,n=0;for(var o;n<t.length;n++)o=e(t[n],!0),r.appendChild(o)}return r}(e,t)},getElementById:function(e){return dt(this,(function(t){return t.id==e}),(function(e){return!!e}))[0]||null}},Bt);Object.defineProperties(Wt,{_activeElement:He.activeElement});for(var $t=HTMLElement.prototype.blur,zt={blur:function(){var e=h(this);(e=(e=e&&e.root)&&e.activeElement)?e.blur():$t.call(this)}},Xt={},Zt=s(Object.getOwnPropertyNames(Document.prototype)),Yt=Zt.next();!Yt.done;Xt={f:Xt.f},Yt=Zt.next())Xt.f=Yt.value,"on"===Xt.f.substring(0,2)&&Object.defineProperty(zt,Xt.f,{set:function(e){return function(t){var n=p(this),r=e.f.substring(2);n.o[e.f]&&this.removeEventListener(r,n.o[e.f]),this.addEventListener(r,t,{}),n.o[e.f]=t}}(Xt),get:function(e){return function(){var t=h(this);return t&&t.o[e.f]}}(Xt),configurable:!0});var Jt={addEventListener:function(e,t,n){"object"!=typeof n&&(n={capture:!!n}),n.F=this,this.host.addEventListener(e,t,n)},removeEventListener:function(e,t,n){"object"!=typeof n&&(n={capture:!!n}),n.F=this,this.host.removeEventListener(e,t,n)},getElementById:function(e){return dt(this,(function(t){return t.id==e}),(function(e){return!!e}))[0]||null}};function Qt(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i.value?e[o]=i.value:Object.defineProperty(e,o,i)}}if(m.H){window.ShadyDOM={inUse:m.H,patch:function(e){return ke(e),je(e),e},isShadyRoot:E,enqueue:P,flush:j,settings:m,filterMutations:function(e,t){var n=t.getRootNode();return e.map((function(e){var t=n===e.target.getRootNode();if(t&&e.addedNodes){if((t=Array.from(e.addedNodes).filter((function(e){return n===e.getRootNode()}))).length)return e=Object.create(e),Object.defineProperty(e,"addedNodes",{value:t,configurable:!0}),e}else if(t)return e})).filter((function(e){return e}))},observeChildren:function(e,t){var n=p(e);n.i||(n.i=new bt),n.i.w.add(t);var r=n.i;return{V:t,Y:r,X:e,takeRecords:function(){return r.takeRecords()}}},unobserveChildren:function(e){var t=e&&e.Y;t&&(t.w.delete(e.V),t.w.size||(p(e.X).i=null))},nativeMethods:Se,nativeTree:te,deferConnectionCallbacks:m.deferConnectionCallbacks,handlesDynamicScoping:!0},function(){if(window.Event=jt,window.CustomEvent=kt,window.MouseEvent=Ft,function(){for(var e in Ot)window.addEventListener(e,(function(e){e.__target||(Pt(e),At(e))}),!0)}(),!wt&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var e=function(){var e=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.dispatchEvent(e)};Element.prototype.click?Element.prototype.click=e:HTMLElement.prototype.click&&(HTMLElement.prototype.click=e)}}();var en=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;Qt($e.prototype,Jt),Qt(window.Node.prototype,qt),Qt(window.Window.prototype,Vt),Qt(window.Text.prototype,Ut),Qt(window.DocumentFragment.prototype,Bt),Qt(window.Element.prototype,Gt),Qt(window.Document.prototype,Wt),window.HTMLSlotElement&&Qt(window.HTMLSlotElement.prototype,Kt),Qt(en.prototype,zt),m.g&&(Pe(window.Node.prototype),Pe(window.Text.prototype),Pe(window.DocumentFragment.prototype),Pe(window.Element.prototype),Pe(en.prototype),Pe(window.Document.prototype),window.HTMLSlotElement&&Pe(window.HTMLSlotElement.prototype)),function(){var e=$e.prototype;e.__proto__=DocumentFragment.prototype,Re(e,Le,!0),Re(e,Ae,!0),Re(e,He,!0),Object.defineProperties(e,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach((function(t){Object.defineProperty(e,t,{value:void 0,configurable:!0})})),["ownerDocument","baseURI","isConnected"].forEach((function(t){Object.defineProperty(e,t,{get:function(){return this.host[t]},configurable:!0})}))}(),window.ShadowRoot=$e}}).call(this)}).call(this,n(40))},91:function(e,t){(function(){"use strict";var e,t=null,n=window.HTMLImports&&window.HTMLImports.whenReady||null;function r(r){requestAnimationFrame((function(){n?n(r):(t||(t=new Promise((function(t){e=t})),"complete"===document.readyState?e():document.addEventListener("readystatechange",(function(){"complete"===document.readyState&&e()}))),t.then((function(){r&&r()})))}))}var o=null,i=null;function a(){this.customStyles=[],this.enqueued=!1,r((function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()}))}function l(e){!e.enqueued&&i&&(e.enqueued=!0,r(i))}function s(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}a.prototype.c=function(e){e.__seenByShadyCSS||(e.__seenByShadyCSS=!0,this.customStyles.push(e),l(this))},a.prototype.b=function(e){return e.__shadyCSSCachedStyle?e.__shadyCSSCachedStyle:e.getStyle?e.getStyle():e},a.prototype.a=function(){for(var e=this.customStyles,t=0;t<e.length;t++){var n=e[t];if(!n.__shadyCSSCachedStyle){var r=this.b(n);r&&(r=r.__appliedElement||r,o&&o(r),n.__shadyCSSCachedStyle=r)}}return e},a.prototype.addCustomStyle=a.prototype.c,a.prototype.getStyleForCustomStyle=a.prototype.b,a.prototype.processStyles=a.prototype.a,Object.defineProperties(a.prototype,{transformCallback:{get:function(){return o},set:function(e){o=e}},validateCallback:{get:function(){return i},set:function(e){var t=!1;i||(t=!0),i=e,t&&l(this)}}});var c,u=!(window.ShadyDOM&&window.ShadyDOM.inUse);function d(e){c=(!e||!e.shimcssproperties)&&(u||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?c=window.ShadyCSS.nativeCss:window.ShadyCSS?(d(window.ShadyCSS),window.ShadyCSS=void 0):d(window.WebComponents&&window.WebComponents.flags);var f=c,p=new a;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},prepareTemplateDom:function(){},prepareTemplateStyles:function(){},styleSubtree:function(e,t){p.a(),s(e,t)},styleElement:function(){p.a()},styleDocument:function(e){p.a(),s(document.body,e)},getComputedStyleValue:function(e,t){return(e=window.getComputedStyle(e).getPropertyValue(t))?e.trim():""},flushCustomStyles:function(){},nativeCss:f,nativeShadow:u}),window.ShadyCSS.CustomStyleInterface=p}).call(this)},92:function(e,t){(function(){"use strict";var e,t=!(window.ShadyDOM&&window.ShadyDOM.inUse);function n(n){e=(!n||!n.shimcssproperties)&&(t||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?e=window.ShadyCSS.nativeCss:window.ShadyCSS?(n(window.ShadyCSS),window.ShadyCSS=void 0):n(window.WebComponents&&window.WebComponents.flags);var r=e;function o(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function i(e){var t=a,n=e=e.replace(d,"").replace(f,""),r=new o;r.start=0,r.end=n.length;for(var i=r,l=0,s=n.length;l<s;l++)if("{"===n[l]){i.rules||(i.rules=[]);var c=i,u=c.rules[c.rules.length-1]||null;(i=new o).start=l+1,i.parent=c,i.previous=u,c.rules.push(i)}else"}"===n[l]&&(i.end=l+1,i=i.parent||r);return t(r,e)}function a(e,t){var n=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=n.trim(),e.parent&&(n=(n=(n=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(e,t){for(t=6-(e=t).length;t--;)e="0"+e;return"\\"+e}))}(n=t.substring(e.previous?e.previous.end:e.parent.start,e.start-1))).replace(g," ")).substring(n.lastIndexOf(";")+1),n=e.parsedSelector=e.selector=n.trim(),e.atRule=0===n.indexOf("@"),e.atRule?0===n.indexOf("@media")?e.type=c:n.match(y)&&(e.type=s,e.keyframesName=e.selector.split(g).pop()):e.type=0===n.indexOf("--")?u:l),n=e.rules)for(var r,o=0,i=n.length;o<i&&(r=n[o]);o++)a(r,t);return e}var l=1,s=7,c=4,u=1e3,d=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,f=/@import[^;]*;/gim,p=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,h=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,m=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,v=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,y=/^@[^\s]*keyframes/,g=/\s+/g,b=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,E=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,w=/@media\s(.*)/,S=new Set;function C(e){return e?("string"==typeof e&&(e=i(e)),function e(t,n,r){r=void 0===r?"":r;var o="";if(t.cssText||t.rules){var i,a=t.rules;if((i=a)&&(i=!((i=a[0])&&i.selector&&0===i.selector.indexOf("--"))),i){i=0;for(var l,s=a.length;i<s&&(l=a[i]);i++)o=e(l,n,o)}else n?n=t.cssText:n=(n=(n=t.cssText).replace(p,"").replace(h,"")).replace(m,"").replace(v,""),(o=n.trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(r+=t.selector+" {\n"),r+=o,t.selector&&(r+="}\n\n")),r}(e,r)):""}function N(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=i(e.textContent)),e.__cssRules||null}function T(e,t,n,r){if(e){var o=!1,i=e.type;if(r&&i===c){var a=e.selector.match(w);a&&(window.matchMedia(a[1]).matches||(o=!0))}if(i===l?t(e):n&&i===s?n(e):i===u&&(o=!0),(e=e.rules)&&!o){o=0,i=e.length;for(var d;o<i&&(d=e[o]);o++)T(d,t,n,r)}}}function M(e){if(void 0===e.a){var t=e.getAttribute("css-build");if(t)e.a=t;else{if(""!==(t=(t="template"===e.localName?e.content.firstChild:e.firstChild)instanceof Comment&&"css-build"===(t=t.textContent.trim().split(":"))[0]?t[1]:"")){var n="template"===e.localName?e.content.firstChild:e.firstChild;n.parentNode.removeChild(n)}e.a=t}}return e.a||""}var _=/;\s*/m,O=/^\s*(initial)|(inherit)\s*$/,L=/\s*!important/;function x(){this.a={}}x.prototype.set=function(e,t){e=e.trim(),this.a[e]={h:t,i:{}}},x.prototype.get=function(e){return e=e.trim(),this.a[e]||null};var A=null;function D(){this.b=this.c=null,this.a=new x}function H(e,t){for(var n=t;n.parent;)n=n.parent;var r={},o=!1;return T(n,(function(n){(o=o||n===t)||n.selector===t.selector&&Object.assign(r,P(e,n.parsedCssText))})),r}function R(e,t,n){for(var r;r=E.exec(t);){var o=r[0],i=r[1];r=r.index;var a=t.slice(0,r+o.indexOf("@apply"));t=t.slice(r+o.length);var l=n?H(e,n):{};Object.assign(l,P(e,a)),o=void 0;var s=e;i=i.replace(_,"");var c=[],u=s.a.get(i);if(u||(s.a.set(i,{}),u=s.a.get(i)),u){s.c&&(u.i[s.c]=!0);var d=u.h;for(o in d)u=[o,": var(",i,"_-_",o],(s=l&&l[o])&&u.push(",",s.replace(L,"")),u.push(")"),L.test(d[o])&&u.push(" !important"),c.push(u.join(""))}t=a+(o=c.join("; "))+t,E.lastIndex=r+o.length}return t}function P(e,t){t=t.split(";");for(var n,r,o,i={},a=0;a<t.length;a++)if((n=t[a])&&1<(o=n.split(":")).length){var l=e;r=n=o[0].trim(),o=o.slice(1).join(":");var s=O.exec(o);s&&(s[1]?(l.b||(l.b=document.createElement("meta"),l.b.setAttribute("apply-shim-measure",""),l.b.style.all="initial",document.head.appendChild(l.b)),r=window.getComputedStyle(l.b).getPropertyValue(r)):r="apply-shim-inherit",o=r),r=o,i[n]=r}return i}D.prototype.o=function(e){return e=E.test(e)||b.test(e),E.lastIndex=0,b.lastIndex=0,e},D.prototype.m=function(e,n){if(void 0===e.b){for(var r=[],o=e.content.querySelectorAll("style"),i=0;i<o.length;i++){var a=o[i];if(a.hasAttribute("shady-unscoped")){if(!t){var l=a.textContent;S.has(l)||(S.add(l),l=a.cloneNode(!0),document.head.appendChild(l)),a.parentNode.removeChild(a)}}else r.push(a.textContent),a.parentNode.removeChild(a)}(r=r.join("").trim())?((o=document.createElement("style")).textContent=r,e.content.insertBefore(o,e.content.firstChild),r=o):r=null,e.b=r}return(e=e.b)?this.j(e,n):null},D.prototype.j=function(e,t){t=void 0===t?"":t;var n=N(e);return this.l(n,t),e.textContent=C(n),n},D.prototype.f=function(e){var t=this,n=N(e);return T(n,(function(e){":root"===e.selector&&(e.selector="html"),t.g(e)})),e.textContent=C(n),n},D.prototype.l=function(e,t){var n=this;this.c=t,T(e,(function(e){n.g(e)})),this.c=null},D.prototype.g=function(e){e.cssText=function(e,t,n){return t=t.replace(b,(function(t,r,o,i){return function(e,t,n,r,o,i){if(r&&function e(t,n){var r=t.indexOf("var(");if(-1===r)return n(t,"","","");e:{for(var o=0,i=r+3,a=t.length;i<a;i++)if("("===t[i])o++;else if(")"===t[i]&&0==--o)break e;i=-1}return o=t.substring(r+4,i),r=t.substring(0,r),t=e(t.substring(i+1),n),-1===(i=o.indexOf(","))?n(r,o.trim(),"",t):n(r,o.substring(0,i).trim(),o.substring(i+1).trim(),t)}(r,(function(t,n){n&&e.a.get(n)&&(o="@apply "+n+";")})),!o)return t;var a=R(e,""+o,i);i=t.slice(0,t.indexOf("--"));var l=a=P(e,a),s=e.a.get(n),c=s&&s.h;c?l=Object.assign(Object.create(c),a):e.a.set(n,l);var u,d=[],f=!1;for(u in l){var p=a[u];void 0===p&&(p="initial"),!c||u in c||(f=!0),d.push(n+"_-_"+u+": "+p)}return f&&function(e,t){if(A)for(var n in t.i)n!==e.c&&A(n)}(e,s),s&&(s.h=l),r&&(i=t+";"+i),i+d.join("; ")+";"}(e,t,r,o,i,n)})),R(e,t,n)}(this,e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")},D.prototype.detectMixin=D.prototype.o,D.prototype.transformStyle=D.prototype.j,D.prototype.transformCustomStyle=D.prototype.f,D.prototype.transformRules=D.prototype.l,D.prototype.transformRule=D.prototype.g,D.prototype.transformTemplate=D.prototype.m,D.prototype._separator="_-_",Object.defineProperty(D.prototype,"invalidCallback",{get:function(){return A},set:function(e){A=e}});var j={},k=Promise.resolve();function F(e){(e=j[e])&&(e._applyShimCurrentVersion=e._applyShimCurrentVersion||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e._applyShimNextVersion=(e._applyShimNextVersion||0)+1)}function I(e){return e._applyShimCurrentVersion===e._applyShimNextVersion}var V=new D;function q(){this.a=null,V.invalidCallback=F}function U(e){e.a||(e.a=window.ShadyCSS.CustomStyleInterface,e.a&&(e.a.transformCallback=function(e){V.f(e)},e.a.validateCallback=function(){requestAnimationFrame((function(){e.a.enqueued&&e.flushCustomStyles()}))}))}if(q.prototype.prepareTemplate=function(e,t){U(this),""===M(e)&&(j[t]=e,t=V.m(e,t),e._styleAst=t)},q.prototype.flushCustomStyles=function(){if(U(this),this.a){var e=this.a.processStyles();if(this.a.enqueued){for(var t=0;t<e.length;t++){var n=this.a.getStyleForCustomStyle(e[t]);n&&V.f(n)}this.a.enqueued=!1}}},q.prototype.styleSubtree=function(e,t){if(U(this),t)for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n]);if(e.shadowRoot)for(this.styleElement(e),e=e.shadowRoot.children||e.shadowRoot.childNodes,t=0;t<e.length;t++)this.styleSubtree(e[t]);else for(e=e.children||e.childNodes,t=0;t<e.length;t++)this.styleSubtree(e[t])},q.prototype.styleElement=function(e){U(this);var t,n=e.localName;t=n?-1<n.indexOf("-")?n:e.getAttribute&&e.getAttribute("is")||"":e.is,(n=j[t])&&""!==M(n)||!n||I(n)||((I(n)||n._applyShimValidatingVersion!==n._applyShimNextVersion)&&(this.prepareTemplate(n,t),function(e){e._applyShimValidatingVersion=e._applyShimNextVersion,e.c||(e.c=!0,k.then((function(){e._applyShimCurrentVersion=e._applyShimNextVersion,e.c=!1})))}(n)),(e=e.shadowRoot)&&(e=e.querySelector("style"))&&(e.__cssRules=n._styleAst,e.textContent=C(n._styleAst)))},q.prototype.styleDocument=function(e){U(this),this.styleSubtree(document.body,e)},!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var B=new q,K=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(e,t){B.flushCustomStyles(),B.prepareTemplate(e,t)},prepareTemplateStyles:function(e,t,n){this.prepareTemplate(e,t,n)},prepareTemplateDom:function(){},styleSubtree:function(e,t){B.flushCustomStyles(),B.styleSubtree(e,t)},styleElement:function(e){B.flushCustomStyles(),B.styleElement(e)},styleDocument:function(e){B.flushCustomStyles(),B.styleDocument(e)},getComputedStyleValue:function(e,t){return(e=window.getComputedStyle(e).getPropertyValue(t))?e.trim():""},flushCustomStyles:function(){B.flushCustomStyles()},nativeCss:r,nativeShadow:t},K&&(window.ShadyCSS.CustomStyleInterface=K)}window.ShadyCSS.ApplyShim=V}).call(this)},93:function(e,t,n){(function(e){(function(){"use strict";var t,n="undefined"!=typeof window&&window===this?this:void 0!==e&&null!=e?e:this;function r(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function o(e){var t=i,n=e=e.replace(d,"").replace(f,""),o=new r;o.start=0,o.end=n.length;for(var a=o,l=0,s=n.length;l<s;l++)if("{"===n[l]){a.rules||(a.rules=[]);var c=a,u=c.rules[c.rules.length-1]||null;(a=new r).start=l+1,a.parent=c,a.previous=u,c.rules.push(a)}else"}"===n[l]&&(a.end=l+1,a=a.parent||o);return t(o,e)}function i(e,t){var n=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=n.trim(),e.parent&&(n=(n=(n=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(e,t){for(t=6-(e=t).length;t--;)e="0"+e;return"\\"+e}))}(n=t.substring(e.previous?e.previous.end:e.parent.start,e.start-1))).replace(g," ")).substring(n.lastIndexOf(";")+1),n=e.parsedSelector=e.selector=n.trim(),e.atRule=0===n.indexOf("@"),e.atRule?0===n.indexOf("@media")?e.type=c:n.match(y)&&(e.type=s,e.keyframesName=e.selector.split(g).pop()):e.type=0===n.indexOf("--")?u:l),n=e.rules)for(var r,o=0,a=n.length;o<a&&(r=n[o]);o++)i(r,t);return e}var a,l=1,s=7,c=4,u=1e3,d=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,f=/@import[^;]*;/gim,p=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,h=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,m=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,v=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,y=/^@[^\s]*keyframes/,g=/\s+/g,b=!(window.ShadyDOM&&window.ShadyDOM.inUse);function E(e){a=(!e||!e.shimcssproperties)&&(b||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?a=window.ShadyCSS.nativeCss:window.ShadyCSS?(E(window.ShadyCSS),window.ShadyCSS=void 0):E(window.WebComponents&&window.WebComponents.flags);var w=a,S=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,C=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,N=/(--[\w-]+)\s*([:,;)]|$)/gi,T=/(animation\s*:)|(animation-name\s*:)/,M=/@media\s(.*)/,_=/\{[^}]*\}/g,O=new Set;function L(e,t){return e?("string"==typeof e&&(e=o(e)),t&&D(e,t),function e(t,n,r){r=void 0===r?"":r;var o="";if(t.cssText||t.rules){var i,a=t.rules;if((i=a)&&(i=!((i=a[0])&&i.selector&&0===i.selector.indexOf("--"))),i){i=0;for(var l,s=a.length;i<s&&(l=a[i]);i++)o=e(l,n,o)}else n?n=t.cssText:n=(n=(n=t.cssText).replace(p,"").replace(h,"")).replace(m,"").replace(v,""),(o=n.trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(r+=t.selector+" {\n"),r+=o,t.selector&&(r+="}\n\n")),r}(e,w)):""}function x(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=o(e.textContent)),e.__cssRules||null}function A(e){return!!e.parent&&e.parent.type===s}function D(e,t,n,r){if(e){var o=!1,i=e.type;if(r&&i===c){var a=e.selector.match(M);a&&(window.matchMedia(a[1]).matches||(o=!0))}if(i===l?t(e):n&&i===s?n(e):i===u&&(o=!0),(e=e.rules)&&!o){o=0,i=e.length;for(var d;o<i&&(d=e[o]);o++)D(d,t,n,r)}}}function H(e,t,n,r){var o=document.createElement("style");return t&&o.setAttribute("scope",t),o.textContent=e,j(o,n,r),o}var R=null;function P(e){e=document.createComment(" Shady DOM styles for "+e+" ");var t=document.head;return t.insertBefore(e,(R?R.nextSibling:null)||t.firstChild),R=e}function j(e,t,n){(t=t||document.head).insertBefore(e,n&&n.nextSibling||t.firstChild),R?e.compareDocumentPosition(R)===Node.DOCUMENT_POSITION_PRECEDING&&(R=e):R=e}function k(e,t){for(var n=0,r=e.length;t<r;t++)if("("===e[t])n++;else if(")"===e[t]&&0==--n)return t;return-1}function F(e,t){b?e.setAttribute("class",t):window.ShadyDOM.nativeMethods.setAttribute.call(e,"class",t)}function I(e){var t=e.localName,n="";return t?-1<t.indexOf("-")||(n=t,t=e.getAttribute&&e.getAttribute("is")||""):(t=e.is,n=e.extends),{is:t,u:n}}function V(e){for(var t=[],n="",r=0;0<=r&&r<e.length;r++)if("("===e[r]){var o=k(e,r);n+=e.slice(r,o+1),r=o}else","===e[r]?(t.push(n),n=""):n+=e[r];return n&&t.push(n),t}function q(e){if(void 0===e.a){var t=e.getAttribute("css-build");if(t)e.a=t;else{if(""!==(t=(t="template"===e.localName?e.content.firstChild:e.firstChild)instanceof Comment&&"css-build"===(t=t.textContent.trim().split(":"))[0]?t[1]:"")){var n="template"===e.localName?e.content.firstChild:e.firstChild;n.parentNode.removeChild(n)}e.a=t}}return e.a||""}function U(){}function B(e,t,n){if(t.nodeType===Node.ELEMENT_NODE&&n(t),t="template"===t.localName?(t.content||t.S||t).childNodes:t.children||t.childNodes)for(var r=0;r<t.length;r++)B(e,t[r],n)}function K(e,t,n){if(t)if(e.classList)n?(e.classList.remove("style-scope"),e.classList.remove(t)):(e.classList.add("style-scope"),e.classList.add(t));else if(e.getAttribute){var r=e.getAttribute(pe);n?r&&F(e,t=r.replace("style-scope","").replace(t,"")):F(e,(r?r+" ":"")+"style-scope "+t)}}function G(e,t,n){B(ve,e,(function(e){K(e,t,!0),K(e,n)}))}function W(e,t){B(ve,e,(function(e){K(e,t||"",!0)}))}function $(e,t,n,r){var o=ve;return b||"shady"===(void 0===r?"":r)?t=L(t,n):t=function(e,t,n,r,o){var i=z(n,r);return n=n?de+n:"",L(t,(function(t){t.c||(t.selector=t.h=X(e,t,e.b,n,i),t.c=!0),o&&o(t,n,i)}))}(o,t,(e=I(e)).is,e.u,n)+"\n\n",t.trim()}function z(e,t){return t?"[is="+e+"]":e}function X(e,t,n,r,o){var i=V(t.selector);if(!A(t)){t=0;for(var a,l=i.length;t<l&&(a=i[t]);t++)i[t]=n.call(e,a,r,o)}return i.filter((function(e){return!!e})).join(te)}function Z(e){return e.replace(Q,(function(e,t,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+t+"("+n+")"}))}function Y(e,t){return(e=e.split(fe))[0]+=t,e.join(fe)}function J(e){e.selector===ie&&(e.selector="html")}U.prototype.b=function(e,t,n){var r=!1;e=e.trim();var o=Q.test(e);o&&(e=Z(e=e.replace(Q,(function(e,t,n){return":"+t+"("+n.replace(/\s/g,"")+")"}))));var i=me.test(e);if(i){var a=function(e){for(var t,n=[];t=e.match(me);){var r=t.index,o=k(e,r);if(-1===o)throw Error(t.input+" selector missing ')'");t=e.slice(r,o+1),e=e.replace(t,""),n.push(t)}return{B:e,matches:n}}(e);e=a.B,a=a.matches}return e=(e=e.replace(le,oe+" $1")).replace(ne,(function(e,o,i){return r||(e=function(e,t,n,r){var o=e.indexOf(ae);if(0<=e.indexOf(oe)?e=function(e,t){var n=e.match(se);return(n=n&&n[2].trim()||"")?n[0].match(re)?e.replace(se,(function(e,n,r){return t+r})):n.split(re)[0]===t?n:he:e.replace(oe,t)}(e,r):0!==o&&(e=n?Y(e,n):e),n=!1,0<=o&&(t="",n=!0),n){var i=!0;n&&(e=e.replace(ce,(function(e,t){return" > "+t})))}return{value:e=e.replace(ue,(function(e,t,n){return'[dir="'+n+'"] '+t+", "+t+'[dir="'+n+'"]'})),G:t,stop:i}}(i,o,t,n),r=r||e.stop,o=e.G,i=e.value),o+i})),i&&(e=function(e,t){var n=e.split("");return t.reduce((function(e,t,r){return e+t+n[r+1]}),n[0])}(e,a)),o&&(e=Z(e)),e},U.prototype.c=function(e){return e.match(oe)?"":e.match(ae)?this.b(e,ee):Y(e.trim(),ee)},n.Object.defineProperties(U.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Q=/:(nth[-\w]+)\(([^)]+)\)/,ee=":not(.style-scope)",te=",",ne=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,re=/[[.:#*]/,oe=":host",ie=":root",ae="::slotted",le=new RegExp("^("+ae+")"),se=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ce=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ue=/(.*):dir\((?:(ltr|rtl))\)/,de=".",fe=":",pe="class",he="should_not_match",me=/:(?:matches|any|-(?:webkit|moz)-any)/,ve=new U;function ye(e,t,n,r,o){this.l=e||null,this.b=t||null,this.c=n||[],this.o=null,this.v=o||"",this.u=r||"",this.a=this.i=this.m=null}function ge(e){return e?e.__styleInfo:null}function be(e,t){return e.__styleInfo=t}function Ee(e){var t=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return t&&t.call(this,e)}ye.prototype.g=function(){return this.l},ye.prototype._getStyleRules=ye.prototype.g;var we=navigator.userAgent.match("Trident");function Se(){}function Ce(e){if(!e.f){var t={},n={};Ne(e,n)&&(t.j=n,e.rules=null),t.cssText=e.parsedCssText.replace(_,"").replace(S,""),e.f=t}}function Ne(e,t){var n=e.f;if(!n){n=e.parsedCssText;for(var r;e=S.exec(n);)"inherit"===(r=(e[2]||e[3]).trim())&&"unset"===r||(t[e[1].trim()]=r),r=!0;return r}if(n.j)return Object.assign(t,n.j),!0}function Te(e,t,n){return t&&(t=0<=t.indexOf(";")?Me(e,t,n):function e(t,n){var r=t.indexOf("var(");if(-1===r)return n(t,"","","");var o=k(t,r+3),i=t.substring(r+4,o);return r=t.substring(0,r),t=e(t.substring(o+1),n),-1===(o=i.indexOf(","))?n(r,i.trim(),"",t):n(r,i.substring(0,o).trim(),i.substring(o+1).trim(),t)}(t,(function(t,r,o,i){return r?((r=Te(e,n[r],n))&&"initial"!==r?"apply-shim-inherit"===r&&(r="inherit"):r=Te(e,n[o]||o,n)||o,t+(r||"")+i):t+i}))),t&&t.trim()||""}function Me(e,t,n){t=t.split(";");for(var r,o,i=0;i<t.length;i++)if(r=t[i]){if(C.lastIndex=0,o=C.exec(r))r=Te(e,n[o[1]],n);else if(-1!==(o=r.indexOf(":"))){var a=r.substring(o);a=Te(e,a=a.trim(),n)||a,r=r.substring(0,o)+a}t[i]=r&&r.lastIndexOf(";")===r.length-1?r.slice(0,-1):r||""}return t.join(";")}function _e(e,t,n){var r={},o={};return D(t,(function(t){!function(e,t,n,r){if(t.f||Ce(t),t.f.j){var o=I(e);e=o.is,o=o.u,o=e?z(e,o):"html";var i=t.parsedSelector,a=":host > *"===i||"html"===i,l=0===i.indexOf(":host")&&!a;"shady"===n&&(l=!(a=i===o+" > *."+o||-1!==i.indexOf("html"))&&0===i.indexOf(o)),(a||l)&&(n=o,l&&(t.h||(t.h=X(ve,t,ve.b,e?de+e:"",o)),n=t.h||o),r({B:n,K:l,T:a}))}}(e,t,n,(function(n){Ee.call(e.U||e,n.B)&&(n.K?Ne(t,r):Ne(t,o))}))}),null,!0),{L:o,J:r}}function Oe(e,t,n,r){var o=I(t),i=z(o.is,o.u),a=new RegExp("(?:^|[^.#[:])"+(t.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])"),l=ge(t);o=l.l,l=l.v;var s=function(e,t){e=e.b;var n={};if(!b&&e)for(var r=0,o=e[r];r<e.length;o=e[++r]){var i=o,a=t;i.g=new RegExp("\\b"+i.keyframesName+"(?!\\B|-)","g"),i.a=i.keyframesName+"-"+a,i.h=i.h||i.selector,i.selector=i.h.replace(i.keyframesName,i.a),n[o.keyframesName]=Le(o)}return n}(o,r);return $(t,o,(function(t){var o="";if(t.f||Ce(t),t.f.cssText&&(o=Me(e,t.f.cssText,n)),t.cssText=o,!b&&!A(t)&&t.cssText){var l=o=t.cssText;if(null==t.C&&(t.C=T.test(o)),t.C)if(null==t.A)for(var c in t.A=[],s)o!==(l=(l=s[c])(o))&&(o=l,t.A.push(c));else{for(c=0;c<t.A.length;++c)o=(l=s[t.A[c]])(o);l=o}t.cssText=l,t.h=t.h||t.selector,o="."+r,l=0;for(var u,d=(c=V(t.h)).length;l<d&&(u=c[l]);l++)c[l]=u.match(a)?u.replace(i,o):o+" "+u;t.selector=c.join(",")}}),l)}function Le(e){return function(t){return t.replace(e.g,e.a)}}function xe(e,t){var n=Ae,r=x(e);e.textContent=L(r,(function(e){var r=e.cssText=e.parsedCssText;e.f&&e.f.cssText&&(r=r.replace(p,"").replace(h,""),e.cssText=Me(n,r,t))}))}n.Object.defineProperties(Se.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Ae=new Se,De={},He=window.customElements;if(He&&!b){var Re=He.define;He.define=function(e,t,n){De[e]||(De[e]=P(e)),Re.call(He,e,t,n)}}function Pe(){this.cache={}}function je(){}function ke(e){var t=[];return e.classList?t=Array.from(e.classList):e instanceof window.SVGElement&&e.hasAttribute("class")&&(t=e.getAttribute("class").split(/\s+/)),-1<(t=(e=t).indexOf(ve.a))?e[t+1]:""}function Fe(e){var t=e.getRootNode();return t===e||t===e.ownerDocument?"":(e=t.host)?I(e).is:""}function Ie(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.target!==document.documentElement&&n.target!==document.head)for(var r=0;r<n.addedNodes.length;r++){var o=n.addedNodes[r];if(o.nodeType===Node.ELEMENT_NODE){var i=o.getRootNode(),a=ke(o);if(a&&i===o.ownerDocument&&("style"!==o.localName&&"template"!==o.localName||""===q(o)))W(o,a);else if(i instanceof ShadowRoot)for((i=Fe(o))!==a&&G(o,a,i),o=window.ShadyDOM.nativeMethods.querySelectorAll.call(o,":not(."+ve.a+")"),a=0;a<o.length;a++){var l=Fe(i=o[a]);l&&K(i,l)}}}}}if(Pe.prototype.store=function(e,t,n,r){var o=this.cache[e]||[];o.push({j:t,styleElement:n,i:r}),100<o.length&&o.shift(),this.cache[e]=o},!(b||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Ve=new MutationObserver(Ie),qe=function(e){Ve.observe(e,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)qe(document);else{var Ue=function(){qe(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Ue):requestAnimationFrame((function(){if("loading"===document.readyState){var e=function(){Ue(),document.removeEventListener("readystatechange",e)};document.addEventListener("readystatechange",e)}else Ue()}))}je=function(){Ie(Ve.takeRecords())}}var Be=je,Ke={},Ge=Promise.resolve();function We(e){(e=Ke[e])&&(e._applyShimCurrentVersion=e._applyShimCurrentVersion||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e._applyShimNextVersion=(e._applyShimNextVersion||0)+1)}function $e(e){return e._applyShimCurrentVersion===e._applyShimNextVersion}var ze=new Pe;function Xe(){this.w={},this.c=document.documentElement;var e=new r;e.rules=[],this.g=be(this.c,new ye(e)),this.s=!1,this.b=this.a=null}function Ze(e){!e.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(e.a=window.ShadyCSS.ApplyShim,e.a.invalidCallback=We),function(e){!e.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(e.b=window.ShadyCSS.CustomStyleInterface,e.b.transformCallback=function(t){e.D(t)},e.b.validateCallback=function(){requestAnimationFrame((function(){(e.b.enqueued||e.s)&&e.flushCustomStyles()}))})}(e)}function Ye(e,t){return(t=t.getRootNode().host)?ge(t)?t:Ye(e,t):e.c}function Je(e,t,n){var r=ge(e=Ye(e,t));e=Object.create(r.m||null);var o=_e(t,n.l,n.v);for(var i in t=function(e,t){var n={},r=[];return D(e,(function(e){e.f||Ce(e);var o=e.h||e.parsedSelector;t&&e.f.j&&o&&Ee.call(t,o)&&(Ne(e,n),e=e.index,o=parseInt(e/32,10),r[o]=(r[o]||0)|1<<e%32)}),null,!0),{j:n,key:r}}(r.l,t).j,Object.assign(e,o.J,t,o.L),t=n.o)((o=t[i])||0===o)&&(e[i]=o);for(i=Ae,t=Object.getOwnPropertyNames(e),o=0;o<t.length;o++)e[r=t[o]]=Te(i,e[r],e);n.m=e}(t=Xe.prototype).flush=function(){Be()},t.I=function(e){return x(e)},t.P=function(e){return L(e)},t.prepareTemplate=function(e,t,n){this.prepareTemplateDom(e,t),this.prepareTemplateStyles(e,t,n)},t.prepareTemplateStyles=function(e,t,n){if(!e.w){b||De[t]||(De[t]=P(t)),e.w=!0,e.name=t,e.extends=n,Ke[t]=e;for(var r=q(e),i=[],a=e.content.querySelectorAll("style"),l=0;l<a.length;l++){var s=a[l];if(s.hasAttribute("shady-unscoped")){if(!b){var c=s.textContent;O.has(c)||(O.add(c),c=s.cloneNode(!0),document.head.appendChild(c)),s.parentNode.removeChild(s)}}else i.push(s.textContent),s.parentNode.removeChild(s)}i=i.join("").trim(),n={is:t,extends:n},Ze(this),(a=""===q(e))&&(a=C.test(i)||S.test(i),C.lastIndex=0,S.lastIndex=0),i=o(i),a&&w&&this.a&&this.a.transformRules(i,t),e._styleAst=i,i=[],w||(i=function(e){var t={},n=[],r=0;for(var o in D(e,(function(e){Ce(e),e.index=r++,e=e.f.cssText;for(var n;n=N.exec(e);){var o=n[1];":"!==n[2]&&(t[o]=!0)}}),(function(e){n.push(e)})),e.b=n,e=[],t)e.push(o);return e}(e._styleAst)),i.length&&!w||(a=b?e.content:null,t=De[t]||null,r=(r=$(n,e._styleAst,null,r)).length?H(r,n.is,a,t):void 0,e.b=r),e.s=i}},t.prepareTemplateDom=function(e,t){var n=q(e);b||"shady"===n||e.g||(e.g=!0,function(e,t){B(ve,e,(function(e){K(e,t||"")}))}(e.content,t))},t.flushCustomStyles=function(){if(Ze(this),this.b){var e=this.b.processStyles();if(this.b.enqueued){if(w)for(var t=0;t<e.length;t++){var n=this.b.getStyleForCustomStyle(e[t]);if(n&&w&&this.a){var r=x(n);Ze(this),this.a.transformRules(r),n.textContent=L(r)}}else for(Je(this,this.c,this.g),t=0;t<e.length;t++)(n=this.b.getStyleForCustomStyle(e[t]))&&xe(n,this.g.m);this.b.enqueued=!1,this.s&&!w&&this.styleDocument()}}},t.styleElement=function(e,t){var n=ge(e);if(!n){var r=I(e);n=r.is,r=r.u;var o=De[n]||null;if(n=Ke[n])var i=n._styleAst,a=n.s,l=q(n);i=new ye(i,o,a,r,l),n&&be(e,i),n=i}if(e!==this.c&&(this.s=!0),t&&(n.o=n.o||{},Object.assign(n.o,t)),w){if(t=n,i=I(e).is,t.o)for(var s in a=t.o)null===s?e.style.removeProperty(s):e.style.setProperty(s,a[s]);!(s=Ke[i])&&e!==this.c||s&&""!==q(s)||!s||!s.b||$e(s)||(($e(s)||s._applyShimValidatingVersion!==s._applyShimNextVersion)&&(Ze(this),this.a&&this.a.transformRules(s._styleAst,i),s.b.textContent=$(e,t.l),function(e){e._applyShimValidatingVersion=e._applyShimNextVersion,e.c||(e.c=!0,Ge.then((function(){e._applyShimCurrentVersion=e._applyShimNextVersion,e.c=!1})))}(s)),b&&(i=e.shadowRoot)&&(i=i.querySelector("style"))&&(i.textContent=$(e,t.l)),t.l=s._styleAst)}else if(s=n,this.flush(),Je(this,e,s),s.c&&s.c.length){t=I(e).is;e:{if(i=ze.cache[t])for(a=i.length-1;0<=a;a--){l=i[a];t:{for(n=s.c,r=0;r<n.length;r++)if(o=n[r],l.j[o]!==s.m[o]){n=!1;break t}n=!0}if(n){i=l;break e}}i=void 0}n=i?i.styleElement:null,a=s.i,(l=i&&i.i)||(l=t+"-"+(l=this.w[t]=(this.w[t]||0)+1)),s.i=l,l=s.i,r=Ae,r=n?n.textContent||"":Oe(r,e,s.m,l);var c=(o=ge(e)).a;c&&!b&&c!==n&&(c._useCount--,0>=c._useCount&&c.parentNode&&c.parentNode.removeChild(c)),b?o.a?(o.a.textContent=r,n=o.a):r&&(n=H(r,l,e.shadowRoot,o.b)):n?n.parentNode||(we&&-1<r.indexOf("@media")&&(n.textContent=r),j(n,null,o.b)):r&&(n=H(r,l,null,o.b)),n&&(n._useCount=n._useCount||0,o.a!=n&&n._useCount++,o.a=n),l=n,b||(n=s.i,o=r=e.getAttribute("class")||"",a&&(o=r.replace(new RegExp("\\s*x-scope\\s*"+a+"\\s*","g")," ")),r!==(o+=(o?" ":"")+"x-scope "+n)&&F(e,o)),i||ze.store(t,s.m,l,s.i)}},t.styleDocument=function(e){this.styleSubtree(this.c,e)},t.styleSubtree=function(e,t){var n=e.shadowRoot;if((n||e===this.c)&&this.styleElement(e,t),t=n&&(n.children||n.childNodes))for(e=0;e<t.length;e++)this.styleSubtree(t[e]);else if(e=e.children||e.childNodes)for(t=0;t<e.length;t++)this.styleSubtree(e[t])},t.D=function(e){var t=this,n=x(e),r=q(e);r!==this.g.v&&(this.g.v=r),D(n,(function(e){if(b)J(e);else{var n=ve;e.selector=e.parsedSelector,J(e),e.selector=e.h=X(n,e,n.c,void 0,void 0)}w&&""===r&&(Ze(t),t.a&&t.a.transformRule(e))})),w?e.textContent=L(n):this.g.l.rules.push(n)},t.getComputedStyleValue=function(e,t){var n;return w||(n=(ge(e)||ge(Ye(this,e))).m[t]),(n=n||window.getComputedStyle(e).getPropertyValue(t))?n.trim():""},t.O=function(e,t){var n=e.getRootNode();if(t=t?t.split(/\s/):[],!(n=n.host&&n.host.localName)){var r=e.getAttribute("class");if(r){r=r.split(/\s/);for(var o=0;o<r.length;o++)if(r[o]===ve.a){n=r[o+1];break}}}n&&t.push(ve.a,n),w||(n=ge(e))&&n.i&&t.push(Ae.a,n.i),F(e,t.join(" "))},t.F=function(e){return ge(e)},t.N=function(e,t){K(e,t)},t.R=function(e,t){K(e,t,!0)},t.M=function(e){return Fe(e)},t.H=function(e){return ke(e)},Xe.prototype.flush=Xe.prototype.flush,Xe.prototype.prepareTemplate=Xe.prototype.prepareTemplate,Xe.prototype.styleElement=Xe.prototype.styleElement,Xe.prototype.styleDocument=Xe.prototype.styleDocument,Xe.prototype.styleSubtree=Xe.prototype.styleSubtree,Xe.prototype.getComputedStyleValue=Xe.prototype.getComputedStyleValue,Xe.prototype.setElementClass=Xe.prototype.O,Xe.prototype._styleInfoForNode=Xe.prototype.F,Xe.prototype.transformCustomStyleForDocument=Xe.prototype.D,Xe.prototype.getStyleAst=Xe.prototype.I,Xe.prototype.styleAstToString=Xe.prototype.P,Xe.prototype.flushCustomStyles=Xe.prototype.flushCustomStyles,Xe.prototype.scopeNode=Xe.prototype.N,Xe.prototype.unscopeNode=Xe.prototype.R,Xe.prototype.scopeForNode=Xe.prototype.M,Xe.prototype.currentScopeForNode=Xe.prototype.H,Object.defineProperties(Xe.prototype,{nativeShadow:{get:function(){return b}},nativeCss:{get:function(){return w}}});var Qe,et,tt=new Xe;window.ShadyCSS&&(Qe=window.ShadyCSS.ApplyShim,et=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:tt,prepareTemplate:function(e,t,n){tt.flushCustomStyles(),tt.prepareTemplate(e,t,n)},prepareTemplateDom:function(e,t){tt.prepareTemplateDom(e,t)},prepareTemplateStyles:function(e,t,n){tt.flushCustomStyles(),tt.prepareTemplateStyles(e,t,n)},styleSubtree:function(e,t){tt.flushCustomStyles(),tt.styleSubtree(e,t)},styleElement:function(e){tt.flushCustomStyles(),tt.styleElement(e)},styleDocument:function(e){tt.flushCustomStyles(),tt.styleDocument(e)},flushCustomStyles:function(){tt.flushCustomStyles()},getComputedStyleValue:function(e,t){return tt.getComputedStyleValue(e,t)},nativeCss:w,nativeShadow:b},Qe&&(window.ShadyCSS.ApplyShim=Qe),et&&(window.ShadyCSS.CustomStyleInterface=et)}).call(this)}).call(this,n(40))},94:function(e,t){
50
- /*!
51
- Copyright (C) 2013-2015 by Andrea Giammarchi - @WebReflection
52
-
53
- Permission is hereby granted, free of charge, to any person obtaining a copy
54
- of this software and associated documentation files (the "Software"), to deal
55
- in the Software without restriction, including without limitation the rights
56
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
57
- copies of the Software, and to permit persons to whom the Software is
58
- furnished to do so, subject to the following conditions:
59
-
60
- The above copyright notice and this permission notice shall be included in
61
- all copies or substantial portions of the Software.
62
-
63
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
64
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
65
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
66
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
67
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
68
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
69
- THE SOFTWARE.
70
-
71
- */
72
- !function(e){"use strict";function t(){return d.createDocumentFragment()}function n(e){return d.createElement(e)}function r(e,t){if(!e)throw new Error("Failed to construct "+t+": 1 argument required, but only 0 present.")}function o(e){if(1===e.length)return i(e[0]);for(var n=t(),r=D.call(e),o=0;o<e.length;o++)n.appendChild(i(r[o]));return n}function i(e){return"string"==typeof e?d.createTextNode(e):e}for(var a,l,s,c,u,d=e.document,f=Object.prototype.hasOwnProperty,p=Object.defineProperty||function(e,t,n){return f.call(n,"value")?e[t]=n.value:(f.call(n,"get")&&e.__defineGetter__(t,n.get),f.call(n,"set")&&e.__defineSetter__(t,n.set)),e},h=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},m=function(e){var t=void 0===e.className,n=t?e.getAttribute("class")||"":e.className,r=t||"object"==typeof n,o=(r?t?n:n.baseVal:n).replace(y,"");o.length&&A.push.apply(this,o.split(g)),this._isSVG=r,this._=e},v={get:function(){return new m(this)},set:function(){}},y=/^\s+|\s+$/g,g=/\s+/,b=function(e,t){return this.contains(e)?t||this.remove(e):(void 0===t||t)&&(t=!0,this.add(e)),!!t},E=e.DocumentFragment&&DocumentFragment.prototype,w=e.Node,S=(w||Element).prototype,C=e.CharacterData||w,N=C&&C.prototype,T=e.DocumentType,M=T&&T.prototype,_=(e.Element||w||e.HTMLElement).prototype,O=e.HTMLSelectElement||n("select").constructor,L=O.prototype.remove,x=e.SVGElement,A=["matches",_.matchesSelector||_.webkitMatchesSelector||_.khtmlMatchesSelector||_.mozMatchesSelector||_.msMatchesSelector||_.oMatchesSelector||function(e){var t=this.parentNode;return!!t&&-1<h.call(t.querySelectorAll(e),this)},"closest",function(e){for(var t,n=this;(t=n&&n.matches)&&!n.matches(e);)n=n.parentNode;return t?n:null},"prepend",function(){var e=this.firstChild,t=o(arguments);e?this.insertBefore(t,e):this.appendChild(t)},"append",function(){this.appendChild(o(arguments))},"before",function(){var e=this.parentNode;e&&e.insertBefore(o(arguments),this)},"after",function(){var e=this.parentNode,t=this.nextSibling,n=o(arguments);e&&(t?e.insertBefore(n,t):e.appendChild(n))},"toggleAttribute",function(e,t){var n=this.hasAttribute(e);return 1<arguments.length?n&&!t?this.removeAttribute(e):t&&!n&&this.setAttribute(e,""):n?this.removeAttribute(e):this.setAttribute(e,""),this.hasAttribute(e)},"replace",function(){this.replaceWith.apply(this,arguments)},"replaceWith",function(){var e=this.parentNode;e&&e.replaceChild(o(arguments),this)},"remove",function(){var e=this.parentNode;e&&e.removeChild(this)}],D=A.slice,H=A.length;H;H-=2)if((l=A[H-2])in _||(_[l]=A[H-1]),"remove"===l&&(O.prototype[l]=function(){return 0<arguments.length?L.apply(this,arguments):_.remove.call(this)}),/^(?:before|after|replace|replaceWith|remove)$/.test(l)&&(!C||l in N||(N[l]=A[H-1]),!T||l in M||(M[l]=A[H-1])),/^(?:append|prepend)$/.test(l))if(E)l in E||(E[l]=A[H-1]);else try{t().constructor.prototype[l]=A[H-1]}catch(e){}var R;n("a").matches("a")||(_[l]=(R=_[l],function(e){return R.call(this.parentNode?this:t().appendChild(this),e)})),m.prototype={length:0,add:function(){for(var e,t=0;t<arguments.length;t++)e=arguments[t],this.contains(e)||A.push.call(this,l);this._isSVG?this._.setAttribute("class",""+this):this._.className=""+this},contains:function(e){return function(t){return-1<(H=e.call(this,l=function(e){if(!e)throw"SyntaxError";if(g.test(e))throw"InvalidCharacterError";return e}(t)))}}([].indexOf||function(e){for(H=this.length;H--&&this[H]!==e;);return H}),item:function(e){return this[e]||null},remove:function(){for(var e,t=0;t<arguments.length;t++)e=arguments[t],this.contains(e)&&A.splice.call(this,H,1);this._isSVG?this._.setAttribute("class",""+this):this._.className=""+this},toggle:b,toString:function(){return A.join.call(this," ")}},!x||"classList"in x.prototype||p(x.prototype,"classList",v),"classList"in d.documentElement?((c=n("div").classList).add("a","b","a"),"a b"!=c&&("add"in(s=c.constructor.prototype)||(s=e.TemporaryTokenList.prototype),u=function(e){return function(){for(var t=0;t<arguments.length;)e.call(this,arguments[t++])}},s.add=u(s.add),s.remove=u(s.remove),s.toggle=b)):p(_,"classList",v),"contains"in S||p(S,"contains",{value:function(e){for(;e&&e!==this;)e=e.parentNode;return this===e}}),"head"in d||p(d,"head",{get:function(){return a||(a=d.getElementsByTagName("head")[0])}}),function(){for(var t,n=e.requestAnimationFrame,r=e.cancelAnimationFrame,o=["o","ms","moz","webkit"],i=o.length;!r&&i--;)n=n||e[o[i]+"RequestAnimationFrame"],r=e[o[i]+"CancelAnimationFrame"]||e[o[i]+"CancelRequestAnimationFrame"];r||(n?(t=n,n=function(e){var n=!0;return t((function(){n&&e.apply(this,arguments)})),function(){n=!1}},r=function(e){e()}):(n=function(e){return setTimeout(e,15,15)},r=function(e){clearTimeout(e)})),e.requestAnimationFrame=n,e.cancelAnimationFrame=r}();try{new e.CustomEvent("?")}catch(t){e.CustomEvent=function(e,t){function n(e,t,n,r){this.initEvent(e,t,n),this.detail=r}return(function(r,o){var i=d.createEvent(e);if("string"!=typeof r)throw new Error("An event name must be provided");return"Event"==e&&(i.initCustomEvent=n),null==o&&(o=t),i.initCustomEvent(r,o.bubbles,o.cancelable,o.detail),i})}(e.CustomEvent?"CustomEvent":"Event",{bubbles:!1,cancelable:!1,detail:null})}try{new Event("_")}catch(t){t=function(e){function t(e,t){r(arguments.length,"Event");var n=d.createEvent("Event");return t||(t={}),n.initEvent(e,!!t.bubbles,!!t.cancelable),n}return t.prototype=e.prototype,t}(e.Event||function(){}),p(e,"Event",{value:t}),Event!==t&&(Event=t)}try{new KeyboardEvent("_",{})}catch(t){t=function(t){var n,o=0,i={char:"",key:"",location:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,altGraphKey:!1,repeat:!1,locale:navigator.language,detail:0,bubbles:!1,cancelable:!1,keyCode:0,charCode:0,which:0};try{var a=d.createEvent("KeyboardEvent");a.initKeyboardEvent("keyup",!1,!1,e,"+",3,!0,!1,!0,!1,!1),o="+"==(a.keyIdentifier||a.key)&&3==(a.keyLocation||a.location)&&(a.ctrlKey?a.altKey?1:3:a.shiftKey?2:4)||9}catch(e){}function l(e,t,n){try{t[e]=n[e]}catch(e){}}function s(t,a){r(arguments.length,"KeyboardEvent"),a=function(e,t){for(var n in t)t.hasOwnProperty(n)&&!t.hasOwnProperty.call(e,n)&&(e[n]=t[n]);return e}(a||{},i);var s,c=d.createEvent(n),u=a.ctrlKey,f=a.shiftKey,p=a.altKey,h=a.metaKey,m=a.altGraphKey,v=o>3?function(e){for(var t=[],n=["ctrlKey","Control","shiftKey","Shift","altKey","Alt","metaKey","Meta","altGraphKey","AltGraph"],r=0;r<n.length;r+=2)e[n[r]]&&t.push(n[r+1]);return t.join(" ")}(a):null,y=String(a.key),g=String(a.char),b=a.location,E=a.keyCode||(a.keyCode=y)&&y.charCodeAt(0)||0,w=a.charCode||(a.charCode=g)&&g.charCodeAt(0)||0,S=a.bubbles,C=a.cancelable,N=a.repeat,T=a.locale,M=a.view||e;if(a.which||(a.which=a.keyCode),"initKeyEvent"in c)c.initKeyEvent(t,S,C,M,u,p,f,h,E,w);else if(0<o&&"initKeyboardEvent"in c){switch(s=[t,S,C,M],o){case 1:s.push(y,b,u,f,p,h,m);break;case 2:s.push(u,p,f,h,E,w);break;case 3:s.push(y,b,u,p,f,h,m);break;case 4:s.push(y,b,v,N,T);break;default:s.push(char,y,b,v,N,T)}c.initKeyboardEvent.apply(c,s)}else c.initEvent(t,S,C);for(y in c)i.hasOwnProperty(y)&&c[y]!==a[y]&&l(y,c,a);return c}return n=0<o?"KeyboardEvent":"Event",s.prototype=t.prototype,s}(e.KeyboardEvent||function(){}),p(e,"KeyboardEvent",{value:t}),KeyboardEvent!==t&&(KeyboardEvent=t)}try{new MouseEvent("_",{})}catch(t){t=function(t){function n(t,n){r(arguments.length,"MouseEvent");var o=d.createEvent("MouseEvent");return n||(n={}),o.initMouseEvent(t,!!n.bubbles,!!n.cancelable,n.view||e,n.detail||1,n.screenX||0,n.screenY||0,n.clientX||0,n.clientY||0,!!n.ctrlKey,!!n.altKey,!!n.shiftKey,!!n.metaKey,n.button||0,n.relatedTarget||null),o}return n.prototype=t.prototype,n}(e.MouseEvent||function(){}),p(e,"MouseEvent",{value:t}),MouseEvent!==t&&(MouseEvent=t)}d.querySelectorAll("*").forEach||function(){function e(e){var t=e.querySelectorAll;e.querySelectorAll=function(e){var n=t.call(this,e);return n.forEach=Array.prototype.forEach,n}}e(d),e(Element.prototype)}();try{d.querySelector(":scope *")}catch(e){!function(){var e="data-scope-"+(1e9*Math.random()>>>0),t=Element.prototype,n=t.querySelector,r=t.querySelectorAll;function o(t,n,r){t.setAttribute(e,null);var o=n.call(t,String(r).replace(/(^|,\s*)(:scope([ >]|$))/g,(function(t,n,r,o){return n+"["+e+"]"+(o||" ")})));return t.removeAttribute(e),o}t.querySelector=function(e){return o(this,n,e)},t.querySelectorAll=function(e){return o(this,r,e)}}()}}(window),function(e){"use strict";var t=e.WeakMap||function(){var e,t=0,n=!1,r=!1;function o(t,o,i){r=i,n=!1,e=void 0,t.dispatchEvent(o)}function i(e){this.value=e}function l(){t++,this.__ce__=new a("@DOMMap:"+t+Math.random())}return i.prototype.handleEvent=function(t){n=!0,r?t.currentTarget.removeEventListener(t.type,this,!1):e=this.value},l.prototype={constructor:l,delete:function(e){return o(e,this.__ce__,!0),n},get:function(t){o(t,this.__ce__,!1);var n=e;return e=void 0,n},has:function(e){return o(e,this.__ce__,!1),n},set:function(e,t){return o(e,this.__ce__,!0),e.addEventListener(this.__ce__.type,new i(t),!1),this}},l}();function n(){}function r(e,t,n){function o(e){o.once&&(e.currentTarget.removeEventListener(e.type,t,o),o.removed=!0),o.passive&&(e.preventDefault=r.preventDefault),"function"==typeof o.callback?o.callback.call(this,e):o.callback&&o.callback.handleEvent(e),o.passive&&delete e.preventDefault}return o.type=e,o.callback=t,o.capture=!!n.capture,o.passive=!!n.passive,o.once=!!n.once,o.removed=!1,o}n.prototype=(Object.create||Object)(null),r.preventDefault=function(){};var o,i,a=e.CustomEvent,l=e.dispatchEvent,s=e.addEventListener,c=e.removeEventListener,u=0,d=function(){u++},f=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},p=function(e){return"".concat(e.capture?"1":"0",e.passive?"1":"0",e.once?"1":"0")};try{s("_",d,{once:!0}),l(new a("_")),l(new a("_")),c("_",d,{once:!0})}catch(e){}1!==u&&(i=new t,o=function(e){if(e){var t=e.prototype;t.addEventListener=function(e){return function(t,o,a){if(a&&"boolean"!=typeof a){var l,s,c,u=i.get(this),d=p(a);u||i.set(this,u=new n),t in u||(u[t]={handler:[],wrap:[]}),s=u[t],(l=f.call(s.handler,o))<0?(l=s.handler.push(o)-1,s.wrap[l]=c=new n):c=s.wrap[l],d in c||(c[d]=r(t,o,a),e.call(this,t,c[d],c[d].capture))}else e.call(this,t,o,a)}}(t.addEventListener),t.removeEventListener=function(e){return function(t,n,r){if(r&&"boolean"!=typeof r){var o,a,l,s,c=i.get(this);if(c&&t in c&&(l=c[t],-1<(a=f.call(l.handler,n))&&(o=p(r))in(s=l.wrap[a]))){for(o in e.call(this,t,s[o],s[o].capture),delete s[o],s)return;l.handler.splice(a,1),l.wrap.splice(a,1),0===l.handler.length&&delete c[t]}}else e.call(this,t,n,r)}}(t.removeEventListener)}},e.EventTarget?o(EventTarget):(o(e.Text),o(e.Element||e.HTMLElement),o(e.HTMLDocument),o(e.Window||{prototype:e}),o(e.XMLHttpRequest)))}(self)},95:function(e,t){!function e(t,n){if(document.querySelector("script[data-main-path]")){var r=/^(?:[a-z]+:)?\/\//,o=/^[@a-zA-Z_-]/,i=t._||n&&n.getAttribute("data-main-path"),a=function(e){if(r.test(e))return e;if(o.test(e))return u._path(e);for(var t,n=i.slice(0,i.lastIndexOf("/")),a=e.length,l=0,s=0;l<a;s=l+1)if((l=e.indexOf("/",s))<0)l=a,n+="/"+e.slice(s),/\.js$/i.test(n)||(n+=".js");else if(0===l)n="";else{for(t=s,s=l;s&&"."===e.charAt(s-1);)--s;switch(l-s){case 0:n+="/"+e.slice(t,l);break;case 1:break;case 2:n=n.slice(0,n.lastIndexOf("/"))}}return n},l=function(e,t,n){var r=document.documentElement,o=document.createElement("script");o.setAttribute("nonce",u._nonce),o.textContent="module.$(function(){var module="+u._cjs+'(arguments[0]),__filename=module.filename,__dirname=__filename.slice(0,__filename.lastIndexOf("/")),require=module.require,exports=module.exports;(function(){"use strict";\n'+e.responseText+";\n}.call(exports));return module.exports;}(module));",u._=t,u.$=function(e){n(u._cache[t]=e)},setTimeout((function(){r.removeChild(o)}),1),r.appendChild(o)},s=function(e,t){throw u._cache[e]=new Error(t.statusText)},c={filename:i,exports:{},require:function(e){var t=a(e);return u._cache[t]||function(e){var t,n,r=e,o=/^((?:[a-z]+?:\/\/)?[^/]+)\/([^@]+)@latest(\/.*)?$/.exec(e);if(o||0===e.indexOf("@")){t=new XMLHttpRequest;var i="https://pggmlab.azurewebsites.net/latest/"+o[2];if(t.open("GET",i,!1),t.send(null),!(t.status<400))return s(e,t);n=JSON.parse(t.responseText),r=o[1]+"/"+o[2]+"@"+n.version+(o[3]||"")}return(t=new XMLHttpRequest).open("GET",r,!1),t.send(n=null),t.status<400?l(t,e,(function(e){n=e})):s(e,t),n}(t)},import:function(e){var t=a(e);return Promise.resolve(u._cache[t]||(u._cache[t]=new Promise((function(e,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400?l(r,t,e):n(new Error(r.statusText)))},r.send(null)}))))}},u=window.module||c;return u===c&&(window.global=window,window.module=c,window.process={browser:!0},c._cache=Object.create(null),c._nonce=n?n.getAttribute("nonce"):null,c._cjs=""+e,c._path=function(e){var t=e.indexOf("/");"@"===e[0]&&(t=e.split("/",2).join("/").length);var n="https://unpkg.com/";0===e.indexOf("@pggm/")&&(n="https://pggmlab.azurewebsites.net/unpkg/");var r=e.length,o=e.slice(0,t<0?r:t).substring(1).split("@").length>1?"":"@latest";return n+e.slice(0,t<0?r:t)+o+(t<0?"":e.slice(t))}),c}}({_:""},document.querySelector("script[data-main-path]"))},96:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.r(t);var o=function(e,t,n){var o=n.value;if("function"!=typeof o)throw new Error("@Bind decorator can only be applied to methods not: ".concat(r(o)));var i=!1;return{configurable:!0,get:function(){if(i||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var n=o.bind(this);return i=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return n},set:function(e){o=e,delete this[t]}}),i=!1,n},set:function(e){o=e}}},i=n(21),a=n(17),l=n(29),s=n(22);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}function p(e,t,n){return(p=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(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&h(o,n.prototype),o}).apply(null,arguments)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,m(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(r=[{key:"connectedCallback",value:function(){if(!this.hasAttribute("data-id")){var e=document.createElement("style"),t="CustomStyle"+Math.floor(999999*Math.random())+1;e.textContent=this.textContent,e.setAttribute("id",t),this.setAttribute("data-id",t),document.getElementsByTagName("head")[0].appendChild(e),window.ShadyCSS.CustomStyleInterface.addCustomStyle(e),window.ShadyCSS.styleSubtree(this),this.dispatchEvent(new CustomEvent("customStyleConnected",{bubbles:!0,cancelable:!1,detail:{customStyle:e}}))}}}])&&u(n.prototype,r),o&&u(n,o),t}(f(HTMLStyleElement));function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){var t="function"==typeof Map?new Map:void 0;return(E=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return w(e,arguments,C(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),S(r,e)})(e)}function w(e,t,n){return(w=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(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&S(o,n.prototype),o}).apply(null,arguments)}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}customElements.define("custom-inline-style",v,{extends:"style"});var N=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),b(this,C(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(t,e),n=t,(r=[{key:"connectedCallback",value:function(){var e=this,t=this.getAttribute("href")||"";fetch(t).then((function(t){t.text().then((function(t){var n=document.createElement("style");n.textContent=t,n.setAttribute("id","CustomStyle"+Math.floor(999999*Math.random())+1),document.getElementsByTagName("head")[0].appendChild(n),window.ShadyCSS.CustomStyleInterface.addCustomStyle(n),window.ShadyCSS.styleSubtree(e),e.dispatchEvent(new CustomEvent("customStyleConnected",{bubbles:!0,cancelable:!1,detail:{customStyle:n}}))}))}))}}])&&g(n.prototype,r),o&&g(n,o),t}(E(HTMLLinkElement));window.customElements.define("custom-style",N,{extends:"link"});n(95);n.d(t,"jsx",(function(){return M}));var T=function e(t,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];Array.isArray(i)?e(i,n):null!=i&&!1!==i&&(i.hasOwnProperty("vnodeSelector")||(i={children:void 0,domNode:null,properties:void 0,text:i.toString(),vnodeSelector:""}),n.push(i))}},M=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(1===r.length&&"string"==typeof r[0])return{children:void 0,domNode:null,properties:t||void 0,text:r[0],vnodeSelector:e};var i=[];return T(r,i),{children:i,domNode:null,properties:t||void 0,text:void 0,vnodeSelector:e}};!function(e){e.h=M,e.customElements.whenDefined("custom-style").then((function(){document.body.parentElement.classList.add("custom-style-defined")})),e.CustomElement=s.a,e.CustomElementConfig=i.a,e.CustomInlineStyleElement=v,e.CustomStyleElement=N,e.PropertyRenderOnSet=a.a,e.RenderOnSet=a.a,e.ReflectToAttribute=l.a,e.Bind=o}(window)}});
package/dist/sample.js DELETED
@@ -1,20 +0,0 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=297)}({126:function(e,t,n){(e.exports=n(127)(!1)).push([e.i,":host{\r\n display: block;\r\n @apply --mixin-sample;\r\n}\r\n.root {\r\n display: -webkit-box;\r\n display: -webkit-flex;\r\n display: -ms-flexbox;\r\n display: flex;\r\n padding: 10px;\r\n -webkit-box-orient: horizontal;\r\n -webkit-box-direction: normal;\r\n -webkit-flex-direction: row;\r\n -ms-flex-direction: row;\r\n flex-direction: row;\r\n}\r\n\r\ndiv .xxx{\r\n color: var(--color-primary, blue);\r\n}\r\n\r\n#SlotContainer ::slotted(*) {\r\n font-weight: bold;\r\n color: black;\r\n font-size: 1.5em;\r\n}\r\n",""])},127:function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},17:function(e,t,n){"use strict";function r(e,t){Reflect.get(e,"_dp_"+t)||Reflect.defineProperty(e,"_dp_"+t,{configurable:!0,enumerable:!0,get:function(){return this["_"+t+"_value"]},set:function(e){this["_"+t+"_value"]=e}}),e["_dp_setters_"+t]||(e["_dp_setters_"+t]=[]);e["_dp_setters_"+t].push((function(e,t){e&&e.renderNow&&e.renderNow()}));Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return this["_"+t+"_value"]},set:function(n){var r=this;this["_dp_"+t]=n,e["_dp_setters_"+t]&&e["_dp_setters_"+t].forEach((function(e){e(r,n)}))}})}n.d(t,"a",(function(){return r}))},21:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return function(t){window.customElements.define(e.tagName,t,e.options);var n=e.tagName.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));window[n.charAt(0).toUpperCase()+n.slice(1)]=t}}},22:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,i="".concat("http://www.w3.org/","2000/svg"),a="".concat("http://www.w3.org/","1999/xlink"),u=[],c=function(e,t){var n={};return Object.keys(e).forEach((function(t){n[t]=e[t]})),t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n},l=function(e,t){return e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties)},s=function(e){if("string"!=typeof e)throw new Error("Style values must be strings")},f=function(e,t,n){if(""!==t.vnodeSelector)for(var r=n;r<e.length;r++)if(l(e[r],t))return r;return-1},p=function(e,t,n,r){var o=e[t];if(""!==o.vnodeSelector){var i=o.properties;if(!(i?void 0===i.key?i.bind:i.key:void 0))for(var a=0;a<e.length;a++)if(a!==t){var u=e[a];if(l(u,o))throw new Error("".concat(n.vnodeSelector," had a ").concat(o.vnodeSelector," child ").concat("added"===r?r:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable."))}}},d=function(e){if(e.properties){var t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},m=[],h=!1,v=function e(t){(t.children||[]).forEach(e),t.properties&&t.properties.afterRemoved&&t.properties.afterRemoved.apply(t.properties.bind||t.properties,[t.domNode])},y=function(){h=!1,m.forEach(v),m.length=0},b=function(e){m.push(e),h||(h=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(y,{timeout:16}):setTimeout(y,16))},g=function(e){var t=e.domNode;if(e.properties){var n=e.properties.exitAnimation;if(n){t.style.pointerEvents="none";return void n(t,(function(){t.parentNode&&(t.parentNode.removeChild(t),b(e))}),e.properties)}}t.parentNode&&(t.parentNode.removeChild(t),b(e))},w=function(e,t,n){!function(e,t,n){if(t){var r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=a.value;E(c,e,void 0,n)}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}}(e,t.children,n),t.text&&(e.textContent=t.text),function(e,t,n){if(t)for(var o=n.eventHandlerInterceptor,u=Object.keys(t),c=u.length,l=function(c){var l,f=u[c],p=t[f];if("className"===f)throw new Error('Property "className" is not supported, use "class".');if("class"===f)p.split(/\s+/).forEach((function(t){return e.classList.add(t)}));else if("classes"===f)for(var d=Object.keys(p),m=d.length,h=0;h<m;h++){var v=d[h];p[v]&&e.classList.add(v)}else if("styles"===f)for(var y=Object.keys(p),b=y.length,g=0;g<b;g++){var w=y[g],E=p[w];E&&(s(E),n.styleApplyer(e,w,E))}else if("key"!==f&&null!=p){var T=r(p);"function"===T?0===f.lastIndexOf("on",0)&&(o&&(p=o(f,p,e,t)),"oninput"===f&&(l=p,p=function(e){l.apply(this,[e]),e.target["oninput-value"]=e.target.value}),e[f]=p):"string"===T&&"value"!==f&&"innerHTML"!==f?n.namespace===i&&"href"===f?e.setAttributeNS(a,f,p):e.setAttribute(f,p):e[f]=p}},f=0;f<c;f++)l(f)}(e,t.properties,n),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,n,t.vnodeSelector,t.properties,t.children])},E=function(e,t,n,r){var o,a=0,u=e.vnodeSelector,l=t.ownerDocument;if(""===u)o=e.domNode=l.createTextNode(e.text),void 0!==n?t.insertBefore(o,n):t.appendChild(o);else{for(var s=0;s<=u.length;++s){var f=u.charAt(s);if(s===u.length||"."===f||"#"===f){var p=u.charAt(a-1),d=u.slice(a,s);if("."===p)o.classList.add(d);else if("#"===p)o.id=d;else{if("svg"===d&&(r=c(r,{namespace:i})),void 0!==r.namespace)o=e.domNode=l.createElementNS(r.namespace,d);else{var m=void 0;e.properties&&e.properties.is?function(){var t=document.createElement("div");t.style.display="none",document.body.appendChild(t),t.innerHTML="<".concat(d,' is="').concat(e.properties.is,'"></').concat(d,">"),setTimeout((function(){document.body.removeChild(t)}),10),m=l.createElement(d,{is:e.properties.is})}():m=l.createElement(d),o=e.domNode=e.domNode||m,"input"===d&&e.properties&&void 0!==e.properties.type&&o.setAttribute("type",e.properties.type)}void 0!==n?t.insertBefore(o,n):o.parentNode!==t&&t.appendChild(o)}a=s+1}}w(o,e,r)}},T=function(e,t,n){t&&t.split(" ").forEach((function(t){return e.classList.toggle(t,n)}))},L=function(e,t,n,r,i){if(n===r)return!1;r=r||u;for(var a,c=(n=n||u).length,s=r.length,m=0,h=0,v=!1;h<s;){var y=m<c?n[m]:void 0,b=r[h];if(void 0!==y&&l(y,b))v=o(y,b,i)||v,m++;else{var w=f(n,b,m+1);if(w>=0){for(a=m;a<w;a++)g(n[a]),p(n,a,e,"removed");v=o(n[w],b,i)||v,m=w+1}else E(b,t,m<c?n[m].domNode:void 0,i),d(b),p(r,h,e,"added")}h++}if(c>m)for(a=m;a<c;a++)g(n[a]),p(n,a,e,"removed");return v};o=function(e,t,n){var o=e.domNode,u=!1;if(e===t)return!1;var l=!1;if(""===t.vnodeSelector){if(t.text!==e.text){var f=o.ownerDocument.createTextNode(t.text);return o.parentNode.replaceChild(f,o),t.domNode=f,u=!0}t.domNode=o}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(n=c(n,{namespace:i})),e.text!==t.text&&(l=!0,void 0===t.text?o.removeChild(o.firstChild):o.textContent=t.text),t.domNode=o,l=L(t,o,e.children,t.children,n)||l,l=function(e,t,n,o){if(n){for(var u=!1,c=Object.keys(n),l=c.length,f=0;f<l;f++){var p=c[f],d=n[p],m=t[p];if("class"===p)m!==d&&(T(e,m,!1),T(e,d,!0));else if("classes"===p)for(var h=e.classList,v=Object.keys(d),y=v.length,b=0;b<y;b++){var g=v[b],w=!!d[g];w!==!!m[g]&&(u=!0,w?h.add(g):h.remove(g))}else if("styles"===p)for(var E=Object.keys(d),L=E.length,M=0;M<L;M++){var S=E[M],C=d[S];C!==m[S]&&(u=!0,C?(s(C),o.styleApplyer(e,S,C)):o.styleApplyer(e,S,""))}else if(d||"string"!=typeof m||(d=""),"value"===p){var H=e[p];H!==d&&(e["oninput-value"]?H===e["oninput-value"]:d!==m)&&(e[p]=d,e["oninput-value"]=void 0),d!==m&&(u=!0)}else if(d!==m){var O=r(d);"function"===O&&o.eventHandlerInterceptor||("string"===O&&"innerHTML"!==p?o.namespace===i&&"href"===p?e.setAttributeNS(a,p,d):"role"===p&&""===d?e.removeAttribute(p):e.setAttribute(p,d):e[p]!==d&&(e[p]=d),u=!0)}}return u}}(o,e.properties,t.properties,n)||l,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[o,n,t.vnodeSelector,t.properties,t.children]);return l&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(o,t.properties,e.properties),u};var M,S=function(e,t){return{getLastRender:function(){return e},update:function(n){if(e.vnodeSelector!==n.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var r=e;e=n,o(r,n,t)},domNode:e.domNode}},C={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,t,n){e.style[t]=n}},H=function(e){return c(C,e)},O=function(e,t,n){return n=H(n),E(t,e,void 0,n),S(t,n)},N=function(e,t,n){return n=H(n),E(t,e.parentNode,e,n),S(t,n)},_=function(e,t,n){return n=H(n),t.domNode=e,w(e,t,n),S(t,n)},A=function(e,t,n){return n=H(n),E(t,e.parentNode,e,n),e.parentNode.removeChild(e),S(t,n)},x=function(e,t){for(var n=[];e!==t;)n.push(e),e=e.parentNode;return n};M=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){return e.filter(t)[0]};var k=function(e,t){var n=e;return t.forEach((function(e){n=n&&n.children?M(n.children,(function(t){return t.domNode===e})):void 0})),n},R=function(e){var t,n,r=H(e),o=r.performanceLogger,i=!0,a=!1,u=[],c=[],l=function(e,n,i){var a;r.eventHandlerInterceptor=function(e,t,n){var r=function(r){n("domEvent",r);var o=t(),i=x(r.currentTarget,o.domNode);i.reverse();var a,u=k(o.getLastRender(),i);return e.scheduleRender(),u&&(a=u.properties["on".concat(r.type)].apply(u.properties.bind||this,arguments)),n("domEventProcessed",r),a};return function(e,t,n,o){return r}}(t,(function(){return a}),o),a=e(n,i(),r),u.push(a),c.push(i)},s=function(){if(n=void 0,i){i=!1,o("renderStart",void 0);for(var e=0;e<u.length;e++){var t=c[e]();o("rendered",void 0),u[e].update(t),o("patched",void 0)}o("renderDone",void 0),i=!0}};return t={renderNow:s,scheduleRender:function(){n||a||(n=requestAnimationFrame(s))},stop:function(){n&&(cancelAnimationFrame(n),n=void 0),a=!0},resume:function(){a=!1,i=!0,t.scheduleRender()},append:function(e,t){l(O,e,t)},insertBefore:function(e,t){l(N,e,t)},merge:function(e,t){l(_,e,t)},replace:function(e,t){l(A,e,t)},detach:function(e){for(var t=0;t<c.length;t++)if(c[t]===e)return c.splice(t,1),u.splice(t,1)[0];throw new Error("renderFunction was not found")}}};function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e){var t="function"==typeof Map?new Map:void 0;return(I=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return F(e,arguments,V(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),U(r,e)})(e)}function F(e,t,n){return(F=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(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&U(o,n.prototype),o}).apply(null,arguments)}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return z}));var q,B=n(50);q=document.registerElement,/\{\s*\[native code\]\s*\}/.test(""+q)||B(window,"auto");var X=Symbol("UPDATE_ON_CONNECTED"),z=function(e){function t(e){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,o=V(t).call(this,e);var i=(n=!o||"object"!==j(o)&&"function"!=typeof o?D(r):o).constructor.observedProperties,a=void 0===i?[]:i;return n[X]=[],"function"==typeof n.renderNow&&a.forEach((function(e){var t=n[e],r=Symbol(e);n[r]=t,Object.defineProperty(D(D(n)),e,{get:function(){return this[r]},set:function(e){this[r]=e,this.renderNow()}}),void 0!==t&&n[X].push(e)})),"function"==typeof n.init&&n.init(),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}(t,e),n=t,(r=[{key:"initShadowRoot",value:function(e,t){var n=this;return new Promise((function(r,o){n.shadowRoot||n.attachShadow({mode:"open"}),n.shadowRoot&&setTimeout((function(){if(!n._projector){var o=R();o.append(n.shadowRoot,t.bind(n)),n._projector=o}var i=document.createElement("template");i.innerHTML=e,function e(){var t=window.ShadyCSS;if("function"==typeof t.prepareTemplate){t.prepareTemplate(i,n.tagName.toLowerCase());var o=document.importNode(i.content,!0).querySelector("style");o&&n.shadowRoot&&(Array.from(n.shadowRoot.children).forEach((function(e){n.shadowRoot&&"STYLE"===e.tagName&&n.shadowRoot.removeChild(e)})),n.shadowRoot.insertBefore(o,n.shadowRoot.firstChild)),t.styleElement&&t.styleElement(n),t.styleSubtree&&t.styleSubtree(n),t.styleDocument&&t.styleDocument(),n.renderNow(),r(!0)}else setTimeout(e,100)}()}),150)}))}},{key:"removeDoubleStyleElements",value:function(){var e=document.querySelectorAll('style[scope="'.concat(this.tagName.toLowerCase(),'"]'));e&&Array.prototype.slice.call(e).forEach((function(t,n){n<e.length-1&&document.head.removeChild(t)}))}},{key:"updateStyle",value:function(){this.shadowRoot&&window.ShadyCSS&&(window.ShadyCSS.styleElement(this),window.ShadyCSS.styleSubtree(this),window.ShadyCSS.styleDocument(),this.removeDoubleStyleElements())}},{key:"templateFromString",value:function(e){var t=this;this.shadowRoot?this.shadowRoot.innerHTML="":this.attachShadow({mode:"open"}),window.ShadyCSS&&window.addEventListener("customStyleConnected",(function(e){t.updateStyle()}));var n=document.createElement("template");n.innerHTML=e,window.ShadyCSS&&window.ShadyCSS.prepareTemplate(n,this.tagName.toLowerCase());var r=document.importNode(n.content,!0);return window.ShadyCSS&&(window.ShadyCSS.styleElement(this),this.removeDoubleStyleElements()),r}},{key:"createProjector",value:function(e,t){var n=this;return new Promise((function(r,o){var i;setTimeout((function(){(i=R()).append(e,t),n._projector=i,r(i),n.dispatchEvent(new CustomEvent("firstRender",{}))}),1)}))}},{key:"getNewProjectorInstance",value:function(){return R()}},{key:"renderNow",value:function(){this._projector&&this._projector.renderNow()}}])&&P(n.prototype,r),o&&P(n,o),t}(I(HTMLElement))},29:function(e,t,n){"use strict";function r(e,t){Reflect.get(e,"_dp_"+t)||Reflect.defineProperty(e,"_dp_"+t,{configurable:!0,enumerable:!0,get:function(){return this["_"+t+"_value"]},set:function(e){this["_"+t+"_value"]=e}}),e["_dp_setters_"+t]||(e["_dp_setters_"+t]=[]);e["_dp_setters_"+t].push((function(e,n){e&&e.getAttribute&&e.getAttribute(t)!==n&&e.setAttribute(t,n)}));Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return this["_"+t+"_value"]},set:function(n){var r=this;this["_dp_"+t]=n,e["_dp_setters_"+t]&&e["_dp_setters_"+t].forEach((function(e){e(r,n)}))}})}n.d(t,"a",(function(){return r}))},297:function(e,t,n){e.exports=n(298)},298:function(e,t,n){"use strict";n.r(t);var r=n(21),o=n(17),i=n(29),a=n(22),u=n(62);function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),y(r,e)})(e)}function l(e,t,n){return(l=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(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&y(o,n.prototype),o}).apply(null,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var g=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":b(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},w=function(e){function t(){var e;return s(this,t),(e=d(this,m(t).apply(this,arguments))).foo="foo",e.count=1,e.name="",e.onInput=function(t){e.name=t.target.value},e.onFooEvent=function(t){e.foo=t.detail.foo},e}return v(t,e),p(t,[{key:"init",value:function(){}},{key:"enterAnimation",value:function(e,t){u({targets:e,translateX:[{value:100,duration:1200},{value:0,duration:800}],rotate:"1turn",duration:3e3,loop:!1})}},{key:"exitAnimation",value:function(e,t,n){u({targets:e,translateX:[{value:100,duration:1200},{value:0,duration:800}],duration:3e3,opacity:0,loop:!1,complete:function(){t(e)}})}},{key:"countUpdateAnimation",value:function(e,t,n){u.timeline().add([{duration:300,targets:e,translateX:200,scale:1.9,easing:"easeOutExpo"},{duration:300,targets:e,translateX:0,scale:1,easing:"easeInExpo"}])}},{key:"render",value:function(){return h("div",{class:"xxx"},h("h1",{"data-title":this.name&&this.name.toLocaleUpperCase(),class:"title"},this.foo," ",this.name),h("p",{"data-count":this.count,updateAnimation:this.countUpdateAnimation},this.count),h("div",{id:"SlotContainer"},h("slot",null)),h("p",null,"Please enter your name (hint type ",h("em",null,h("strong",null,"Peter")),")",h("br",null),h("input",{type:"text",value:this.name,oninput:this.onInput})),h("p",null,h("a",{is:"super-a"},"Super a")),this.name&&this.name.toLowerCase&&this.name.toLowerCase().indexOf("peter")>-1?h("div",{key:"peter",afterRemoved:this.peterRemoved,afterCreate:this.peterCreate,class:"is-peter",enterAnimation:this.enterAnimation,exitAnimation:this.exitAnimation},h("p",null,"Hello Peter"),h("img",{class:"is-peter--image",src:"https://s-media-cache-ak0.pinimg.com/474x/ce/1d/07/ce1d07011c0afb8e0614a0ae42a8c861.jpg",height:"140"})):"")}},{key:"peterRemoved",value:function(){console.log("removed")}},{key:"peterCreate",value:function(){console.log("create")}},{key:"connectedCallback",value:function(){var e=this,t=n(126),r=this.templateFromString("\n <style>".concat(t,'</style>\n <div class="root"></div>\n '));this.shadowRoot.appendChild(r),this.createProjector(this.shadowRoot.querySelector(".root"),this.render.bind(this)),setInterval((function(){e.count++,e.renderNow()}),5e3),window.addEventListener("foo",this.onFooEvent)}},{key:"attributeChangedCallback",value:function(e,t,n){"name"===e&&(this.name=n)}}],[{key:"observedAttributes",get:function(){return["name"]}}]),t}(a.a);g([o.a,i.a],w.prototype,"foo",void 0),g([o.a,i.a],w.prototype,"name",void 0),w=g([Object(r.a)({tagName:"my-greetings"})],w);var E=function(e){function t(){return s(this,t),d(this,m(t).apply(this,arguments))}return v(t,e),p(t,[{key:"connectedCallback",value:function(){n(126);this.innerHTML='\n <div class="root">P-FOO</div>\n '}}]),t}(a.a);E=g([Object(r.a)({tagName:"p-foo"})],E);var T=function(e){function t(){var e;return s(this,t),(e=d(this,m(t).apply(this,arguments))).render=function(){var e=this;return h("div",null,h("h1",{onclick:function(t){console.log(e)}},"Foo bar"))},e}return v(t,e),p(t,[{key:"connectedCallback",value:function(){var e=n(299);this.initShadowRoot("<style>".concat(e,"</style>"),this.render)}}]),t}(a.a);T=g([Object(r.a)({tagName:"p-bar"})],T),window.PBar=T;var L=function(e){function t(){return s(this,t),d(this,m(t).apply(this,arguments))}return v(t,e),p(t,[{key:"connectedCallback",value:function(){this.classList.add("super"),this.style.color="red"}}]),t}(c(HTMLAnchorElement));window.customElements.define("super-a",L,{extends:"a"})},299:function(e,t,n){(e.exports=n(127)(!1)).push([e.i,":host{\r\n color: red;\r\n}\r\n",""])},50:function(e,t){e.exports=
2
- /*!
3
- ISC License
4
-
5
- Copyright (c) 2014-2018, Andrea Giammarchi, @WebReflection
6
-
7
- Permission to use, copy, modify, and/or distribute this software for any
8
- purpose with or without fee is hereby granted, provided that the above
9
- copyright notice and this permission notice appear in all copies.
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
- PERFORMANCE OF THIS SOFTWARE.
18
-
19
- */
20
- function(e,t){"use strict";var n=e.document,r=e.Object,o=function(e){var t,n,o,i,a=/^[A-Z]+[a-z]/,u=function(e,t){(t=t.toLowerCase())in c||(c[e]=(c[e]||[]).concat(t),c[t]=c[t.toUpperCase()]=e)},c=(r.create||r)(null),l={};for(n in e)for(i in e[n])for(o=e[n][i],c[i]=o,t=0;t<o.length;t++)c[o[t].toLowerCase()]=c[o[t].toUpperCase()]=i;return l.get=function(e){return"string"==typeof e?c[e]||(a.test(e)?[]:""):function(e){var t,n=[];for(t in c)e.test(t)&&n.push(t);return n}(e)},l.set=function(e,t){return a.test(e)?u(e,t):u(t,e),l},l}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof t&&(t={type:t||"auto"});var i,a,u,c,l,s,f,p,d,m="registerElement",h="__"+m+(1e5*e.Math.random()>>0),v="addEventListener",y="attached",b="Callback",g="detached",w="extends",E="attributeChanged"+b,T=y+b,L="connected"+b,M="disconnected"+b,S="created"+b,C=g+b,H="ADDITION",O="REMOVAL",N="DOMAttrModified",_="DOMContentLoaded",A="DOMSubtreeModified",x="<",k="=",R=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,j=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],P=[],D=[],I="",F=n.documentElement,U=P.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},V=r.prototype,q=V.hasOwnProperty,B=V.isPrototypeOf,X=r.defineProperty,z=[],Z=r.getOwnPropertyDescriptor,G=r.getOwnPropertyNames,Y=r.getPrototypeOf,K=r.setPrototypeOf,$=!!r.__proto__,J="__dreCEv1",Q=e.customElements,W=!/^force/.test(t.type)&&!!(Q&&Q.define&&Q.get&&Q.whenDefined),ee=r.create||r,te=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[U.call(t,e)]},set:function(r,o){(e=U.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},ne=e.Promise||function(e){var t=[],n=!1,r={catch:function(){return r},then:function(e){return t.push(e),n&&setTimeout(o,1),r}};function o(e){for(n=!0;t.length;)t.shift()(e)}return e(o),r},re=!1,oe=ee(null),ie=ee(null),ae=new te,ue=function(e){return e.toLowerCase()},ce=r.create||function e(t){return t?(e.prototype=t,new e):this},le=K||($?function(e,t){return e.__proto__=t,e}:G&&Z?function(){function e(e,t){for(var n,r=G(t),o=0,i=r.length;o<i;o++)n=r[o],q.call(e,n)||X(e,n,Z(t,n))}return function(t,n){do{e(t,n)}while((n=Y(n))&&!B.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),se=e.MutationObserver||e.WebKitMutationObserver,fe=e.HTMLAnchorElement,pe=(e.HTMLElement||e.Element||e.Node).prototype,de=!B.call(pe,F),me=de?function(e,t,n){return e[t]=n.value,e}:X,he=de?function(e){return 1===e.nodeType}:function(e){return B.call(pe,e)},ve=de&&[],ye=pe.attachShadow,be=pe.cloneNode,ge=pe.dispatchEvent,we=pe.getAttribute,Ee=pe.hasAttribute,Te=pe.removeAttribute,Le=pe.setAttribute,Me=n.createElement,Se=n.importNode,Ce=Me,He=se&&{attributes:!0,characterData:!0,attributeOldValue:!0},Oe=se||function(e){ke=!1,F.removeEventListener(N,Oe)},Ne=0,_e=m in n&&!/^force-all/.test(t.type),Ae=!0,xe=!1,ke=!0,Re=!0,je=!0;function Pe(){var e=i.splice(0,i.length);for(Ne=0;e.length;)e.shift().call(null,e.shift())}function De(e,t){for(var n=0,r=e.length;n<r;n++)Ye(e[n],t)}function Ie(e){return function(t){he(t)&&(Ye(t,e),I.length&&De(t.querySelectorAll(I),e))}}function Fe(e){var t=we.call(e,"is"),n=e.nodeName.toUpperCase(),r=U.call(P,t?k+t.toUpperCase():x+n);return t&&-1<r&&!Ue(n,t)?-1:r}function Ue(e,t){return-1<I.indexOf(e+'[is="'+t+'"]')}function Ve(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,i=e[H]||2,a=e[O]||3;!je||o&&o!==t||!t[E]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==i&&n!==a)||t[E](r,n===i?null:e.prevValue,n===a?null:e.newValue)}function qe(e){var t=Ie(e);return function(e){i.push(t,e.target),Ne&&clearTimeout(Ne),Ne=setTimeout(Pe,1)}}function Be(e){Re&&(Re=!1,e.currentTarget.removeEventListener(_,Be)),I.length&&De((e.target||n).querySelectorAll(I),e.detail===g?g:y),de&&function(){for(var e,t=0,n=ve.length;t<n;t++)e=ve[t],F.contains(e)||(n--,ve.splice(t--,1),Ye(e,g))}()}function Xe(e,t){Le.call(this,e,t),a.call(this,{target:this})}function ze(e,t,n){var r=t.apply(e,n),o=Fe(r);return-1<o&&p(r,D[o]),n.pop()&&I.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)t=e[n],p(t,D[Fe(t)])}(r.querySelectorAll(I)),r}function Ze(e,t){le(e,t),l?l.observe(e,He):(ke&&(e.setAttribute=Xe,e[h]=c(e),e[v](A,a)),e[v](N,Ve)),e[S]&&je&&(e.created=!0,e[S](),e.created=!1)}function Ge(e){throw new Error("A "+e+" type is already registered")}function Ye(e,t){var n,r,o=Fe(e);-1<o&&(f(e,D[o]),o=0,t!==y||e[y]?t!==g||e[g]||(e[y]=!1,e[g]=!0,r="disconnected",o=1):(e[g]=!1,e[y]=!0,r="connected",o=1,de&&U.call(ve,e)<0&&ve.push(e)),o&&(n=e[t+b]||e[r+b])&&n.call(e))}function Ke(){}function $e(e,t,r){var o=r&&r[w]||"",i=t.prototype,a=ce(i),u=t.observedAttributes||z,c={prototype:a};me(a,S,{value:function(){if(re)re=!1;else if(!this[J]){this[J]=!0,new t(this),i[S]&&i[S].call(this);var e=oe[ae.get(t)];(!W||e.create.length>1)&&We(this)}}}),me(a,E,{value:function(e){-1<U.call(u,e)&&i[E]&&i[E].apply(this,arguments)}}),i[L]&&me(a,T,{value:i[L]}),i[M]&&me(a,C,{value:i[M]}),o&&(c[w]=o),e=e.toUpperCase(),oe[e]={constructor:t,create:o?[o,ue(e)]:[e]},ae.set(t,e),n[m](e.toLowerCase(),c),et(e),ie[e].r()}function Je(e){var t=oe[e.toUpperCase()];return t&&t.constructor}function Qe(e){return"string"==typeof e?e:e&&e.is||""}function We(e){for(var t,n=e[E],r=n?e.attributes:z,o=r.length;o--;)t=r[o],n.call(e,t.name||t.nodeName,null,t.value||t.nodeValue)}function et(e){return(e=e.toUpperCase())in ie||(ie[e]={},ie[e].p=new ne((function(t){ie[e].r=t}))),ie[e].p}function tt(){Q&&delete e.customElements,X(e,"customElements",{configurable:!0,value:new Ke}),X(e,"CustomElementRegistry",{configurable:!0,value:Ke});for(var t=function(t){var r=e[t];if(r){e[t]=function(e){var t,o;return e||(e=this),e[J]||(re=!0,t=oe[ae.get(e.constructor)],(e=(o=W&&1===t.create.length)?Reflect.construct(r,z,t.constructor):n.createElement.apply(n,t.create))[J]=!0,re=!1,o||We(e)),e},e[t].prototype=r.prototype;try{r.prototype.constructor=e[t]}catch(n){!0,X(r,J,{value:e[t]})}}},r=o.get(/^HTML[A-Z]*[a-z]/),i=r.length;i--;t(r[i]));n.createElement=function(e,t){var n=Qe(t);return n?Ce.call(this,e,ue(n)):Ce.call(this,e)},_e||(xe=!0,n[m](""))}if(se&&((d=n.createElement("div")).innerHTML="<div><div></div></div>",new se((function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(d=Z(pe,"innerHTML"))&&d.set;n&&X(pe,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),d=null})).observe(d,{childList:!0,subtree:!0}),d.innerHTML=""),_e||(K||$?(f=function(e,t){B.call(t,e)||Ze(e,t)},p=Ze):p=f=function(e,t){e[h]||(e[h]=r(!0),Ze(e,t))},de?(ke=!1,function(){var e=Z(pe,v),t=e.value,n=function(e){var t=new CustomEvent(N,{bubbles:!0});t.attrName=e,t.prevValue=we.call(this,e),t.newValue=null,t[O]=t.attrChange=2,Te.call(this,e),ge.call(this,t)},r=function(e,t){var n=Ee.call(this,e),r=n&&we.call(this,e),o=new CustomEvent(N,{bubbles:!0});Le.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o.MODIFICATION=o.attrChange=1:o[H]=o.attrChange=0,ge.call(this,o)},o=function(e){var t,n=e.currentTarget,r=n[h],o=e.propertyName;r.hasOwnProperty(o)&&(r=r[o],(t=new CustomEvent(N,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t[H]=t.attrChange=0:t.MODIFICATION=t.attrChange=1,ge.call(n,t))};e.value=function(e,i,a){e===N&&this[E]&&this.setAttribute!==r&&(this[h]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,e,i,a)},X(pe,v,e)}()):se||(F[v](N,Oe),F.setAttribute(h,1),F.removeAttribute(h),ke&&(a=function(e){var t,n,r;if(this===e.target){for(r in t=this[h],this[h]=n=c(this),n){if(!(r in t))return u(0,this,r,t[r],n[r],H);if(n[r]!==t[r])return u(1,this,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return u(2,this,r,t[r],n[r],O)}},u=function(e,t,n,r,o,i){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};a[i]=e,Ve(a)},c=function(e){for(var t,n,r={},o=e.attributes,i=0,a=o.length;i<a;i++)"setAttribute"!==(n=(t=o[i]).name)&&(r[n]=t.value);return r})),n[m]=function(e,t){if(r=e.toUpperCase(),Ae&&(Ae=!1,se?(l=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new se((function(r){for(var o,i,a,u=0,c=r.length;u<c;u++)"childList"===(o=r[u]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(i=o.target,je&&i[E]&&"style"!==o.attributeName&&(a=we.call(i,o.attributeName))!==o.oldValue&&i[E](o.attributeName,o.oldValue,a))}))}(Ie(y),Ie(g)),(s=function(e){return l.observe(e,{childList:!0,subtree:!0}),e})(n),ye&&(pe.attachShadow=function(){return s(ye.apply(this,arguments))})):(i=[],n[v]("DOMNodeInserted",qe(y)),n[v]("DOMNodeRemoved",qe(g))),n[v](_,Be),n[v]("readystatechange",Be),n.importNode=function(e,t){switch(e.nodeType){case 1:return ze(n,Se,[e,!!t]);case 11:for(var r=n.createDocumentFragment(),o=e.childNodes,i=o.length,a=0;a<i;a++)r.appendChild(n.importNode(o[a],!!t));return r;default:return be.call(e,!!t)}},pe.cloneNode=function(e){return ze(this,be,[!!e])}),xe)return xe=!1;if(-2<U.call(P,k+r)+U.call(P,x+r)&&Ge(e),!R.test(r)||-1<U.call(j,r))throw new Error("The type "+e+" is invalid");var r,o,a=function(){return c?n.createElement(f,r):n.createElement(f)},u=t||V,c=q.call(u,w),f=c?t[w].toUpperCase():r;return c&&-1<U.call(P,x+f)&&Ge(f),o=P.push((c?k:x)+r)-1,I=I.concat(I.length?",":"",c?f+'[is="'+e.toLowerCase()+'"]':f),a.prototype=D[o]=q.call(u,"prototype")?u.prototype:ce(pe),I.length&&De(n.querySelectorAll(I),y),a},n.createElement=Ce=function(e,t){var r=Qe(t),o=r?Me.call(n,e,ue(r)):Me.call(n,e),i=""+e,a=U.call(P,(r?k:x)+(r||i).toUpperCase()),u=-1<a;return r&&(o.setAttribute("is",r=r.toLowerCase()),u&&(u=Ue(i.toUpperCase(),r))),je=!n.createElement.innerHTMLHelper,u&&p(o,D[a]),o}),Ke.prototype={constructor:Ke,define:W?function(e,t,n){if(n)$e(e,t,n);else{var r=e.toUpperCase();oe[r]={constructor:t,create:[r]},ae.set(t,r),Q.define(e,t)}}:$e,get:W?function(e){return Q.get(e)||Je(e)}:Je,whenDefined:W?function(e){return ne.race([Q.whenDefined(e),et(e)])}:et},!Q||/^force/.test(t.type))tt();else if(!t.noBuiltIn)try{!function(t,r,o){var i=new RegExp("^<a\\s+is=('|\")"+o+"\\1></a>$");if(r[w]="a",(t.prototype=ce(fe.prototype)).constructor=t,e.customElements.define(o,t,r),!i.test(n.createElement("a",{is:o}).outerHTML)||!i.test((new t).outerHTML))throw r}((function e(){return Reflect.construct(fe,[],e)}),{},"document-register-element-a")}catch(e){tt()}if(!t.noBuiltIn)try{if(Me.call(n,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(e){ue=function(e){return{is:e.toLowerCase()}}}}},62:function(e,t){e.exports=anime}});