p-elements-core 1.2.4 → 1.2.5
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.
package/demo/sample.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! P-ELEMENTS 1.2.4 - Tue Sep 26 2023 15:44:42 GMT+0200 (Central European Summer Time) */(()=>{var e={277:function(e,t,n){var r,o,a,i={scope:{}};i.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},i.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==n.g&&null!=n.g?n.g:e},i.global=i.getGlobal(this),i.SYMBOL_PREFIX="jscomp_symbol_",i.initSymbol=function(){i.initSymbol=function(){},i.global.Symbol||(i.global.Symbol=i.Symbol)},i.symbolCounter_=0,i.Symbol=function(e){return i.SYMBOL_PREFIX+(e||"")+i.symbolCounter_++},i.initSymbolIterator=function(){i.initSymbol();var e=i.global.Symbol.iterator;e||(e=i.global.Symbol.iterator=i.global.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&i.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return i.arrayIterator(this)}}),i.initSymbolIterator=function(){}},i.arrayIterator=function(e){var t=0;return i.iteratorPrototype((function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}))},i.iteratorPrototype=function(e){return i.initSymbolIterator(),(e={next:e})[i.global.Symbol.iterator]=function(){return this},e},i.array=i.array||{},i.iteratorFromArray=function(e,t){i.initSymbolIterator(),e instanceof String&&(e+="");var n=0,r={next:function(){if(n<e.length){var o=n++;return{value:t(o,e[o]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},i.polyfill=function(e,t,n,r){if(t){for(n=i.global,e=e.split("."),r=0;r<e.length-1;r++){var o=e[r];o in n||(n[o]={}),n=n[o]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&i.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},i.polyfill("Array.prototype.keys",(function(e){return e||function(){return i.iteratorFromArray(this,(function(e){return e}))}}),"es6-impl","es3");var u=this;o=[],r=function(){function e(e){if(!F.col(e))try{return document.querySelectorAll(e)}catch(e){}}function t(e,t){for(var n=e.length,r=2<=arguments.length?arguments[1]:void 0,o=[],a=0;a<n;a++)if(a in e){var i=e[a];t.call(r,i,a,e)&&o.push(i)}return o}function n(e){return e.reduce((function(e,t){return e.concat(F.arr(t)?n(t):t)}),[])}function r(t){return F.arr(t)?t:(F.str(t)&&(t=e(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function o(e,t){return e.some((function(e){return e===t}))}function a(e){var t,n={};for(t in e)n[t]=e[t];return n}function i(e,t){var n,r=a(e);for(n in e)r[n]=t.hasOwnProperty(n)?t[n]:e[n];return r}function l(e,t){var n,r=a(e);for(n in t)r[n]=F.und(e[n])?t[n]:e[n];return r}function c(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+(e=parseInt(t[1],16))+","+parseInt(t[2],16)+","+(t=parseInt(t[3],16))+",1)"}function s(e){function t(e,t,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:.5>n?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e);e=parseInt(n[1])/360;var r=parseInt(n[2])/100,o=parseInt(n[3])/100;if(n=n[4]||1,0==r)o=r=e=o;else{var a=.5>o?o*(1+r):o+r-o*r,i=2*o-a;o=t(i,a,e+1/3),r=t(i,a,e),e=t(i,a,e-1/3)}return"rgba("+255*o+","+255*r+","+255*e+","+n+")"}function f(e){if(e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e))return e[2]}function p(e){return-1<e.indexOf("translate")||"perspective"===e?"px":-1<e.indexOf("rotate")||-1<e.indexOf("skew")?"deg":void 0}function d(e,t){return F.fnc(e)?e(t.target,t.id,t.total):e}function m(e,t){if(t in e.style)return getComputedStyle(e).getPropertyValue(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function h(e,t){return F.dom(e)&&o(I,t)?"transform":F.dom(e)&&(e.getAttribute(t)||F.svg(e)&&e[t])?"attribute":F.dom(e)&&"transform"!==t&&m(e,t)?"css":null!=e[t]?"object":void 0}function y(e,n){var r=p(n);if(r=-1<n.indexOf("scale")?1:0+r,!(e=e.style.transform))return r;for(var o=[],a=[],i=[],u=/(\w+)\((.+?)\)/g;o=u.exec(e);)a.push(o[1]),i.push(o[2]);return e=t(i,(function(e,t){return a[t]===n})),e.length?e[0]:r}function v(e,t){switch(h(e,t)){case"transform":return y(e,t);case"css":return m(e,t);case"attribute":return e.getAttribute(t)}return e[t]||0}function g(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=f(e)||0;switch(t=parseFloat(t),e=parseFloat(e.replace(n[0],"")),n[0][0]){case"+":return t+e+r;case"-":return t-e+r;case"*":return t*e+r}}function b(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function w(e){e=e.points;for(var t,n=0,r=0;r<e.numberOfItems;r++){var o=e.getItem(r);0<r&&(n+=b(t,o)),t=o}return n}function M(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*e.getAttribute("r");case"rect":return 2*e.getAttribute("width")+2*e.getAttribute("height");case"line":return b({x:e.getAttribute("x1"),y:e.getAttribute("y1")},{x:e.getAttribute("x2"),y:e.getAttribute("y2")});case"polyline":return w(e);case"polygon":var t=e.points;return w(e)+b(t.getItem(t.numberOfItems-1),t.getItem(0))}}function L(e,t){function n(n){return n=void 0===n?0:n,e.el.getPointAtLength(1<=t+n?t+n:0)}var r=n(),o=n(-1),a=n(1);switch(e.property){case"x":return r.x;case"y":return r.y;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function T(e,t){var n,r=/-?\d*\.?\d+/g;if(n=F.pth(e)?e.totalLength:e,F.col(n))if(F.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=F.hex(n)?c(n):F.hsl(n)?s(n):void 0;else o=(o=f(n))?n.substr(0,n.length-o.length):n,n=t&&!/\s/g.test(n)?o+t:o;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:F.str(e)||t?n.split(r):[]}}function E(e){return t(e=e?n(F.arr(e)?e.map(r):r(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function S(e){var t=E(e);return t.map((function(e,n){return{target:e,id:n,total:t.length}}))}function H(e,t){var n=a(t);if(F.arr(e)){var o=e.length;2!==o||F.obj(e[0])?F.fnc(t.duration)||(n.duration=t.duration/o):e={value:e}}return r(e).map((function(e,n){return n=n?0:t.delay,e=F.obj(e)&&!F.pth(e)?e:{value:e},F.und(e.delay)&&(e.delay=n),e})).map((function(e){return l(e,n)}))}function A(e,t){var n,r={};for(n in e){var o=d(e[n],t);F.arr(o)&&(o=o.map((function(e){return d(e,t)})),1===o.length&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function O(e){return F.arr(e)?D.apply(this,e):U[e]}function C(e,t){var n;return e.tweens.map((function(r){var o=(r=A(r,t)).value,a=v(t.target,e.name),i=n?n.to.original:a,u=(i=F.arr(o)?o[0]:i,g(F.arr(o)?o[1]:o,i));return a=f(u)||f(i)||f(a),r.from=T(i,a),r.to=T(u,a),r.start=n?n.end:e.offset,r.end=r.start+r.delay+r.duration,r.easing=O(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=F.pth(o),r.isColor=F.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function x(e,r){return t(n(e.map((function(e){return r.map((function(t){var n=h(e.target,t.name);if(n){var r=C(t,e);t={type:n,property:t.name,animatable:e,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else t=void 0;return t}))}))),(function(e){return!F.und(e)}))}function _(e,t,n,r){var o="delay"===e;return t.length?(o?Math.min:Math.max).apply(Math,t.map((function(t){return t[e]}))):o?r.delay:n.offset+r.delay+r.duration}function P(e){var t,n=i(N,e),r=i(R,e),o=S(e.targets),a=[],u=l(n,r);for(t in e)u.hasOwnProperty(t)||"targets"===t||a.push({name:t,offset:u.offset,tweens:H(e[t],r)});return l(n,{children:[],animatables:o,animations:e=x(o,a),duration:_("duration",e,n,r),delay:_("delay",e,n,r)})}function k(e){function n(){return window.Promise&&new Promise((function(e){return f=e}))}function r(e){return d.reversed?d.duration-e:e}function o(e){for(var n=0,r={},o=d.animations,a=o.length;n<a;){var i=o[n],u=i.animatable,l=(c=i.tweens)[p=c.length-1];p&&(l=t(c,(function(t){return e<t.end}))[0]||l);for(var c=Math.min(Math.max(e-l.start-l.delay,0),l.duration)/l.duration,s=isNaN(c)?1:l.easing(c,l.elasticity),f=(c=l.to.strings,l.round),p=[],h=void 0,y=(h=l.to.numbers.length,0);y<h;y++){var v=void 0,g=(v=l.to.numbers[y],l.from.numbers[y]);v=l.isPath?L(l.value,s*v):g+s*(v-g),f&&(l.isColor&&2<y||(v=Math.round(v*f)/f)),p.push(v)}if(l=c.length)for(h=c[0],s=0;s<l;s++)f=c[s+1],y=p[s],isNaN(y)||(h=f?h+(y+f):h+(y+" "));else h=p[0];V[i.type](u.target,i.property,h,r,u.id),i.currentValue=h,n++}if(n=Object.keys(r).length)for(o=0;o<n;o++)j||(j=m(document.body,"transform")?"transform":"-webkit-transform"),d.animatables[o].target.style[j]=r[o].join(" ");d.currentTime=e,d.progress=e/d.duration*100}function a(e){d[e]&&d[e](d)}function i(){d.remaining&&!0!==d.remaining&&d.remaining--}function u(e){var t=d.duration,u=d.offset,m=u+d.delay,h=d.currentTime,y=d.reversed,v=r(e);if(d.children.length){var g=d.children,b=g.length;if(v>=d.currentTime)for(var w=0;w<b;w++)g[w].seek(v);else for(;b--;)g[b].seek(v)}(v>=m||!t)&&(d.began||(d.began=!0,a("begin")),a("run")),v>u&&v<t?o(v):(v<=u&&0!==h&&(o(0),y&&i()),(v>=t&&h!==t||!t)&&(o(t),y||i())),a("update"),e>=t&&(d.remaining?(c=l,"alternate"===d.direction&&(d.reversed=!d.reversed)):(d.pause(),d.completed||(d.completed=!0,a("complete"),"Promise"in window&&(f(),p=n()))),s=0)}e=void 0===e?{}:e;var l,c,s=0,f=null,p=n(),d=P(e);return d.reset=function(){var e=d.direction,t=d.loop;for(d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.completed=!1,d.reversed="reverse"===e,d.remaining="alternate"===e&&1===t?2:t,o(0),e=d.children.length;e--;)d.children[e].reset()},d.tick=function(e){l=e,c||(c=l),u((s+l-c)*k.speed)},d.seek=function(e){u(r(e))},d.pause=function(){var e=q.indexOf(d);-1<e&&q.splice(e,1),d.paused=!0},d.play=function(){d.paused&&(d.paused=!1,c=0,s=r(d.currentTime),q.push(d),B||X())},d.reverse=function(){d.reversed=!d.reversed,c=0,s=r(d.currentTime)},d.restart=function(){d.pause(),d.reset(),d.play()},d.finished=p,d.reset(),d.autoplay&&d.play(),d}var j,N={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},R={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},I="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),F={arr:function(e){return Array.isArray(e)},obj:function(e){return-1<Object.prototype.toString.call(e).indexOf("Object")},pth:function(e){return F.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},dom:function(e){return e.nodeType||F.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return F.hex(e)||F.rgb(e)||F.hsl(e)}},D=function(){function e(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}return function(t,n,r,o){if(0<=t&&1>=t&&0<=r&&1>=r){var a=new Float32Array(11);if(t!==n||r!==o)for(var i=0;11>i;++i)a[i]=e(.1*i,t,r);return function(i){if(t===n&&r===o)return i;if(0===i)return 0;if(1===i)return 1;for(var u=0,l=1;10!==l&&a[l]<=i;++l)u+=.1;--l,l=u+(i-a[l])/(a[l+1]-a[l])*.1;var c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t;if(.001<=c){for(u=0;4>u&&0!=(c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t);++u){var s=e(l,t,r)-i;l-=s/c}i=l}else if(0===c)i=l;else{l=u,u+=.1;var f=0;do{0<(c=e(s=l+(u-l)/2,t,r)-i)?u=s:l=s}while(1e-7<Math.abs(c)&&10>++f);i=s}return e(i,n,o)}}}}(),U=function(){function e(e,t){return 0===e||1===e?e:-Math.pow(2,10*(e-1))*Math.sin(2*(e-1-t/(2*Math.PI)*Math.asin(1))*Math.PI/t)}var t,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],e],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,n){return 1-e(1-t,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,n){return.5>t?e(2*t,n)/2:1-e(-2*t+2,n)/2}]},o={linear:D(.25,.25,.75,.75)},a={};for(t in r)a.type=t,r[a.type].forEach(function(e){return function(t,r){o["ease"+e.type+n[r]]=F.fnc(t)?t:D.apply(u,t)}}(a)),a={type:a.type};return o}(),V={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,o){r[o]||(r[o]=[]),r[o].push(t+"("+n+")")}},q=[],B=0,X=function(){function e(){B=requestAnimationFrame(t)}function t(t){var n=q.length;if(n){for(var r=0;r<n;)q[r]&&q[r].tick(t),r++;e()}else cancelAnimationFrame(B),B=0}return e}();return k.version="2.2.0",k.speed=1,k.running=q,k.remove=function(e){e=E(e);for(var t=q.length;t--;)for(var n=q[t],r=n.animations,a=r.length;a--;)o(e,r[a].animatable.target)&&(r.splice(a,1),r.length||n.pause())},k.getValue=v,k.path=function(t,n){var r=F.str(t)?e(t)[0]:t,o=n||100;return function(e){return{el:r,property:e,totalLength:M(r)*(o/100)}}},k.setDashoffset=function(e){var t=M(e);return e.setAttribute("stroke-dasharray",t),t},k.bezier=D,k.easings=U,k.timeline=function(e){var t=k(e);return t.pause(),t.duration=0,t.add=function(n){return t.children.forEach((function(e){e.began=!0,e.completed=!0})),r(n).forEach((function(n){var r=l(n,i(R,e||{}));r.targets=r.targets||e.targets,n=t.duration;var o=r.offset;r.autoplay=!1,r.direction=t.direction,r.offset=F.und(o)?n:g(o,n),t.began=!0,t.completed=!0,t.seek(r.offset),(r=k(r)).began=!0,r.completed=!0,r.duration>n&&(t.duration=r.duration),t.children.push(r)})),t.seek(0),t.reset(),t.autoplay&&t.restart(),t},t},k.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},k},void 0===(a="function"==typeof r?r.apply(t,o):r)||(e.exports=a)},425:e=>{e.exports=
|
|
1
|
+
/*! P-ELEMENTS 1.2.5 - Thu Nov 30 2023 20:53:26 GMT+0100 (Central European Standard Time) */(()=>{var e={277:function(e,t,n){var r,o,a,i={scope:{}};i.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},i.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==n.g&&null!=n.g?n.g:e},i.global=i.getGlobal(this),i.SYMBOL_PREFIX="jscomp_symbol_",i.initSymbol=function(){i.initSymbol=function(){},i.global.Symbol||(i.global.Symbol=i.Symbol)},i.symbolCounter_=0,i.Symbol=function(e){return i.SYMBOL_PREFIX+(e||"")+i.symbolCounter_++},i.initSymbolIterator=function(){i.initSymbol();var e=i.global.Symbol.iterator;e||(e=i.global.Symbol.iterator=i.global.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&i.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return i.arrayIterator(this)}}),i.initSymbolIterator=function(){}},i.arrayIterator=function(e){var t=0;return i.iteratorPrototype((function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}))},i.iteratorPrototype=function(e){return i.initSymbolIterator(),(e={next:e})[i.global.Symbol.iterator]=function(){return this},e},i.array=i.array||{},i.iteratorFromArray=function(e,t){i.initSymbolIterator(),e instanceof String&&(e+="");var n=0,r={next:function(){if(n<e.length){var o=n++;return{value:t(o,e[o]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},i.polyfill=function(e,t,n,r){if(t){for(n=i.global,e=e.split("."),r=0;r<e.length-1;r++){var o=e[r];o in n||(n[o]={}),n=n[o]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&i.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},i.polyfill("Array.prototype.keys",(function(e){return e||function(){return i.iteratorFromArray(this,(function(e){return e}))}}),"es6-impl","es3");var u=this;o=[],r=function(){function e(e){if(!F.col(e))try{return document.querySelectorAll(e)}catch(e){}}function t(e,t){for(var n=e.length,r=2<=arguments.length?arguments[1]:void 0,o=[],a=0;a<n;a++)if(a in e){var i=e[a];t.call(r,i,a,e)&&o.push(i)}return o}function n(e){return e.reduce((function(e,t){return e.concat(F.arr(t)?n(t):t)}),[])}function r(t){return F.arr(t)?t:(F.str(t)&&(t=e(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function o(e,t){return e.some((function(e){return e===t}))}function a(e){var t,n={};for(t in e)n[t]=e[t];return n}function i(e,t){var n,r=a(e);for(n in e)r[n]=t.hasOwnProperty(n)?t[n]:e[n];return r}function l(e,t){var n,r=a(e);for(n in t)r[n]=F.und(e[n])?t[n]:e[n];return r}function c(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+(e=parseInt(t[1],16))+","+parseInt(t[2],16)+","+(t=parseInt(t[3],16))+",1)"}function s(e){function t(e,t,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:.5>n?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e);e=parseInt(n[1])/360;var r=parseInt(n[2])/100,o=parseInt(n[3])/100;if(n=n[4]||1,0==r)o=r=e=o;else{var a=.5>o?o*(1+r):o+r-o*r,i=2*o-a;o=t(i,a,e+1/3),r=t(i,a,e),e=t(i,a,e-1/3)}return"rgba("+255*o+","+255*r+","+255*e+","+n+")"}function f(e){if(e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e))return e[2]}function p(e){return-1<e.indexOf("translate")||"perspective"===e?"px":-1<e.indexOf("rotate")||-1<e.indexOf("skew")?"deg":void 0}function d(e,t){return F.fnc(e)?e(t.target,t.id,t.total):e}function m(e,t){if(t in e.style)return getComputedStyle(e).getPropertyValue(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function h(e,t){return F.dom(e)&&o(I,t)?"transform":F.dom(e)&&(e.getAttribute(t)||F.svg(e)&&e[t])?"attribute":F.dom(e)&&"transform"!==t&&m(e,t)?"css":null!=e[t]?"object":void 0}function y(e,n){var r=p(n);if(r=-1<n.indexOf("scale")?1:0+r,!(e=e.style.transform))return r;for(var o=[],a=[],i=[],u=/(\w+)\((.+?)\)/g;o=u.exec(e);)a.push(o[1]),i.push(o[2]);return e=t(i,(function(e,t){return a[t]===n})),e.length?e[0]:r}function v(e,t){switch(h(e,t)){case"transform":return y(e,t);case"css":return m(e,t);case"attribute":return e.getAttribute(t)}return e[t]||0}function g(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=f(e)||0;switch(t=parseFloat(t),e=parseFloat(e.replace(n[0],"")),n[0][0]){case"+":return t+e+r;case"-":return t-e+r;case"*":return t*e+r}}function b(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function w(e){e=e.points;for(var t,n=0,r=0;r<e.numberOfItems;r++){var o=e.getItem(r);0<r&&(n+=b(t,o)),t=o}return n}function M(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*e.getAttribute("r");case"rect":return 2*e.getAttribute("width")+2*e.getAttribute("height");case"line":return b({x:e.getAttribute("x1"),y:e.getAttribute("y1")},{x:e.getAttribute("x2"),y:e.getAttribute("y2")});case"polyline":return w(e);case"polygon":var t=e.points;return w(e)+b(t.getItem(t.numberOfItems-1),t.getItem(0))}}function L(e,t){function n(n){return n=void 0===n?0:n,e.el.getPointAtLength(1<=t+n?t+n:0)}var r=n(),o=n(-1),a=n(1);switch(e.property){case"x":return r.x;case"y":return r.y;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function T(e,t){var n,r=/-?\d*\.?\d+/g;if(n=F.pth(e)?e.totalLength:e,F.col(n))if(F.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=F.hex(n)?c(n):F.hsl(n)?s(n):void 0;else o=(o=f(n))?n.substr(0,n.length-o.length):n,n=t&&!/\s/g.test(n)?o+t:o;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:F.str(e)||t?n.split(r):[]}}function E(e){return t(e=e?n(F.arr(e)?e.map(r):r(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function S(e){var t=E(e);return t.map((function(e,n){return{target:e,id:n,total:t.length}}))}function H(e,t){var n=a(t);if(F.arr(e)){var o=e.length;2!==o||F.obj(e[0])?F.fnc(t.duration)||(n.duration=t.duration/o):e={value:e}}return r(e).map((function(e,n){return n=n?0:t.delay,e=F.obj(e)&&!F.pth(e)?e:{value:e},F.und(e.delay)&&(e.delay=n),e})).map((function(e){return l(e,n)}))}function A(e,t){var n,r={};for(n in e){var o=d(e[n],t);F.arr(o)&&(o=o.map((function(e){return d(e,t)})),1===o.length&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function O(e){return F.arr(e)?D.apply(this,e):U[e]}function C(e,t){var n;return e.tweens.map((function(r){var o=(r=A(r,t)).value,a=v(t.target,e.name),i=n?n.to.original:a,u=(i=F.arr(o)?o[0]:i,g(F.arr(o)?o[1]:o,i));return a=f(u)||f(i)||f(a),r.from=T(i,a),r.to=T(u,a),r.start=n?n.end:e.offset,r.end=r.start+r.delay+r.duration,r.easing=O(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=F.pth(o),r.isColor=F.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function x(e,r){return t(n(e.map((function(e){return r.map((function(t){var n=h(e.target,t.name);if(n){var r=C(t,e);t={type:n,property:t.name,animatable:e,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else t=void 0;return t}))}))),(function(e){return!F.und(e)}))}function _(e,t,n,r){var o="delay"===e;return t.length?(o?Math.min:Math.max).apply(Math,t.map((function(t){return t[e]}))):o?r.delay:n.offset+r.delay+r.duration}function P(e){var t,n=i(N,e),r=i(R,e),o=S(e.targets),a=[],u=l(n,r);for(t in e)u.hasOwnProperty(t)||"targets"===t||a.push({name:t,offset:u.offset,tweens:H(e[t],r)});return l(n,{children:[],animatables:o,animations:e=x(o,a),duration:_("duration",e,n,r),delay:_("delay",e,n,r)})}function j(e){function n(){return window.Promise&&new Promise((function(e){return f=e}))}function r(e){return d.reversed?d.duration-e:e}function o(e){for(var n=0,r={},o=d.animations,a=o.length;n<a;){var i=o[n],u=i.animatable,l=(c=i.tweens)[p=c.length-1];p&&(l=t(c,(function(t){return e<t.end}))[0]||l);for(var c=Math.min(Math.max(e-l.start-l.delay,0),l.duration)/l.duration,s=isNaN(c)?1:l.easing(c,l.elasticity),f=(c=l.to.strings,l.round),p=[],h=void 0,y=(h=l.to.numbers.length,0);y<h;y++){var v=void 0,g=(v=l.to.numbers[y],l.from.numbers[y]);v=l.isPath?L(l.value,s*v):g+s*(v-g),f&&(l.isColor&&2<y||(v=Math.round(v*f)/f)),p.push(v)}if(l=c.length)for(h=c[0],s=0;s<l;s++)f=c[s+1],y=p[s],isNaN(y)||(h=f?h+(y+f):h+(y+" "));else h=p[0];V[i.type](u.target,i.property,h,r,u.id),i.currentValue=h,n++}if(n=Object.keys(r).length)for(o=0;o<n;o++)k||(k=m(document.body,"transform")?"transform":"-webkit-transform"),d.animatables[o].target.style[k]=r[o].join(" ");d.currentTime=e,d.progress=e/d.duration*100}function a(e){d[e]&&d[e](d)}function i(){d.remaining&&!0!==d.remaining&&d.remaining--}function u(e){var t=d.duration,u=d.offset,m=u+d.delay,h=d.currentTime,y=d.reversed,v=r(e);if(d.children.length){var g=d.children,b=g.length;if(v>=d.currentTime)for(var w=0;w<b;w++)g[w].seek(v);else for(;b--;)g[b].seek(v)}(v>=m||!t)&&(d.began||(d.began=!0,a("begin")),a("run")),v>u&&v<t?o(v):(v<=u&&0!==h&&(o(0),y&&i()),(v>=t&&h!==t||!t)&&(o(t),y||i())),a("update"),e>=t&&(d.remaining?(c=l,"alternate"===d.direction&&(d.reversed=!d.reversed)):(d.pause(),d.completed||(d.completed=!0,a("complete"),"Promise"in window&&(f(),p=n()))),s=0)}e=void 0===e?{}:e;var l,c,s=0,f=null,p=n(),d=P(e);return d.reset=function(){var e=d.direction,t=d.loop;for(d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.completed=!1,d.reversed="reverse"===e,d.remaining="alternate"===e&&1===t?2:t,o(0),e=d.children.length;e--;)d.children[e].reset()},d.tick=function(e){l=e,c||(c=l),u((s+l-c)*j.speed)},d.seek=function(e){u(r(e))},d.pause=function(){var e=q.indexOf(d);-1<e&&q.splice(e,1),d.paused=!0},d.play=function(){d.paused&&(d.paused=!1,c=0,s=r(d.currentTime),q.push(d),B||X())},d.reverse=function(){d.reversed=!d.reversed,c=0,s=r(d.currentTime)},d.restart=function(){d.pause(),d.reset(),d.play()},d.finished=p,d.reset(),d.autoplay&&d.play(),d}var k,N={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},R={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},I="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),F={arr:function(e){return Array.isArray(e)},obj:function(e){return-1<Object.prototype.toString.call(e).indexOf("Object")},pth:function(e){return F.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},dom:function(e){return e.nodeType||F.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return F.hex(e)||F.rgb(e)||F.hsl(e)}},D=function(){function e(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}return function(t,n,r,o){if(0<=t&&1>=t&&0<=r&&1>=r){var a=new Float32Array(11);if(t!==n||r!==o)for(var i=0;11>i;++i)a[i]=e(.1*i,t,r);return function(i){if(t===n&&r===o)return i;if(0===i)return 0;if(1===i)return 1;for(var u=0,l=1;10!==l&&a[l]<=i;++l)u+=.1;--l,l=u+(i-a[l])/(a[l+1]-a[l])*.1;var c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t;if(.001<=c){for(u=0;4>u&&0!=(c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t);++u){var s=e(l,t,r)-i;l-=s/c}i=l}else if(0===c)i=l;else{l=u,u+=.1;var f=0;do{0<(c=e(s=l+(u-l)/2,t,r)-i)?u=s:l=s}while(1e-7<Math.abs(c)&&10>++f);i=s}return e(i,n,o)}}}}(),U=function(){function e(e,t){return 0===e||1===e?e:-Math.pow(2,10*(e-1))*Math.sin(2*(e-1-t/(2*Math.PI)*Math.asin(1))*Math.PI/t)}var t,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],e],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,n){return 1-e(1-t,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,n){return.5>t?e(2*t,n)/2:1-e(-2*t+2,n)/2}]},o={linear:D(.25,.25,.75,.75)},a={};for(t in r)a.type=t,r[a.type].forEach(function(e){return function(t,r){o["ease"+e.type+n[r]]=F.fnc(t)?t:D.apply(u,t)}}(a)),a={type:a.type};return o}(),V={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,o){r[o]||(r[o]=[]),r[o].push(t+"("+n+")")}},q=[],B=0,X=function(){function e(){B=requestAnimationFrame(t)}function t(t){var n=q.length;if(n){for(var r=0;r<n;)q[r]&&q[r].tick(t),r++;e()}else cancelAnimationFrame(B),B=0}return e}();return j.version="2.2.0",j.speed=1,j.running=q,j.remove=function(e){e=E(e);for(var t=q.length;t--;)for(var n=q[t],r=n.animations,a=r.length;a--;)o(e,r[a].animatable.target)&&(r.splice(a,1),r.length||n.pause())},j.getValue=v,j.path=function(t,n){var r=F.str(t)?e(t)[0]:t,o=n||100;return function(e){return{el:r,property:e,totalLength:M(r)*(o/100)}}},j.setDashoffset=function(e){var t=M(e);return e.setAttribute("stroke-dasharray",t),t},j.bezier=D,j.easings=U,j.timeline=function(e){var t=j(e);return t.pause(),t.duration=0,t.add=function(n){return t.children.forEach((function(e){e.began=!0,e.completed=!0})),r(n).forEach((function(n){var r=l(n,i(R,e||{}));r.targets=r.targets||e.targets,n=t.duration;var o=r.offset;r.autoplay=!1,r.direction=t.direction,r.offset=F.und(o)?n:g(o,n),t.began=!0,t.completed=!0,t.seek(r.offset),(r=j(r)).began=!0,r.completed=!0,r.duration>n&&(t.duration=r.duration),t.children.push(r)})),t.seek(0),t.reset(),t.autoplay&&t.restart(),t},t},j.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},j},void 0===(a="function"==typeof r?r.apply(t,o):r)||(e.exports=a)},425:e=>{e.exports=
|
|
2
2
|
/*!
|
|
3
3
|
ISC License
|
|
4
4
|
|
|
@@ -17,4 +17,4 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
17
17
|
PERFORMANCE OF THIS SOFTWARE.
|
|
18
18
|
|
|
19
19
|
*/
|
|
20
|
-
function(e,t){"use strict";var n=e.document,r=e.Object,o=function(e){var t,n,o,a,i=/^[A-Z]+[a-z]/,u=function(e,t){(t=t.toLowerCase())in l||(l[e]=(l[e]||[]).concat(t),l[t]=l[t.toUpperCase()]=e)},l=(r.create||r)(null),c={};for(n in e)for(a in e[n])for(o=e[n][a],l[a]=o,t=0;t<o.length;t++)l[o[t].toLowerCase()]=l[o[t].toUpperCase()]=a;return c.get=function(e){return"string"==typeof e?l[e]||(i.test(e)?[]:""):function(e){var t,n=[];for(t in l)e.test(t)&&n.push(t);return n}(e)},c.set=function(e,t){return i.test(e)?u(e,t):u(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 a,i,u,l,c,s,f,p,d,m="registerElement",h="__"+m+(1e5*e.Math.random()>>0),y="addEventListener",v="attached",g="Callback",b="detached",w="extends",M="attributeChanged"+g,L=v+g,T="connected"+g,E="disconnected"+g,S="created"+g,H=b+g,A="ADDITION",O="MODIFICATION",C="REMOVAL",x="DOMAttrModified",_="DOMContentLoaded",P="<",k="=",j=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,N=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],R=[],I=[],F="",D=n.documentElement,U=R.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=r.getOwnPropertyDescriptor,Y=r.getOwnPropertyNames,z=r.getPrototypeOf,G=r.setPrototypeOf,Q=!!r.__proto__,W="__dreCEv1",K=e.customElements,J=!/^force/.test(t.type)&&!!(K&&K.define&&K.get&&K.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),ae=ee(null),ie=new te,ue=function(e){return e.toLowerCase()},le=r.create||function e(t){return t?(e.prototype=t,new e):this},ce=G||(Q?function(e,t){return e.__proto__=t,e}:Y&&Z?function(){function e(e,t){for(var n,r=Y(t),o=0,a=r.length;o<a;o++)n=r[o],q.call(e,n)||X(e,n,Z(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}),se=e.MutationObserver||e.WebKitMutationObserver,fe=e.HTMLAnchorElement,pe=(e.HTMLElement||e.Element||e.Node).prototype,de=!B.call(pe,D),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)},ye=de&&[],ve=pe.attachShadow,ge=pe.cloneNode,be=pe.dispatchEvent,we=pe.getAttribute,Me=pe.hasAttribute,Le=pe.removeAttribute,Te=pe.setAttribute,Ee=n.createElement,Se=n.importNode,He=Ee,Ae=se&&{attributes:!0,characterData:!0,attributeOldValue:!0},Oe=se||function(e){ke=!1,D.removeEventListener(x,Oe)},Ce=0,xe=m in n&&!/^force-all/.test(t.type),_e=!0,Pe=!1,ke=!0,je=!0,Ne=!0;function Re(){var e=a.splice(0,a.length);for(Ce=0;e.length;)e.shift().call(null,e.shift())}function Ie(e,t){for(var n=0,r=e.length;n<r;n++)ze(e[n],t)}function Fe(e){return function(t){he(t)&&(ze(t,e),F.length&&Ie(t.querySelectorAll(F),e))}}function De(e){var t=we.call(e,"is"),n=e.nodeName.toUpperCase(),r=U.call(R,t?k+t.toUpperCase():P+n);return t&&-1<r&&!Ue(n,t)?-1:r}function Ue(e,t){return-1<F.indexOf(e+'[is="'+t+'"]')}function Ve(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,a=e[A]||2,i=e[C]||3;!Ne||o&&o!==t||!t[M]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==a&&n!==i)||t[M](r,n===a?null:e.prevValue,n===i?null:e.newValue)}function qe(e){var t=Fe(e);return function(e){a.push(t,e.target),Ce&&clearTimeout(Ce),Ce=setTimeout(Re,1)}}function Be(e){je&&(je=!1,e.currentTarget.removeEventListener(_,Be)),F.length&&Ie((e.target||n).querySelectorAll(F),e.detail===b?b:v),de&&function(){for(var e,t=0,n=ye.length;t<n;t++)e=ye[t],D.contains(e)||(n--,ye.splice(t--,1),ze(e,b))}()}function Xe(e,t){var n=this;Te.call(n,e,t),i.call(n,{target:n})}function $e(e,t,n){var r=t.apply(e,n),o=De(r);return-1<o&&p(r,I[o]),n.pop()&&F.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)t=e[n],p(t,I[De(t)])}(r.querySelectorAll(F)),r}function Ze(e,t){ce(e,t),c?c.observe(e,Ae):(ke&&(e.setAttribute=Xe,e[h]=l(e),e[y]("DOMSubtreeModified",i)),e[y](x,Ve)),e[S]&&Ne&&(e.created=!0,e[S](),e.created=!1)}function Ye(e){throw new Error("A "+e+" type is already registered")}function ze(e,t){var n,r,o=De(e);-1<o&&(f(e,I[o]),o=0,t!==v||e[v]?t!==b||e[b]||(e[v]=!1,e[b]=!0,r="disconnected",o=1):(e[b]=!1,e[v]=!0,r="connected",o=1,de&&U.call(ye,e)<0&&ye.push(e)),o&&(n=e[t+g]||e[r+g])&&n.call(e))}function Ge(){}function Qe(e,t,r){var o=r&&r[w]||"",a=t.prototype,i=le(a),u=t.observedAttributes||$,l={prototype:i};me(i,S,{value:function(){if(re)re=!1;else if(!this[W]){this[W]=!0,new t(this),a[S]&&a[S].call(this);var e=oe[ie.get(t)];(!J||e.create.length>1)&&Je(this)}}}),me(i,M,{value:function(e){-1<U.call(u,e)&&a[M]&&a[M].apply(this,arguments)}}),a[T]&&me(i,L,{value:a[T]}),a[E]&&me(i,H,{value:a[E]}),o&&(l[w]=o),e=e.toUpperCase(),oe[e]={constructor:t,create:o?[o,ue(e)]:[e]},ie.set(t,e),n[m](e.toLowerCase(),l),et(e),ae[e].r()}function We(e){var t=oe[e.toUpperCase()];return t&&t.constructor}function Ke(e){return"string"==typeof e?e:e&&e.is||""}function Je(e){for(var t,n=e[M],r=n?e.attributes:$,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 ae||(ae[e]={},ae[e].p=new ne((function(t){ae[e].r=t}))),ae[e].p}function tt(){K&&delete e.customElements,X(e,"customElements",{configurable:!0,value:new Ge}),X(e,"CustomElementRegistry",{configurable:!0,value:Ge});for(var t=function(t){var r=e[t];if(r){e[t]=function(e){var t,o;return e||(e=this),e[W]||(re=!0,t=oe[ie.get(e.constructor)],(e=(o=J&&1===t.create.length)?Reflect.construct(r,$,t.constructor):n.createElement.apply(n,t.create))[W]=!0,re=!1,o||Je(e)),e},e[t].prototype=r.prototype;try{r.prototype.constructor=e[t]}catch(n){!0,X(r,W,{value:e[t]})}}},r=o.get(/^HTML[A-Z]*[a-z]/),a=r.length;a--;t(r[a]));n.createElement=function(e,t){var n=Ke(t);return n?He.call(this,e,ue(n)):He.call(this,e)},xe||(Pe=!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=""),xe||(G||Q?(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,y),t=e.value,n=function(e){var t=new CustomEvent(x,{bubbles:!0});t.attrName=e,t.prevValue=we.call(this,e),t.newValue=null,t[C]=t.attrChange=2,Le.call(this,e),be.call(this,t)},r=function(e,t){var n=Me.call(this,e),r=n&&we.call(this,e),o=new CustomEvent(x,{bubbles:!0});Te.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o[O]=o.attrChange=1:o[A]=o.attrChange=0,be.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(x,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t[A]=t.attrChange=0:t[O]=t.attrChange=1,be.call(n,t))};e.value=function(e,a,i){e===x&&this[M]&&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,a,i)},X(pe,y,e)}()):se||(D[y](x,Oe),D.setAttribute(h,1),D.removeAttribute(h),ke&&(i=function(e){var t,n,r,o=this;if(o===e.target){for(r in t=o[h],o[h]=n=l(o),n){if(!(r in t))return u(0,o,r,t[r],n[r],A);if(n[r]!==t[r])return u(1,o,r,t[r],n[r],O)}for(r in t)if(!(r in n))return u(2,o,r,t[r],n[r],C)}},u=function(e,t,n,r,o,a){var i={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};i[a]=e,Ve(i)},l=function(e){for(var t,n,r={},o=e.attributes,a=0,i=o.length;a<i;a++)"setAttribute"!==(n=(t=o[a]).name)&&(r[n]=t.value);return r})),n[m]=function(e,t){if(r=e.toUpperCase(),_e&&(_e=!1,se?(c=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,a,i,u=0,l=r.length;u<l;u++)"childList"===(o=r[u]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(a=o.target,Ne&&a[M]&&"style"!==o.attributeName&&(i=we.call(a,o.attributeName))!==o.oldValue&&a[M](o.attributeName,o.oldValue,i))}))}(Fe(v),Fe(b)),(s=function(e){return c.observe(e,{childList:!0,subtree:!0}),e})(n),ve&&(pe.attachShadow=function(){return s(ve.apply(this,arguments))})):(a=[],n[y]("DOMNodeInserted",qe(v)),n[y]("DOMNodeRemoved",qe(b))),n[y](_,Be),n[y]("readystatechange",Be),n.importNode=function(e,t){switch(e.nodeType){case 1:return $e(n,Se,[e,!!t]);case 11:for(var r=n.createDocumentFragment(),o=e.childNodes,a=o.length,i=0;i<a;i++)r.appendChild(n.importNode(o[i],!!t));return r;default:return ge.call(e,!!t)}},pe.cloneNode=function(e){return $e(this,ge,[!!e])}),Pe)return Pe=!1;if(-2<U.call(R,k+r)+U.call(R,P+r)&&Ye(e),!j.test(r)||-1<U.call(N,r))throw new Error("The type "+e+" is invalid");var r,o,i=function(){return l?n.createElement(f,r):n.createElement(f)},u=t||V,l=q.call(u,w),f=l?t[w].toUpperCase():r;return l&&-1<U.call(R,P+f)&&Ye(f),o=R.push((l?k:P)+r)-1,F=F.concat(F.length?",":"",l?f+'[is="'+e.toLowerCase()+'"]':f),i.prototype=I[o]=q.call(u,"prototype")?u.prototype:le(pe),F.length&&Ie(n.querySelectorAll(F),v),i},n.createElement=He=function(e,t){var r=Ke(t),o=r?Ee.call(n,e,ue(r)):Ee.call(n,e),a=""+e,i=U.call(R,(r?k:P)+(r||a).toUpperCase()),u=-1<i;return r&&(o.setAttribute("is",r=r.toLowerCase()),u&&(u=Ue(a.toUpperCase(),r))),Ne=!n.createElement.innerHTMLHelper,u&&p(o,I[i]),o}),Ge.prototype={constructor:Ge,define:J?function(e,t,n){if(n)Qe(e,t,n);else{var r=e.toUpperCase();oe[r]={constructor:t,create:[r]},ie.set(t,r),K.define(e,t)}}:Qe,get:J?function(e){return K.get(e)||We(e)}:We,whenDefined:J?function(e){return ne.race([K.whenDefined(e),et(e)])}:et},!K||/^force/.test(t.type))tt();else if(!t.noBuiltIn)try{!function(t,r,o){var a=new RegExp("^<a\\s+is=('|\")"+o+"\\1></a>$");if(r[w]="a",(t.prototype=le(fe.prototype)).constructor=t,e.customElements.define(o,t,r),!a.test(n.createElement("a",{is:o}).outerHTML)||!a.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(Ee.call(n,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(e){ue=function(e){return{is:e.toLowerCase()}}}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{"use strict";function e(t){return e="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(t)}function t(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(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 a(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}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 u(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)},i(e)}function u(e,t,n){return u=l()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&c(o,n.prototype),o},u.apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var f,p=function(e){return function(t){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}},d=function(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)}))}})},m=n(425);f=document.registerElement,/\{\s*\[native code\]\s*\}/.test(""+f)||m(window,"auto");var y,v,g=new Map,b=[],w=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(d,e);var n,r,i,u,f,p=(n=d,r=l(),function(){var e,t=s(n);if(r){var o=s(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return a(this,e)});function d(e){var t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),t=n=p.call(this,e),n._projector=void 0,n._projectorMode=void 0,e=t,n._callInitFunction(),n._initProjectorMode(),a(n,e)}return i=d,u=[{key:"_callInitFunction",value:function(){"function"==typeof this.init&&this.init()}},{key:"_initProjectorMode",value:function(){var e=this.constructor.projectorMode;this._projectorMode=e||"append"}},{key:"_supportsAdoptedStyleSheets",get:function(){return!(!document.adoptedStyleSheets||!CSSStyleSheet)}},{key:"_shadowRootAdoptMapStyle",value:function(e){var t=new CSSStyleSheet;t.replaceSync(!0===g.has(this.tagName)?g.get(this.tagName):e),this.shadowRoot.adoptedStyleSheets=[t]}},{key:"_shadowRootReplaceStyleWithLink",value:function(e,t,n){var r=new Blob([g.get(this.tagName)?g.get(this.tagName):n],{type:"text/css"});return e=e.replace(t,'<link rel="stylesheet" href="'.concat(URL.createObjectURL(r),'" data-tmp="true">'))}},{key:"templateFromString",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n&&!this.shadowRoot&&this.attachShadow({mode:"open"}),n?this.shadowRoot.innerHTML="":this.innerHTML="";var r="<style></style>",o=e.match(/<style[^>]*>([\s\S]*?)<\/style>/);o&&(r=o[0],n&&this._supportsAdoptedStyleSheets?(e=e.replace(o[0],""),this._shadowRootAdoptMapStyle(o[1])):n?e=this._shadowRootReplaceStyleWithLink(e,o[0],o[1]):(e=e.replace(o[0],""),this.adoptStyle(document,o[1])));var a=document.createElement("template");a.innerHTML=e;var i=document.importNode(a.content,!0),u=function(){if(g.has(t.tagName))return g.get(t.tagName);var e=document.createElement("template");e.innerHTML=r,window.ShadyCSS.prepareTemplate(e,"x-tmp");var n=e.content.cloneNode(!0).querySelector("style").textContent,o=new Blob([n],{type:"text/css"}),a=URL.createObjectURL(o);return g.set(t.tagName,a),a};return n&&(window.addEventListener("customStyleConnected",(function(){setTimeout((function(){if(o&&t._supportsAdoptedStyleSheets){e=e.replace(o[0],"");var n=new CSSStyleSheet,a=function(){if(g.has(t.tagName))return g.get(t.tagName);var e=document.createElement("template");e.innerHTML=r,window.ShadyCSS.prepareTemplate(e,"x-tmp");var n=e.content.cloneNode(!0).querySelector("style").textContent;return g.set(t.tagName,n),n}();n.replaceSync(a),t.shadowRoot.adoptedStyleSheets=[n]}else t._revokeAndUpdateLinkUrl(u)}),300)})),setTimeout((function(){t._revokeAndUpdateLinkUrl(u)}),100)),i}},{key:"_revokeAndUpdateLinkUrl",value:function(e){var t=this.shadowRoot.querySelector("link");t&&(t.hasAttribute("data-tmp")&&(URL.revokeObjectURL(t.href),t.removeAttribute("data-tmp")),t.href=e())}},{key:"_getHashCode",value:function(e){for(var t=0,n=0;t<e.length;t++)n=Math.imul(31,n)+e.charCodeAt(t)|0;return n}},{key:"adoptStyle",value:function(e,n){var r=0;if(!(e instanceof Document&&(r=this._getHashCode(n),-1!==b.indexOf(r)))){if(this._supportsAdoptedStyleSheets){var o=new CSSStyleSheet;o.replaceSync(n),e.adoptedStyleSheets=[].concat(t(e.adoptedStyleSheets),[o])}else{var a=new Blob([n],{type:"text/css"}),i=URL.createObjectURL(a),u=document.createElement("link");u.setAttribute("rel","stylesheet"),u.setAttribute("href",i),e instanceof Document?e.head.appendChild(u):e.appendChild(u)}0!==r&&b.push(r)}}},{key:"createProjector",value:function(e,t){var n=this;return new Promise((function(r,o){var a,i=n._projectorMode;setTimeout((function(){(a=window.Maquette.createProjector())[i](e,t),n._projector=a,r(a),n.dispatchEvent(new CustomEvent("firstRender",{}))}),1)}))}},{key:"renderNow",value:function(){this._projector&&this._projector.renderNow()}}],u&&o(i.prototype,u),f&&o(i,f),Object.defineProperty(i,"prototype",{writable:!1}),d}(i(HTMLElement)),M=n(277);function L(e){var t="function"==typeof Map?new Map:void 0;return L=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;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,n)}function n(){return T(e,arguments,P(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,e)},L(e)}function T(e,t,n){return T=_()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&O(o,n.prototype),o},T.apply(null,arguments)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(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 H(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function A(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function C(e){var t=_();return function(){var n,r=P(e);if(t){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}(this,n)}}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function k(e){return k="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},k(e)}var j=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":k(Reflect))&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},N=function(e){A(n,e);var t=C(n);function n(){var e;E(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).count=1,e.name="",e.foo="foo",e.onInput=function(t){e.name=t.target.value},e.onPeterClick=function(t){console.log({e:t,p:x(e)})},e.render=function(){return h("div",null,h("h1",{eventListeners:[["click",function(e){return console.log(e)}]],id:"Foo"},"Hallo"),h("h1",{"data-title":e.name&&e.name.toLocaleUpperCase(),class:"title"},e.foo," ",e.name),h("p",{"data-count":e.count,updateAnimation:e.countUpdateAnimation},e.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:e.name,oninput:e.onInput})),h("p",null,h("a",{is:"super-a"},"Super a")),e.name&&e.name.toLowerCase&&e.name.toLowerCase().indexOf("peter")>-1?h("div",{key:"peter",afterRemoved:e.peterRemoved,afterCreate:e.peterCreate,class:"is-peter",eventListeners:[["click",e.onPeterClick]],enterAnimation:e.enterAnimation,exitAnimation:e.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"})):"")},e.onFooEvent=function(t){e.foo=t.detail.foo},e}return H(n,[{key:"enterAnimation",value:function(e,t){M({targets:e,translateX:[{value:100,duration:1200},{value:0,duration:800}],rotate:"2turn",duration:3e3,loop:!1})}},{key:"exitAnimation",value:function(e,t,n){M({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){M.timeline().add([{duration:300,targets:e,translateX:200,scale:1.9,easing:"easeOutExpo"},{duration:300,targets:e,translateX:0,scale:1,easing:"easeInExpo"}])}},{key:"peterRemoved",value:function(){console.log("removed")}},{key:"peterCreate",value:function(){console.log("create")}},{key:"connectedCallback",value:function(){var e=this,t=this.templateFromString('\n <style>\n\n :host{\n /* display: none; */\n }\n\n .root {\n display: flex;\n padding: 10px;\n flex-direction: row;\n }\n\n #Foo {\n @apply --mixin-sample;\n text-decoration: underline;\n }\n\n #SlotContainer ::slotted(*) {\n font-weight: bold;\n color: green;\n font-size: 1.5em;\n }\n\n </style>\n <div class="root"></div>\n ');this.shadowRoot.appendChild(t),this.createProjector(this.shadowRoot.querySelector(".root"),this.render),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"]}}]),n}(w);j([d],N.prototype,"name",void 0),j([d],N.prototype,"foo",void 0),N=j([p({tagName:"my-greetings"})],N);var R=(v=y=function(e){A(n,e);var t=C(n);function n(e){var r;E(this,n),(r=t.call(this,e)).render=function(){return h("div",{class:"foo"},"Foo")};var o=r.templateFromString("<style>.foo{color: red}</style><div></div>",!1);return r.appendChild(o),r.createProjector(r.querySelector("div"),r.render),r}return H(n)}(w),y.projectorMode="replace",v);R=j([p({tagName:"p-foo"})],R);var I=function(e){A(n,e);var t=C(n);function n(){return E(this,n),t.apply(this,arguments)}return H(n,[{key:"connectedCallback",value:function(){this.classList.add("super"),this.style.color="red"}}]),n}(L(HTMLAnchorElement));window.customElements.define("super-a",I,{extends:"a"})})()})();
|
|
20
|
+
function(e,t){"use strict";var n=e.document,r=e.Object,o=function(e){var t,n,o,a,i=/^[A-Z]+[a-z]/,u=function(e,t){(t=t.toLowerCase())in l||(l[e]=(l[e]||[]).concat(t),l[t]=l[t.toUpperCase()]=e)},l=(r.create||r)(null),c={};for(n in e)for(a in e[n])for(o=e[n][a],l[a]=o,t=0;t<o.length;t++)l[o[t].toLowerCase()]=l[o[t].toUpperCase()]=a;return c.get=function(e){return"string"==typeof e?l[e]||(i.test(e)?[]:""):function(e){var t,n=[];for(t in l)e.test(t)&&n.push(t);return n}(e)},c.set=function(e,t){return i.test(e)?u(e,t):u(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 a,i,u,l,c,s,f,p,d,m="registerElement",h="__"+m+(1e5*e.Math.random()>>0),y="addEventListener",v="attached",g="Callback",b="detached",w="extends",M="attributeChanged"+g,L=v+g,T="connected"+g,E="disconnected"+g,S="created"+g,H=b+g,A="ADDITION",O="MODIFICATION",C="REMOVAL",x="DOMAttrModified",_="DOMContentLoaded",P="<",j="=",k=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,N=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],R=[],I=[],F="",D=n.documentElement,U=R.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=r.getOwnPropertyDescriptor,Y=r.getOwnPropertyNames,z=r.getPrototypeOf,G=r.setPrototypeOf,Q=!!r.__proto__,W="__dreCEv1",K=e.customElements,J=!/^force/.test(t.type)&&!!(K&&K.define&&K.get&&K.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),ae=ee(null),ie=new te,ue=function(e){return e.toLowerCase()},le=r.create||function e(t){return t?(e.prototype=t,new e):this},ce=G||(Q?function(e,t){return e.__proto__=t,e}:Y&&Z?function(){function e(e,t){for(var n,r=Y(t),o=0,a=r.length;o<a;o++)n=r[o],q.call(e,n)||X(e,n,Z(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}),se=e.MutationObserver||e.WebKitMutationObserver,fe=e.HTMLAnchorElement,pe=(e.HTMLElement||e.Element||e.Node).prototype,de=!B.call(pe,D),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)},ye=de&&[],ve=pe.attachShadow,ge=pe.cloneNode,be=pe.dispatchEvent,we=pe.getAttribute,Me=pe.hasAttribute,Le=pe.removeAttribute,Te=pe.setAttribute,Ee=n.createElement,Se=n.importNode,He=Ee,Ae=se&&{attributes:!0,characterData:!0,attributeOldValue:!0},Oe=se||function(e){je=!1,D.removeEventListener(x,Oe)},Ce=0,xe=m in n&&!/^force-all/.test(t.type),_e=!0,Pe=!1,je=!0,ke=!0,Ne=!0;function Re(){var e=a.splice(0,a.length);for(Ce=0;e.length;)e.shift().call(null,e.shift())}function Ie(e,t){for(var n=0,r=e.length;n<r;n++)ze(e[n],t)}function Fe(e){return function(t){he(t)&&(ze(t,e),F.length&&Ie(t.querySelectorAll(F),e))}}function De(e){var t=we.call(e,"is"),n=e.nodeName.toUpperCase(),r=U.call(R,t?j+t.toUpperCase():P+n);return t&&-1<r&&!Ue(n,t)?-1:r}function Ue(e,t){return-1<F.indexOf(e+'[is="'+t+'"]')}function Ve(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,a=e[A]||2,i=e[C]||3;!Ne||o&&o!==t||!t[M]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==a&&n!==i)||t[M](r,n===a?null:e.prevValue,n===i?null:e.newValue)}function qe(e){var t=Fe(e);return function(e){a.push(t,e.target),Ce&&clearTimeout(Ce),Ce=setTimeout(Re,1)}}function Be(e){ke&&(ke=!1,e.currentTarget.removeEventListener(_,Be)),F.length&&Ie((e.target||n).querySelectorAll(F),e.detail===b?b:v),de&&function(){for(var e,t=0,n=ye.length;t<n;t++)e=ye[t],D.contains(e)||(n--,ye.splice(t--,1),ze(e,b))}()}function Xe(e,t){var n=this;Te.call(n,e,t),i.call(n,{target:n})}function $e(e,t,n){var r=t.apply(e,n),o=De(r);return-1<o&&p(r,I[o]),n.pop()&&F.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)t=e[n],p(t,I[De(t)])}(r.querySelectorAll(F)),r}function Ze(e,t){ce(e,t),c?c.observe(e,Ae):(je&&(e.setAttribute=Xe,e[h]=l(e),e[y]("DOMSubtreeModified",i)),e[y](x,Ve)),e[S]&&Ne&&(e.created=!0,e[S](),e.created=!1)}function Ye(e){throw new Error("A "+e+" type is already registered")}function ze(e,t){var n,r,o=De(e);-1<o&&(f(e,I[o]),o=0,t!==v||e[v]?t!==b||e[b]||(e[v]=!1,e[b]=!0,r="disconnected",o=1):(e[b]=!1,e[v]=!0,r="connected",o=1,de&&U.call(ye,e)<0&&ye.push(e)),o&&(n=e[t+g]||e[r+g])&&n.call(e))}function Ge(){}function Qe(e,t,r){var o=r&&r[w]||"",a=t.prototype,i=le(a),u=t.observedAttributes||$,l={prototype:i};me(i,S,{value:function(){if(re)re=!1;else if(!this[W]){this[W]=!0,new t(this),a[S]&&a[S].call(this);var e=oe[ie.get(t)];(!J||e.create.length>1)&&Je(this)}}}),me(i,M,{value:function(e){-1<U.call(u,e)&&a[M]&&a[M].apply(this,arguments)}}),a[T]&&me(i,L,{value:a[T]}),a[E]&&me(i,H,{value:a[E]}),o&&(l[w]=o),e=e.toUpperCase(),oe[e]={constructor:t,create:o?[o,ue(e)]:[e]},ie.set(t,e),n[m](e.toLowerCase(),l),et(e),ae[e].r()}function We(e){var t=oe[e.toUpperCase()];return t&&t.constructor}function Ke(e){return"string"==typeof e?e:e&&e.is||""}function Je(e){for(var t,n=e[M],r=n?e.attributes:$,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 ae||(ae[e]={},ae[e].p=new ne((function(t){ae[e].r=t}))),ae[e].p}function tt(){K&&delete e.customElements,X(e,"customElements",{configurable:!0,value:new Ge}),X(e,"CustomElementRegistry",{configurable:!0,value:Ge});for(var t=function(t){var r=e[t];if(r){e[t]=function(e){var t,o;return e||(e=this),e[W]||(re=!0,t=oe[ie.get(e.constructor)],(e=(o=J&&1===t.create.length)?Reflect.construct(r,$,t.constructor):n.createElement.apply(n,t.create))[W]=!0,re=!1,o||Je(e)),e},e[t].prototype=r.prototype;try{r.prototype.constructor=e[t]}catch(n){!0,X(r,W,{value:e[t]})}}},r=o.get(/^HTML[A-Z]*[a-z]/),a=r.length;a--;t(r[a]));n.createElement=function(e,t){var n=Ke(t);return n?He.call(this,e,ue(n)):He.call(this,e)},xe||(Pe=!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=""),xe||(G||Q?(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?(je=!1,function(){var e=Z(pe,y),t=e.value,n=function(e){var t=new CustomEvent(x,{bubbles:!0});t.attrName=e,t.prevValue=we.call(this,e),t.newValue=null,t[C]=t.attrChange=2,Le.call(this,e),be.call(this,t)},r=function(e,t){var n=Me.call(this,e),r=n&&we.call(this,e),o=new CustomEvent(x,{bubbles:!0});Te.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o[O]=o.attrChange=1:o[A]=o.attrChange=0,be.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(x,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t[A]=t.attrChange=0:t[O]=t.attrChange=1,be.call(n,t))};e.value=function(e,a,i){e===x&&this[M]&&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,a,i)},X(pe,y,e)}()):se||(D[y](x,Oe),D.setAttribute(h,1),D.removeAttribute(h),je&&(i=function(e){var t,n,r,o=this;if(o===e.target){for(r in t=o[h],o[h]=n=l(o),n){if(!(r in t))return u(0,o,r,t[r],n[r],A);if(n[r]!==t[r])return u(1,o,r,t[r],n[r],O)}for(r in t)if(!(r in n))return u(2,o,r,t[r],n[r],C)}},u=function(e,t,n,r,o,a){var i={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};i[a]=e,Ve(i)},l=function(e){for(var t,n,r={},o=e.attributes,a=0,i=o.length;a<i;a++)"setAttribute"!==(n=(t=o[a]).name)&&(r[n]=t.value);return r})),n[m]=function(e,t){if(r=e.toUpperCase(),_e&&(_e=!1,se?(c=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,a,i,u=0,l=r.length;u<l;u++)"childList"===(o=r[u]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(a=o.target,Ne&&a[M]&&"style"!==o.attributeName&&(i=we.call(a,o.attributeName))!==o.oldValue&&a[M](o.attributeName,o.oldValue,i))}))}(Fe(v),Fe(b)),(s=function(e){return c.observe(e,{childList:!0,subtree:!0}),e})(n),ve&&(pe.attachShadow=function(){return s(ve.apply(this,arguments))})):(a=[],n[y]("DOMNodeInserted",qe(v)),n[y]("DOMNodeRemoved",qe(b))),n[y](_,Be),n[y]("readystatechange",Be),n.importNode=function(e,t){switch(e.nodeType){case 1:return $e(n,Se,[e,!!t]);case 11:for(var r=n.createDocumentFragment(),o=e.childNodes,a=o.length,i=0;i<a;i++)r.appendChild(n.importNode(o[i],!!t));return r;default:return ge.call(e,!!t)}},pe.cloneNode=function(e){return $e(this,ge,[!!e])}),Pe)return Pe=!1;if(-2<U.call(R,j+r)+U.call(R,P+r)&&Ye(e),!k.test(r)||-1<U.call(N,r))throw new Error("The type "+e+" is invalid");var r,o,i=function(){return l?n.createElement(f,r):n.createElement(f)},u=t||V,l=q.call(u,w),f=l?t[w].toUpperCase():r;return l&&-1<U.call(R,P+f)&&Ye(f),o=R.push((l?j:P)+r)-1,F=F.concat(F.length?",":"",l?f+'[is="'+e.toLowerCase()+'"]':f),i.prototype=I[o]=q.call(u,"prototype")?u.prototype:le(pe),F.length&&Ie(n.querySelectorAll(F),v),i},n.createElement=He=function(e,t){var r=Ke(t),o=r?Ee.call(n,e,ue(r)):Ee.call(n,e),a=""+e,i=U.call(R,(r?j:P)+(r||a).toUpperCase()),u=-1<i;return r&&(o.setAttribute("is",r=r.toLowerCase()),u&&(u=Ue(a.toUpperCase(),r))),Ne=!n.createElement.innerHTMLHelper,u&&p(o,I[i]),o}),Ge.prototype={constructor:Ge,define:J?function(e,t,n){if(n)Qe(e,t,n);else{var r=e.toUpperCase();oe[r]={constructor:t,create:[r]},ie.set(t,r),K.define(e,t)}}:Qe,get:J?function(e){return K.get(e)||We(e)}:We,whenDefined:J?function(e){return ne.race([K.whenDefined(e),et(e)])}:et},!K||/^force/.test(t.type))tt();else if(!t.noBuiltIn)try{!function(t,r,o){var a=new RegExp("^<a\\s+is=('|\")"+o+"\\1></a>$");if(r[w]="a",(t.prototype=le(fe.prototype)).constructor=t,e.customElements.define(o,t,r),!a.test(n.createElement("a",{is:o}).outerHTML)||!a.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(Ee.call(n,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(e){ue=function(e){return{is:e.toLowerCase()}}}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{"use strict";function e(t){return e="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(t)}function t(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(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 a(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}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 u(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)},i(e)}function u(e,t,n){return u=l()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&c(o,n.prototype),o},u.apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var f,p=function(e){return function(t){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}},d=function(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)}))}})},m=n(425);f=document.registerElement,/\{\s*\[native code\]\s*\}/.test(""+f)||m(window,"auto");var y,v,g=new Map,b=[],w=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(d,e);var n,r,i,u,f,p=(n=d,r=l(),function(){var e,t=s(n);if(r){var o=s(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return a(this,e)});function d(e){var t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),t=n=p.call(this,e),n._projector=void 0,n._projectorMode=void 0,e=t,n._callInitFunction(),n._initProjectorMode(),a(n,e)}return i=d,u=[{key:"_callInitFunction",value:function(){"function"==typeof this.init&&this.init()}},{key:"_initProjectorMode",value:function(){var e=this.constructor.projectorMode;this._projectorMode=e||"append"}},{key:"_supportsAdoptedStyleSheets",get:function(){return!(!document.adoptedStyleSheets||!CSSStyleSheet)}},{key:"_shadowRootAdoptMapStyle",value:function(e){var t=new CSSStyleSheet;t.replaceSync(!0===g.has(this.tagName)?g.get(this.tagName):e),this.shadowRoot.adoptedStyleSheets=[t]}},{key:"_shadowRootReplaceStyleWithLink",value:function(e,t,n){var r=new Blob([g.get(this.tagName)?g.get(this.tagName):n],{type:"text/css"});return e=e.replace(t,'<link rel="stylesheet" href="'.concat(URL.createObjectURL(r),'" data-tmp="true">'))}},{key:"templateFromString",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n&&!this.shadowRoot&&this.attachShadow({mode:"open"}),n?this.shadowRoot.innerHTML="":this.innerHTML="";var r="<style></style>",o=e.match(/<style[^>]*>([\s\S]*?)<\/style>/);o&&(r=o[0],n&&this._supportsAdoptedStyleSheets?(e=e.replace(o[0],""),this._shadowRootAdoptMapStyle(o[1])):n?e=this._shadowRootReplaceStyleWithLink(e,o[0],o[1]):(e=e.replace(o[0],""),this.adoptStyle(document,o[1])));var a=document.createElement("template");a.innerHTML=e;var i=document.importNode(a.content,!0),u=function(){if(g.has(t.tagName))return g.get(t.tagName);var e=document.createElement("template");e.innerHTML=r,window.ShadyCSS.prepareTemplate(e,"x-tmp");var n=e.content.cloneNode(!0).querySelector("style").textContent,o=new Blob([n],{type:"text/css"}),a=URL.createObjectURL(o);return g.set(t.tagName,a),a};return n&&(window.addEventListener("customStyleConnected",(function(){setTimeout((function(){if(o&&t._supportsAdoptedStyleSheets){e=e.replace(o[0],"");var n=new CSSStyleSheet,a=function(){if(g.has(t.tagName))return g.get(t.tagName);var e=document.createElement("template");e.innerHTML=r,window.ShadyCSS.prepareTemplate(e,"x-tmp");var n=e.content.cloneNode(!0).querySelector("style").textContent;return g.set(t.tagName,n),n}();n.replaceSync(a),t.shadowRoot.adoptedStyleSheets=[n]}else t._revokeAndUpdateLinkUrl(u)}),300)})),setTimeout((function(){t._revokeAndUpdateLinkUrl(u)}),100)),i}},{key:"_revokeAndUpdateLinkUrl",value:function(e){var t=this.shadowRoot.querySelector("link");t&&(t.hasAttribute("data-tmp")&&(URL.revokeObjectURL(t.href),t.removeAttribute("data-tmp")),t.href=e())}},{key:"_getHashCode",value:function(e){for(var t=0,n=0;t<e.length;t++)n=Math.imul(31,n)+e.charCodeAt(t)|0;return n}},{key:"adoptStyle",value:function(e,n){var r=0;if(!(e instanceof Document&&(r=this._getHashCode(n),-1!==b.indexOf(r)))){if(this._supportsAdoptedStyleSheets){var o=new CSSStyleSheet;o.replaceSync(n),e.adoptedStyleSheets=[].concat(t(e.adoptedStyleSheets),[o])}else{var a=new Blob([n],{type:"text/css"}),i=URL.createObjectURL(a),u=document.createElement("link");u.setAttribute("rel","stylesheet"),u.setAttribute("href",i),e instanceof Document?e.head.appendChild(u):e.appendChild(u)}0!==r&&b.push(r)}}},{key:"createProjector",value:function(e,t){var n=this;return new Promise((function(r,o){var a,i=n._projectorMode?n._projectorMode:"append";setTimeout((function(){(a=window.Maquette.createProjector())[i](e,t),n._projector=a,r(a),n.dispatchEvent(new CustomEvent("firstRender",{}))}),1)}))}},{key:"renderNow",value:function(){this._projector&&this._projector.renderNow()}}],u&&o(i.prototype,u),f&&o(i,f),Object.defineProperty(i,"prototype",{writable:!1}),d}(i(HTMLElement)),M=n(277);function L(e){var t="function"==typeof Map?new Map:void 0;return L=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;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,n)}function n(){return T(e,arguments,P(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,e)},L(e)}function T(e,t,n){return T=_()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&O(o,n.prototype),o},T.apply(null,arguments)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(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 H(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function A(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function C(e){var t=_();return function(){var n,r=P(e);if(t){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}(this,n)}}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}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},j(e)}var k=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":j(Reflect))&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},N=function(e){A(n,e);var t=C(n);function n(){var e;E(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).count=1,e.name="",e.foo="foo",e.onInput=function(t){e.name=t.target.value},e.onPeterClick=function(t){console.log({e:t,p:x(e)})},e.render=function(){return h("div",null,h("h1",{eventListeners:[["click",function(e){return console.log(e)}]],id:"Foo"},"Hallo"),h("h1",{"data-title":e.name&&e.name.toLocaleUpperCase(),class:"title"},e.foo," ",e.name),h("p",{"data-count":e.count,updateAnimation:e.countUpdateAnimation},e.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:e.name,oninput:e.onInput})),h("p",null,h("a",{is:"super-a"},"Super a")),e.name&&e.name.toLowerCase&&e.name.toLowerCase().indexOf("peter")>-1?h("div",{key:"peter",afterRemoved:e.peterRemoved,afterCreate:e.peterCreate,class:"is-peter",eventListeners:[["click",e.onPeterClick]],enterAnimation:e.enterAnimation,exitAnimation:e.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"})):"")},e.onFooEvent=function(t){e.foo=t.detail.foo},e}return H(n,[{key:"enterAnimation",value:function(e,t){M({targets:e,translateX:[{value:100,duration:1200},{value:0,duration:800}],rotate:"2turn",duration:3e3,loop:!1})}},{key:"exitAnimation",value:function(e,t,n){M({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){M.timeline().add([{duration:300,targets:e,translateX:200,scale:1.9,easing:"easeOutExpo"},{duration:300,targets:e,translateX:0,scale:1,easing:"easeInExpo"}])}},{key:"peterRemoved",value:function(){console.log("removed")}},{key:"peterCreate",value:function(){console.log("create")}},{key:"connectedCallback",value:function(){var e=this,t=this.templateFromString('\n <style>\n\n :host{\n /* display: none; */\n }\n\n .root {\n display: flex;\n padding: 10px;\n flex-direction: row;\n }\n\n #Foo {\n @apply --mixin-sample;\n text-decoration: underline;\n }\n\n #SlotContainer ::slotted(*) {\n font-weight: bold;\n color: green;\n font-size: 1.5em;\n }\n\n </style>\n <div class="root"></div>\n ');this.shadowRoot.appendChild(t),this.createProjector(this.shadowRoot.querySelector(".root"),this.render),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"]}}]),n}(w);k([d],N.prototype,"name",void 0),k([d],N.prototype,"foo",void 0),N=k([p({tagName:"my-greetings"})],N);var R=(v=y=function(e){A(n,e);var t=C(n);function n(e){var r;E(this,n),(r=t.call(this,e)).render=function(){return h("div",{class:"foo"},"Foo")};var o=r.templateFromString("<style>.foo{color: red}</style><div></div>",!1);return r.appendChild(o),r.createProjector(r.querySelector("div"),r.render),r}return H(n)}(w),y.projectorMode="replace",v);R=k([p({tagName:"p-foo"})],R);var I=function(e){A(n,e);var t=C(n);function n(){return E(this,n),t.apply(this,arguments)}return H(n,[{key:"connectedCallback",value:function(){this.classList.add("super"),this.style.color="red"}}]),n}(L(HTMLAnchorElement));window.customElements.define("super-a",I,{extends:"a"})})()})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! P-ELEMENTS 1.2.4 - Tue Sep 26 2023 15:44:42 GMT+0200 (Central European Summer Time) */(()=>{var e={259:function(){(function(){"use strict";var e,t,n=!(window.ShadyDOM&&window.ShadyDOM.inUse);function r(t){e=(!t||!t.shimcssproperties)&&(n||!(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.cssBuild&&(t=window.ShadyCSS.cssBuild),window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?e=window.ShadyCSS.nativeCss:window.ShadyCSS?(r(window.ShadyCSS),window.ShadyCSS=void 0):r(window.WebComponents&&window.WebComponents.flags);var o=e,i=t;function a(){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 u(e){var t=l,n=e=e.replace(h,"").replace(m,""),r=new a;r.start=0,r.end=n.length;for(var o=r,i=0,u=n.length;i<u;i++)if("{"===n[i]){o.rules||(o.rules=[]);var c=o,s=c.rules[c.rules.length-1]||null;(o=new a).start=i+1,o.parent=c,o.previous=s,c.rules.push(o)}else"}"===n[i]&&(o.end=i+1,o=o.parent||r);return t(r,e)}function l(e,t){var n=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=n.trim(),e.parent&&(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)),n=(n=n.replace(w," ")).substring(n.lastIndexOf(";")+1),n=e.parsedSelector=e.selector=n.trim(),e.atRule=0===n.indexOf("@"),e.atRule?0===n.indexOf("@media")?e.type=p:n.match(S)&&(e.type=f,e.keyframesName=e.selector.split(w).pop()):e.type=0===n.indexOf("--")?d:s),n=e.rules)for(var r=0,o=n.length,i=void 0;r<o&&(i=n[r]);r++)l(i,t);return e}function c(e,t,n){n=void 0===n?"":n;var r="";if(e.cssText||e.rules){var o,i=e.rules;if((o=i)&&(o=!((o=i[0])&&o.selector&&0===o.selector.indexOf("--"))),o){o=0;for(var a=i.length,u=void 0;o<a&&(u=i[o]);o++)r=c(u,t,r)}else t?t=e.cssText:t=(t=(t=e.cssText).replace(y,"").replace(v,"")).replace(g,"").replace(b,""),(r=t.trim())&&(r=" "+r+"\n")}return r&&(e.selector&&(n+=e.selector+" {\n"),n+=r,e.selector&&(n+="}\n\n")),n}var s=1,f=7,p=4,d=1e3,h=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,m=/@import[^;]*;/gim,y=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,v=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,g=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,b=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,S=/^@[^\s]*keyframes/,w=/\s+/g,E=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,T=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,M=/@media\s(.*)/,L=new Set;function C(e){return e?("string"==typeof e&&(e=u(e)),c(e,o)):""}function A(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=u(e.textContent)),e.__cssRules||null}function O(e,t,n,r){if(e){var o=!1,i=e.type;if(r&&i===p){var a=e.selector.match(M);a&&(window.matchMedia(a[1]).matches||(o=!0))}if(i===s?t(e):n&&i===f?n(e):i===d&&(o=!0),(e=e.rules)&&!o)for(o=0,i=e.length,a=void 0;o<i&&(a=e[o]);o++)O(a,t,n,r)}}function H(e,t){var n=e.indexOf("var(");if(-1===n)return t(e,"","","");e:{for(var r=0,o=n+3,i=e.length;o<i;o++)if("("===e[o])r++;else if(")"===e[o]&&0==--r)break e;o=-1}return r=e.substring(n+4,o),n=e.substring(0,n),e=H(e.substring(o+1),t),-1===(o=r.indexOf(","))?t(n,r.trim(),"",e):t(n,r.substring(0,o).trim(),r.substring(o+1).trim(),e)}function _(e){if(void 0!==i)return i;if(void 0===e.__cssBuild){var t=e.getAttribute("css-build");if(t)e.__cssBuild=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.__cssBuild=t}}return e.__cssBuild||""}var x=/;\s*/m,N=/^\s*(initial)|(inherit)\s*$/,j=/\s*!important/;function k(){this.a={}}k.prototype.set=function(e,t){e=e.trim(),this.a[e]={h:t,i:{}}},k.prototype.get=function(e){return e=e.trim(),this.a[e]||null};var I=null;function P(){this.b=this.c=null,this.a=new k}function R(e,t){for(var n=t;n.parent;)n=n.parent;var r={},o=!1;return O(n,(function(n){(o=o||n===t)||n.selector===t.selector&&Object.assign(r,F(e,n.parsedCssText))})),r}function D(e,t,n){for(var r;r=T.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 u=n?R(e,n):{};Object.assign(u,F(e,a)),o=void 0;var l=e;i=i.replace(x,"");var c=[],s=l.a.get(i);if(s||(l.a.set(i,{}),s=l.a.get(i)),s){l.c&&(s.i[l.c]=!0);var f=s.h;for(o in f)s=[o,": var(",i,"_-_",o],(l=u&&u[o])&&s.push(",",l.replace(j,"")),s.push(")"),j.test(f[o])&&s.push(" !important"),c.push(s.join(""))}t=a+(o=c.join("; "))+t,T.lastIndex=r+o.length}return t}function F(e,t,n){n=void 0!==n&&n,t=t.split(";");for(var r,o,i,a={},u=0;u<t.length;u++)if((r=t[u])&&1<(i=r.split(":")).length){if(r=i[0].trim(),o=i.slice(1).join(":"),n){var l=e;i=r;var c=N.exec(o);c&&(c[1]?(l.b||(l.b=document.createElement("meta"),l.b.setAttribute("apply-shim-measure",""),l.b.style.all="initial",document.head.appendChild(l.b)),i=window.getComputedStyle(l.b).getPropertyValue(i)):i="apply-shim-inherit",o=i)}a[r]=o}return a}P.prototype.o=function(e){return e=T.test(e)||E.test(e),T.lastIndex=0,E.lastIndex=0,e},P.prototype.m=function(e,t){if(void 0===e._gatheredStyle){for(var r=[],o=e.content.querySelectorAll("style"),i=0;i<o.length;i++){var a=o[i];if(a.hasAttribute("shady-unscoped")){if(!n){var u=a.textContent;L.has(u)||(L.add(u),u=a.cloneNode(!0),document.head.appendChild(u)),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._gatheredStyle=r}return(e=e._gatheredStyle)?this.j(e,t):null},P.prototype.j=function(e,t){t=void 0===t?"":t;var n=A(e);return this.l(n,t),e.textContent=C(n),n},P.prototype.f=function(e){var t=this,n=A(e);return O(n,(function(e){":root"===e.selector&&(e.selector="html"),t.g(e)})),e.textContent=C(n),n},P.prototype.l=function(e,t){var n=this;this.c=t,O(e,(function(e){n.g(e)})),this.c=null},P.prototype.g=function(e){e.cssText=function(e,t,n){return t=t.replace(E,(function(t,r,o,i){return function(e,t,n,r,o,i){if(r&&H(r,(function(t,n){n&&e.a.get(n)&&(o="@apply "+n+";")})),!o)return t;var a=D(e,""+o,i);i=t.slice(0,t.indexOf("--"));var u=a=F(e,a,!0),l=e.a.get(n),c=l&&l.h;c?u=Object.assign(Object.create(c),a):e.a.set(n,u);var s,f=[],p=!1;for(s in u){var d=a[s];void 0===d&&(d="initial"),!c||s in c||(p=!0),f.push(n+"_-_"+s+": "+d)}return p&&function(e,t){if(I)for(var n in t.i)n!==e.c&&I(n)}(e,l),l&&(l.h=u),r&&(i=t+";"+i),i+f.join("; ")+";"}(e,t,r,o,i,n)})),D(e,t,n)}(this,e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")},P.prototype.detectMixin=P.prototype.o,P.prototype.transformStyle=P.prototype.j,P.prototype.transformCustomStyle=P.prototype.f,P.prototype.transformRules=P.prototype.l,P.prototype.transformRule=P.prototype.g,P.prototype.transformTemplate=P.prototype.m,P.prototype._separator="_-_",Object.defineProperty(P.prototype,"invalidCallback",{get:function(){return I},set:function(e){I=e}});var V={},B=Promise.resolve();function U(e){(e=V[e])&&(e._applyShimCurrentVersion=e._applyShimCurrentVersion||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e._applyShimNextVersion=(e._applyShimNextVersion||0)+1)}function q(e){return e._applyShimCurrentVersion===e._applyShimNextVersion}var $=new P;function W(){this.a=null,$.invalidCallback=U}function z(e){!e.a&&window.ShadyCSS.CustomStyleInterface&&(e.a=window.ShadyCSS.CustomStyleInterface,e.a.transformCallback=function(e){$.f(e)},e.a.validateCallback=function(){requestAnimationFrame((function(){e.a.enqueued&&e.flushCustomStyles()}))})}if(W.prototype.prepareTemplate=function(e,t){z(this),""===_(e)&&(V[t]=e,t=$.m(e,t),e._styleAst=t)},W.prototype.flushCustomStyles=function(){if(z(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&&$.f(n)}this.a.enqueued=!1}}},W.prototype.styleSubtree=function(e,t){if(z(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])},W.prototype.styleElement=function(e){z(this);var t,n=e.localName;t=n?-1<n.indexOf("-")?n:e.getAttribute&&e.getAttribute("is")||"":e.is,(n=V[t])&&""!==_(n)||!n||q(n)||((q(n)||n._applyShimValidatingVersion!==n._applyShimNextVersion)&&(this.prepareTemplate(n,t),function(e){e._applyShimValidatingVersion=e._applyShimNextVersion,e._validating||(e._validating=!0,B.then((function(){e._applyShimCurrentVersion=e._applyShimNextVersion,e._validating=!1})))}(n)),(e=e.shadowRoot)&&(e=e.querySelector("style"))&&(e.__cssRules=n._styleAst,e.textContent=C(n._styleAst)))},W.prototype.styleDocument=function(e){z(this),this.styleSubtree(document.body,e)},!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Z=new W,K=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(e,t){Z.flushCustomStyles(),Z.prepareTemplate(e,t)},prepareTemplateStyles:function(e,t,n){window.ShadyCSS.prepareTemplate(e,t,n)},prepareTemplateDom:function(){},styleSubtree:function(e,t){Z.flushCustomStyles(),Z.styleSubtree(e,t)},styleElement:function(e){Z.flushCustomStyles(),Z.styleElement(e)},styleDocument:function(e){Z.flushCustomStyles(),Z.styleDocument(e)},getComputedStyleValue:function(e,t){return(e=window.getComputedStyle(e).getPropertyValue(t))?e.trim():""},flushCustomStyles:function(){Z.flushCustomStyles()},nativeCss:o,nativeShadow:n,cssBuild:i},K&&(window.ShadyCSS.CustomStyleInterface=K)}window.ShadyCSS.ApplyShim=$}).call(this)},659:function(){(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 u(e){!e.enqueued&&i&&(e.enqueued=!0,r(i))}function l(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),u(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&&u(this)}}});var c,s,f=!(window.ShadyDOM&&window.ShadyDOM.inUse);function p(e){c=(!e||!e.shimcssproperties)&&(f||!(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.cssBuild&&(s=window.ShadyCSS.cssBuild),window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?c=window.ShadyCSS.nativeCss:window.ShadyCSS?(p(window.ShadyCSS),window.ShadyCSS=void 0):p(window.WebComponents&&window.WebComponents.flags);var d=c,h=s,m=new a;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},prepareTemplateDom:function(){},prepareTemplateStyles:function(){},styleSubtree:function(e,t){m.a(),l(e,t)},styleElement:function(){m.a()},styleDocument:function(e){m.a(),l(document.body,e)},getComputedStyleValue:function(e,t){return(e=window.getComputedStyle(e).getPropertyValue(t))?e.trim():""},flushCustomStyles:function(){},nativeCss:d,nativeShadow:f,cssBuild:h}),window.ShadyCSS.CustomStyleInterface=m}).call(this)},277:function(e,t,n){var r,o,i,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},a.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==n.g&&null!=n.g?n.g:e},a.global=a.getGlobal(this),a.SYMBOL_PREFIX="jscomp_symbol_",a.initSymbol=function(){a.initSymbol=function(){},a.global.Symbol||(a.global.Symbol=a.Symbol)},a.symbolCounter_=0,a.Symbol=function(e){return a.SYMBOL_PREFIX+(e||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var e=a.global.Symbol.iterator;e||(e=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&a.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(e){var t=0;return a.iteratorPrototype((function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}))},a.iteratorPrototype=function(e){return a.initSymbolIterator(),(e={next:e})[a.global.Symbol.iterator]=function(){return this},e},a.array=a.array||{},a.iteratorFromArray=function(e,t){a.initSymbolIterator(),e instanceof String&&(e+="");var n=0,r={next:function(){if(n<e.length){var o=n++;return{value:t(o,e[o]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},a.polyfill=function(e,t,n,r){if(t){for(n=a.global,e=e.split("."),r=0;r<e.length-1;r++){var o=e[r];o in n||(n[o]={}),n=n[o]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&a.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},a.polyfill("Array.prototype.keys",(function(e){return e||function(){return a.iteratorFromArray(this,(function(e){return e}))}}),"es6-impl","es3");var u=this;o=[],r=function(){function e(e){if(!D.col(e))try{return document.querySelectorAll(e)}catch(e){}}function t(e,t){for(var n=e.length,r=2<=arguments.length?arguments[1]:void 0,o=[],i=0;i<n;i++)if(i in e){var a=e[i];t.call(r,a,i,e)&&o.push(a)}return o}function n(e){return e.reduce((function(e,t){return e.concat(D.arr(t)?n(t):t)}),[])}function r(t){return D.arr(t)?t:(D.str(t)&&(t=e(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function o(e,t){return e.some((function(e){return e===t}))}function i(e){var t,n={};for(t in e)n[t]=e[t];return n}function a(e,t){var n,r=i(e);for(n in e)r[n]=t.hasOwnProperty(n)?t[n]:e[n];return r}function l(e,t){var n,r=i(e);for(n in t)r[n]=D.und(e[n])?t[n]:e[n];return r}function c(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+(e=parseInt(t[1],16))+","+parseInt(t[2],16)+","+(t=parseInt(t[3],16))+",1)"}function s(e){function t(e,t,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:.5>n?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e);e=parseInt(n[1])/360;var r=parseInt(n[2])/100,o=parseInt(n[3])/100;if(n=n[4]||1,0==r)o=r=e=o;else{var i=.5>o?o*(1+r):o+r-o*r,a=2*o-i;o=t(a,i,e+1/3),r=t(a,i,e),e=t(a,i,e-1/3)}return"rgba("+255*o+","+255*r+","+255*e+","+n+")"}function f(e){if(e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e))return e[2]}function p(e){return-1<e.indexOf("translate")||"perspective"===e?"px":-1<e.indexOf("rotate")||-1<e.indexOf("skew")?"deg":void 0}function d(e,t){return D.fnc(e)?e(t.target,t.id,t.total):e}function h(e,t){if(t in e.style)return getComputedStyle(e).getPropertyValue(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function m(e,t){return D.dom(e)&&o(R,t)?"transform":D.dom(e)&&(e.getAttribute(t)||D.svg(e)&&e[t])?"attribute":D.dom(e)&&"transform"!==t&&h(e,t)?"css":null!=e[t]?"object":void 0}function y(e,n){var r=p(n);if(r=-1<n.indexOf("scale")?1:0+r,!(e=e.style.transform))return r;for(var o=[],i=[],a=[],u=/(\w+)\((.+?)\)/g;o=u.exec(e);)i.push(o[1]),a.push(o[2]);return e=t(a,(function(e,t){return i[t]===n})),e.length?e[0]:r}function v(e,t){switch(m(e,t)){case"transform":return y(e,t);case"css":return h(e,t);case"attribute":return e.getAttribute(t)}return e[t]||0}function g(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=f(e)||0;switch(t=parseFloat(t),e=parseFloat(e.replace(n[0],"")),n[0][0]){case"+":return t+e+r;case"-":return t-e+r;case"*":return t*e+r}}function b(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function S(e){e=e.points;for(var t,n=0,r=0;r<e.numberOfItems;r++){var o=e.getItem(r);0<r&&(n+=b(t,o)),t=o}return n}function w(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*e.getAttribute("r");case"rect":return 2*e.getAttribute("width")+2*e.getAttribute("height");case"line":return b({x:e.getAttribute("x1"),y:e.getAttribute("y1")},{x:e.getAttribute("x2"),y:e.getAttribute("y2")});case"polyline":return S(e);case"polygon":var t=e.points;return S(e)+b(t.getItem(t.numberOfItems-1),t.getItem(0))}}function E(e,t){function n(n){return n=void 0===n?0:n,e.el.getPointAtLength(1<=t+n?t+n:0)}var r=n(),o=n(-1),i=n(1);switch(e.property){case"x":return r.x;case"y":return r.y;case"angle":return 180*Math.atan2(i.y-o.y,i.x-o.x)/Math.PI}}function T(e,t){var n,r=/-?\d*\.?\d+/g;if(n=D.pth(e)?e.totalLength:e,D.col(n))if(D.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=D.hex(n)?c(n):D.hsl(n)?s(n):void 0;else o=(o=f(n))?n.substr(0,n.length-o.length):n,n=t&&!/\s/g.test(n)?o+t:o;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:D.str(e)||t?n.split(r):[]}}function M(e){return t(e=e?n(D.arr(e)?e.map(r):r(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function L(e){var t=M(e);return t.map((function(e,n){return{target:e,id:n,total:t.length}}))}function C(e,t){var n=i(t);if(D.arr(e)){var o=e.length;2!==o||D.obj(e[0])?D.fnc(t.duration)||(n.duration=t.duration/o):e={value:e}}return r(e).map((function(e,n){return n=n?0:t.delay,e=D.obj(e)&&!D.pth(e)?e:{value:e},D.und(e.delay)&&(e.delay=n),e})).map((function(e){return l(e,n)}))}function A(e,t){var n,r={};for(n in e){var o=d(e[n],t);D.arr(o)&&(o=o.map((function(e){return d(e,t)})),1===o.length&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function O(e){return D.arr(e)?F.apply(this,e):V[e]}function H(e,t){var n;return e.tweens.map((function(r){var o=(r=A(r,t)).value,i=v(t.target,e.name),a=n?n.to.original:i,u=(a=D.arr(o)?o[0]:a,g(D.arr(o)?o[1]:o,a));return i=f(u)||f(a)||f(i),r.from=T(a,i),r.to=T(u,i),r.start=n?n.end:e.offset,r.end=r.start+r.delay+r.duration,r.easing=O(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=D.pth(o),r.isColor=D.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function _(e,r){return t(n(e.map((function(e){return r.map((function(t){var n=m(e.target,t.name);if(n){var r=H(t,e);t={type:n,property:t.name,animatable:e,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else t=void 0;return t}))}))),(function(e){return!D.und(e)}))}function x(e,t,n,r){var o="delay"===e;return t.length?(o?Math.min:Math.max).apply(Math,t.map((function(t){return t[e]}))):o?r.delay:n.offset+r.delay+r.duration}function N(e){var t,n=a(I,e),r=a(P,e),o=L(e.targets),i=[],u=l(n,r);for(t in e)u.hasOwnProperty(t)||"targets"===t||i.push({name:t,offset:u.offset,tweens:C(e[t],r)});return l(n,{children:[],animatables:o,animations:e=_(o,i),duration:x("duration",e,n,r),delay:x("delay",e,n,r)})}function j(e){function n(){return window.Promise&&new Promise((function(e){return f=e}))}function r(e){return d.reversed?d.duration-e:e}function o(e){for(var n=0,r={},o=d.animations,i=o.length;n<i;){var a=o[n],u=a.animatable,l=(c=a.tweens)[p=c.length-1];p&&(l=t(c,(function(t){return e<t.end}))[0]||l);for(var c=Math.min(Math.max(e-l.start-l.delay,0),l.duration)/l.duration,s=isNaN(c)?1:l.easing(c,l.elasticity),f=(c=l.to.strings,l.round),p=[],m=void 0,y=(m=l.to.numbers.length,0);y<m;y++){var v=void 0,g=(v=l.to.numbers[y],l.from.numbers[y]);v=l.isPath?E(l.value,s*v):g+s*(v-g),f&&(l.isColor&&2<y||(v=Math.round(v*f)/f)),p.push(v)}if(l=c.length)for(m=c[0],s=0;s<l;s++)f=c[s+1],y=p[s],isNaN(y)||(m=f?m+(y+f):m+(y+" "));else m=p[0];B[a.type](u.target,a.property,m,r,u.id),a.currentValue=m,n++}if(n=Object.keys(r).length)for(o=0;o<n;o++)k||(k=h(document.body,"transform")?"transform":"-webkit-transform"),d.animatables[o].target.style[k]=r[o].join(" ");d.currentTime=e,d.progress=e/d.duration*100}function i(e){d[e]&&d[e](d)}function a(){d.remaining&&!0!==d.remaining&&d.remaining--}function u(e){var t=d.duration,u=d.offset,h=u+d.delay,m=d.currentTime,y=d.reversed,v=r(e);if(d.children.length){var g=d.children,b=g.length;if(v>=d.currentTime)for(var S=0;S<b;S++)g[S].seek(v);else for(;b--;)g[b].seek(v)}(v>=h||!t)&&(d.began||(d.began=!0,i("begin")),i("run")),v>u&&v<t?o(v):(v<=u&&0!==m&&(o(0),y&&a()),(v>=t&&m!==t||!t)&&(o(t),y||a())),i("update"),e>=t&&(d.remaining?(c=l,"alternate"===d.direction&&(d.reversed=!d.reversed)):(d.pause(),d.completed||(d.completed=!0,i("complete"),"Promise"in window&&(f(),p=n()))),s=0)}e=void 0===e?{}:e;var l,c,s=0,f=null,p=n(),d=N(e);return d.reset=function(){var e=d.direction,t=d.loop;for(d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.completed=!1,d.reversed="reverse"===e,d.remaining="alternate"===e&&1===t?2:t,o(0),e=d.children.length;e--;)d.children[e].reset()},d.tick=function(e){l=e,c||(c=l),u((s+l-c)*j.speed)},d.seek=function(e){u(r(e))},d.pause=function(){var e=U.indexOf(d);-1<e&&U.splice(e,1),d.paused=!0},d.play=function(){d.paused&&(d.paused=!1,c=0,s=r(d.currentTime),U.push(d),q||$())},d.reverse=function(){d.reversed=!d.reversed,c=0,s=r(d.currentTime)},d.restart=function(){d.pause(),d.reset(),d.play()},d.finished=p,d.reset(),d.autoplay&&d.play(),d}var k,I={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},P={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},R="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),D={arr:function(e){return Array.isArray(e)},obj:function(e){return-1<Object.prototype.toString.call(e).indexOf("Object")},pth:function(e){return D.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},dom:function(e){return e.nodeType||D.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return D.hex(e)||D.rgb(e)||D.hsl(e)}},F=function(){function e(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}return function(t,n,r,o){if(0<=t&&1>=t&&0<=r&&1>=r){var i=new Float32Array(11);if(t!==n||r!==o)for(var a=0;11>a;++a)i[a]=e(.1*a,t,r);return function(a){if(t===n&&r===o)return a;if(0===a)return 0;if(1===a)return 1;for(var u=0,l=1;10!==l&&i[l]<=a;++l)u+=.1;--l,l=u+(a-i[l])/(i[l+1]-i[l])*.1;var c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t;if(.001<=c){for(u=0;4>u&&0!=(c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t);++u){var s=e(l,t,r)-a;l-=s/c}a=l}else if(0===c)a=l;else{l=u,u+=.1;var f=0;do{0<(c=e(s=l+(u-l)/2,t,r)-a)?u=s:l=s}while(1e-7<Math.abs(c)&&10>++f);a=s}return e(a,n,o)}}}}(),V=function(){function e(e,t){return 0===e||1===e?e:-Math.pow(2,10*(e-1))*Math.sin(2*(e-1-t/(2*Math.PI)*Math.asin(1))*Math.PI/t)}var t,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],e],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,n){return 1-e(1-t,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,n){return.5>t?e(2*t,n)/2:1-e(-2*t+2,n)/2}]},o={linear:F(.25,.25,.75,.75)},i={};for(t in r)i.type=t,r[i.type].forEach(function(e){return function(t,r){o["ease"+e.type+n[r]]=D.fnc(t)?t:F.apply(u,t)}}(i)),i={type:i.type};return o}(),B={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,o){r[o]||(r[o]=[]),r[o].push(t+"("+n+")")}},U=[],q=0,$=function(){function e(){q=requestAnimationFrame(t)}function t(t){var n=U.length;if(n){for(var r=0;r<n;)U[r]&&U[r].tick(t),r++;e()}else cancelAnimationFrame(q),q=0}return e}();return j.version="2.2.0",j.speed=1,j.running=U,j.remove=function(e){e=M(e);for(var t=U.length;t--;)for(var n=U[t],r=n.animations,i=r.length;i--;)o(e,r[i].animatable.target)&&(r.splice(i,1),r.length||n.pause())},j.getValue=v,j.path=function(t,n){var r=D.str(t)?e(t)[0]:t,o=n||100;return function(e){return{el:r,property:e,totalLength:w(r)*(o/100)}}},j.setDashoffset=function(e){var t=w(e);return e.setAttribute("stroke-dasharray",t),t},j.bezier=F,j.easings=V,j.timeline=function(e){var t=j(e);return t.pause(),t.duration=0,t.add=function(n){return t.children.forEach((function(e){e.began=!0,e.completed=!0})),r(n).forEach((function(n){var r=l(n,a(P,e||{}));r.targets=r.targets||e.targets,n=t.duration;var o=r.offset;r.autoplay=!1,r.direction=t.direction,r.offset=D.und(o)?n:g(o,n),t.began=!0,t.completed=!0,t.seek(r.offset),(r=j(r)).began=!0,r.completed=!0,r.duration>n&&(t.duration=r.duration),t.children.push(r)})),t.seek(0),t.reset(),t.autoplay&&t.restart(),t},t},j.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},j},void 0===(i="function"==typeof r?r.apply(t,o):r)||(e.exports=i)},353:(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},r(e)}function o(e){return o="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},o(e)}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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 l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}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 s(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)},c(e)}function s(e,t,n){return s=f()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&p(o,n.prototype),o},s.apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h,m=function(e,t,n){var o=n.value;if(console.warn("@Bind decorator is deprecated, use arrow function expression"),"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}}},y=function(e){return function(t){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}},v=function(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)}))}})},g=n(425);h=document.registerElement,/\{\s*\[native code\]\s*\}/.test(""+h)||g(window,"auto");var b=new Map,S=[],w=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(s,e);var t,n,r,o,a,c=(t=s,n=f(),function(){var e,r=d(t);if(n){var o=d(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return l(this,e)});function s(e){var t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),t=n=c.call(this,e),n._projector=void 0,n._projectorMode=void 0,e=t,n._callInitFunction(),n._initProjectorMode(),l(n,e)}return r=s,o=[{key:"_callInitFunction",value:function(){"function"==typeof this.init&&this.init()}},{key:"_initProjectorMode",value:function(){var e=this.constructor.projectorMode;this._projectorMode=e||"append"}},{key:"_supportsAdoptedStyleSheets",get:function(){return!(!document.adoptedStyleSheets||!CSSStyleSheet)}},{key:"_shadowRootAdoptMapStyle",value:function(e){var t=new CSSStyleSheet;t.replaceSync(!0===b.has(this.tagName)?b.get(this.tagName):e),this.shadowRoot.adoptedStyleSheets=[t]}},{key:"_shadowRootReplaceStyleWithLink",value:function(e,t,n){var r=new Blob([b.get(this.tagName)?b.get(this.tagName):n],{type:"text/css"});return e=e.replace(t,'<link rel="stylesheet" href="'.concat(URL.createObjectURL(r),'" data-tmp="true">'))}},{key:"templateFromString",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n&&!this.shadowRoot&&this.attachShadow({mode:"open"}),n?this.shadowRoot.innerHTML="":this.innerHTML="";var r="<style></style>",o=e.match(/<style[^>]*>([\s\S]*?)<\/style>/);o&&(r=o[0],n&&this._supportsAdoptedStyleSheets?(e=e.replace(o[0],""),this._shadowRootAdoptMapStyle(o[1])):n?e=this._shadowRootReplaceStyleWithLink(e,o[0],o[1]):(e=e.replace(o[0],""),this.adoptStyle(document,o[1])));var i=document.createElement("template");i.innerHTML=e;var a=document.importNode(i.content,!0),u=function(){if(b.has(t.tagName))return b.get(t.tagName);var e=document.createElement("template");e.innerHTML=r,window.ShadyCSS.prepareTemplate(e,"x-tmp");var n=e.content.cloneNode(!0).querySelector("style").textContent,o=new Blob([n],{type:"text/css"}),i=URL.createObjectURL(o);return b.set(t.tagName,i),i};return n&&(window.addEventListener("customStyleConnected",(function(){setTimeout((function(){if(o&&t._supportsAdoptedStyleSheets){e=e.replace(o[0],"");var n=new CSSStyleSheet,i=function(){if(b.has(t.tagName))return b.get(t.tagName);var e=document.createElement("template");e.innerHTML=r,window.ShadyCSS.prepareTemplate(e,"x-tmp");var n=e.content.cloneNode(!0).querySelector("style").textContent;return b.set(t.tagName,n),n}();n.replaceSync(i),t.shadowRoot.adoptedStyleSheets=[n]}else t._revokeAndUpdateLinkUrl(u)}),300)})),setTimeout((function(){t._revokeAndUpdateLinkUrl(u)}),100)),a}},{key:"_revokeAndUpdateLinkUrl",value:function(e){var t=this.shadowRoot.querySelector("link");t&&(t.hasAttribute("data-tmp")&&(URL.revokeObjectURL(t.href),t.removeAttribute("data-tmp")),t.href=e())}},{key:"_getHashCode",value:function(e){for(var t=0,n=0;t<e.length;t++)n=Math.imul(31,n)+e.charCodeAt(t)|0;return n}},{key:"adoptStyle",value:function(e,t){var n=0;if(!(e instanceof Document&&(n=this._getHashCode(t),-1!==S.indexOf(n)))){if(this._supportsAdoptedStyleSheets){var r=new CSSStyleSheet;r.replaceSync(t),e.adoptedStyleSheets=[].concat(i(e.adoptedStyleSheets),[r])}else{var o=new Blob([t],{type:"text/css"}),a=URL.createObjectURL(o),u=document.createElement("link");u.setAttribute("rel","stylesheet"),u.setAttribute("href",a),e instanceof Document?e.head.appendChild(u):e.appendChild(u)}0!==n&&S.push(n)}}},{key:"createProjector",value:function(e,t){var n=this;return new Promise((function(r,o){var i,a=n._projectorMode;setTimeout((function(){(i=window.Maquette.createProjector())[a](e,t),n._projector=i,r(i),n.dispatchEvent(new CustomEvent("firstRender",{}))}),1)}))}},{key:"renderNow",value:function(){this._projector&&this._projector.renderNow()}}],o&&u(r.prototype,o),a&&u(r,a),Object.defineProperty(r,"prototype",{writable:!1}),s}(c(HTMLElement));function E(e){return E="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(e)}function T(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e){var t=H();return function(){var n,r=x(e);if(t){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function A(e){var t="function"==typeof Map?new Map:void 0;return A=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;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,n)}function n(){return O(e,arguments,x(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_(n,e)},A(e)}function O(e,t,n){return O=H()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&_(o,n.prototype),o},O.apply(null,arguments)}function H(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var N=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(i,e);var t,n,r,o=C(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(n=[{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");if(n.textContent=t,window.ShadyCSS.CustomStyleInterface.addCustomStyle(n),window.ShadyCSS.styleSubtree(e),document.adoptedStyleSheets&&CSSStyleSheet){var r=new CSSStyleSheet;r.replaceSync(n.textContent),document.adoptedStyleSheets=[].concat(T(document.adoptedStyleSheets),[r])}else{var o=new Blob([n.textContent],{type:"text/css"}),i=document.createElement("link");i.rel="stylesheet",i.href=URL.createObjectURL(o),document.getElementsByTagName("head")[0].appendChild(i)}setTimeout((function(){e.dispatchEvent(new CustomEvent("customStyleConnected",{detail:{customStyle:n},bubbles:!0,cancelable:!1}))}),100)}))}))}}])&&L(t.prototype,n),r&&L(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(A(HTMLLinkElement));window.customElements.define("custom-style",N,{extends:"link"});var j=n(50),k=n(277),I=function(){var e,t;return{invalidate:function(){t=void 0,e=void 0},result:function(n,r){if(e)for(var o=0;o<n.length;o++)e[o]!==n[o]&&(t=void 0);return t||(t=r(),e=n),t}}},P=function(e,t,n){var r=[],o=[];return{results:o,map:function(i){for(var a=i.map(e),u=o.slice(),l=0,c=0;c<i.length;c++){var s=i[c],f=a[c];if(f===r[l])o[c]=u[l],n(s,u[l],c),l++;else{for(var p=!1,d=1;d<r.length+1;d++){var h=(l+d)%r.length;if(r[h]===f){o[c]=u[h],n(i[c],u[h],c),l=h+1,p=!0;break}}p||(o[c]=t(s,c))}}o.length=i.length,r=a}}};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},R(e)}var D="http://www.w3.org/",F=D+"2000/svg",V=D+"1999/xlink",B=[],U=[],q=!1,$=function e(t){var n;(t.children||[]).forEach(e),null!=t&&null!==(n=t.properties)&&void 0!==n&&n.afterRemoved&&t.properties.afterRemoved.apply(t.properties.bind||t.properties,[t.domNode])},W=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)},z=function(e){if("string"!=typeof e)throw new Error("Style values must be strings")},Z=function(e,t,n){if(""!==t.vnodeSelector)for(var r=n;r<e.length;r++)if(W(e[r],t))return r;return-1},K=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(W(u,o))throw"added"===r?new Error(n.vnodeSelector+" had a "+o.vnodeSelector+" child added, but there is now more than one. You must add unique key properties to make them distinguishable."):new Error(n.vnodeSelector+" had a "+o.vnodeSelector+" child removed, but there were more than one. You must add unique key properties to make them distinguishable.")}}},X=function(e,t){if(e.properties){var n=e.properties.enterAnimation;n&&("function"==typeof n?n(e.domNode,e.properties):t.enter(e.domNode,e.properties,n))}},Y=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},G=function(e,t,n){if(function(e,t,n){if(t)for(var r=0;r<t.length;r++)J(t[r],e,void 0,n)}(e,t.children,n),t.text&&(e.textContent=t.text),t.properties&&t.properties.eventListeners){if(!Array.isArray(t.properties.eventListeners))throw new Error("eventListeners value must be an array");t.properties.eventListeners.forEach((function(t){e.addEventListener(t[0],t[1],t[2])}))}!function(e,t,n){if(t)for(var r=n.eventHandlerInterceptor,o=Object.keys(t),i=o.length,a=function(i){var a,u=o[i],l=t[u];if("className"===u)throw new Error('Property "className" is not supported, use "class".');if("class"===u)!function(e,t,n){t&&t.split(" ").forEach((function(t){t&&e.classList.toggle(t,n)}))}(e,l,!0);else if("classes"===u)for(var c=Object.keys(l),s=c.length,f=0;f<s;f++){var p=c[f];l[p]&&e.classList.add(p)}else if("styles"===u)for(var d=Object.keys(l),h=d.length,m=0;m<h;m++){var y=d[m],v=l[y];v&&(z(v),n.styleApplyer(e,y,v))}else if("key"!==u&&null!=l){var g=R(l);"function"===g?(0===u.lastIndexOf("on",0)&&(r&&(l=r(u,l,e,t)),"oninput"===u&&(a=l,l=function(e){a.apply(this,[e]),e.target["oninput-value"]=e.target.value})),e[u]=l):n.namespace===F?"href"===u?e.setAttributeNS(V,u,l):e.setAttribute(u,l):"string"===g&&"value"!==u&&"innerHTML"!==u?e.setAttribute(u,l):e[u]=l}},u=0;u<i;u++)a(u)}(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])},Q=function(e,t){return{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)");oe(e,n,t),e=n},domNode:e.domNode}},J=function(e,t,n,r){var o,i,a,u,l,c=0,s=e.vnodeSelector,f=t.ownerDocument;if(""===s)o=e.domNode=f.createTextNode(e.text),void 0!==n?t.insertBefore(o,n):t.appendChild(o);else{for(i=0;i<=s.length;++i)if(a=s.charAt(i),i===s.length||"."===a||"#"===a){if(u=s.charAt(c-1),l=s.slice(c,i),"."===u)o.classList.add(l);else if("#"===u)o.id=l;else{if("svg"===l&&(r=Y(r,{namespace:F})),void 0!==r.namespace)o=e.domNode=f.createElementNS(r.namespace,l);else{var p=void 0;e.properties&&e.properties.is?function(){var t=document.createElement("div");t.style.display="none",document.body.appendChild(t),t.innerHTML="<".concat(l,' is="').concat(e.properties.is,'"></').concat(l,">"),setTimeout((function(){document.body.removeChild(t)}),10),p=f.createElement(l,{is:e.properties.is})}():p=f.createElement(l),o=e.domNode=e.domNode||p,"input"===l&&e.properties&&void 0!==e.properties.type&&o.setAttribute("type",e.properties.type)}o&&(void 0!==n?t.insertBefore(o,n):o.parentNode!==t&&t.appendChild(o))}c=i+1}G(o,e,r)}},ee=function(e,t){var n=e.domNode;if(e.properties){e.properties.eventListeners&&Array.isArray(e.properties.eventListeners)&&e.properties.eventListeners.forEach((function(e){n.removeEventListener(e[0],e[1])}));var r=e.properties.exitAnimation;if(r){n.style.pointerEvents="none";var o=function(){n.parentNode&&(n.parentNode.removeChild(n),te(e))};return"function"==typeof r?void r(n,o,e.properties):void t.exit(e.domNode,e.properties,r,o)}}n.parentNode&&(n.parentNode.removeChild(n),te(e))},te=function(e){U.push(e),q||(q=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(ne,{timeout:16}):setTimeout(ne,16))},ne=function(){q=!1,U.forEach($),U.length=0},re=function(e,t,n,r,o){if(n===r)return!1;r=r||B;for(var i,a=(n=n||B).length,u=r.length,l=o.transitions,c=0,s=0,f=!1;s<u;){var p=c<a?n[c]:void 0,d=r[s];if(void 0!==p&&W(p,d))f=oe(p,d,o)||f,c++;else{var h=Z(n,d,c+1);if(h>=0){for(i=c;i<h;i++)ee(n[i],l),K(n,i,e,"removed");f=oe(n[h],d,o)||f,c=h+1}else J(d,t,c<a?n[c].domNode:void 0,o),X(d,l),K(r,s,e,"added")}s++}if(a>c)for(i=c;i<a;i++)ee(n[i],l),K(n,i,e,"removed");return f},oe=function(e,t,n){var r=e.domNode,o=!1;if(e===t)return!1;var i=!1;if(""===t.vnodeSelector){if(t.text!==e.text){var a=r.ownerDocument.createTextNode(t.text);return r.parentNode.replaceChild(a,r),t.domNode=a,o=!0}}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(n=Y(n,{namespace:F})),e.text!==t.text&&(i=!0,void 0===t.text?r.removeChild(r.firstChild):r.textContent=t.text),i=re(t,r,e.children,t.children,n)||i,i=ie(r,e.properties,t.properties,n)||i,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[r,n,t.vnodeSelector,t.properties,t.children]);return i&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(r,t.properties,e.properties),t.domNode=e.domNode,o},ie=function(e,t,n,r){if(n){for(var o=!1,i=Object.keys(n),a=i.length,u=0;u<a;u++){var l=i[u],c=n[l],s=t[l];if("class"===l){if(s!==c)throw new Error('"class" property may not be updated. Use the "classes" property for conditional css classes.')}else if("classes"===l)for(var f=e.classList,p=Object.keys(c),d=p.length,h=0;h<d;h++){var m=p[h],y=!!c[m];y!==!!s[m]&&(o=!0,y?f.add(m):f.remove(m))}else if("styles"===l)for(var v=Object.keys(c),g=v.length,b=0;b<g;b++){var S=v[b],w=c[S];w!==s[S]&&(o=!0,w?(z(w),r.styleApplyer(e,S,w)):r.styleApplyer(e,S,""))}else if(c||"string"!=typeof s||(c=""),"value"===l){var E=e[l];E!==c&&(e["oninput-value"]?E===e["oninput-value"]:c!==s)&&(e[l]=c,e["oninput-value"]=void 0),c!==s&&(o=!0)}else if(c!==s){var T=R(c);if("function"===T)throw new Error("Functions may not be updated on subsequent renders (property: "+l+"). Hint: declare event handler functions outside the render() function.");"string"===T&&"innerHTML"!==l?r.namespace===F&&"href"===l?e.setAttributeNS(V,l,c):"role"===l&&""===c?e.removeAttribute(l):e.setAttribute(l,c):e[l]!==c&&(e[l]=c),o=!0}}return o}},ae=function(){throw new Error("Provide a transitions object to the projectionOptions to do animations")},ue={namespace:void 0,eventHandlerInterceptor:void 0,styleApplyer:function(e,t,n){e.style[t]=n},transitions:{enter:ae,exit:ae}},le=function(e){return Y(ue,e)},ce={create:function(e,t){return t=le(t),J(e,document.createElement("div"),void 0,t),Q(e,t)},append:function(e,t,n){return n=le(n),J(t,e,void 0,n),Q(t,n)},insertBefore:function(e,t,n){return n=le(n),J(t,e.parentNode,e,n),Q(t,n)},merge:function(e,t,n){return n=le(n),t.domNode=e,G(e,t,n),Q(t,n)},replace:function(e,t,n){return n=le(n),J(t,e.parentNode,e,n),e.parentNode.removeChild(e),Q(t,n)}},se=function(e){var t,n=le(e);n.eventHandlerInterceptor=function(e,n,r,o){return function(){return t.scheduleRender(),n.apply(o.bind||this,arguments)}};var r,o=!0,i=!1,a=[],u=[],l=function(){if(r=void 0,o){o=!1;for(var e=0;e<a.length;e++){var t=u[e]();a[e].update(t)}o=!0}};return t={renderNow:l,scheduleRender:function(){r||i||(r=requestAnimationFrame(l))},stop:function(){r&&(cancelAnimationFrame(r),r=void 0),i=!0},resume:function(){i=!1,o=!0,t.scheduleRender()},append:function(e,t){a.push(ce.append(e,t(),n)),u.push(t)},insertBefore:function(e,t){a.push(ce.insertBefore(e,t(),n)),u.push(t)},merge:function(e,t){a.push(ce.merge(e,t(),n)),u.push(t)},replace:function(e,t){a.push(ce.replace(e,t(),n)),u.push(t)},detach:function(e){for(var t=0;t<u.length;t++)if(u[t]===e)return u.splice(t,1),a.splice(t,1)[0];throw new Error("renderMaquetteFunction was not found")}}};function fe(e){return fe="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},fe(e)}var pe=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},de=function e(t,n,r){for(var o=0,i=n.length;o<i;o++){var a=n[o];Array.isArray(a)?e(t,a,r):null!=a&&(a.hasOwnProperty("vnodeSelector")||(a=pe(a)),r.push(a))}},he=function(e){var t=arguments[1];if("string"!=typeof e)throw new Error;var n,r,o=1;!t||t.hasOwnProperty("vnodeSelector")||Array.isArray(t)||"object"!==fe(t)?t=void 0:o=2;var i=arguments.length;if(i===o+1){var a=arguments[o];"string"==typeof a?n=a:null!=a&&1===a.length&&"string"==typeof a[0]&&(n=a[0])}if(void 0===n)for(r=[];o<i;o++){var u=arguments[o];null==u||(Array.isArray(u)?de(e,u,r):u.hasOwnProperty("vnodeSelector")?r.push(u):r.push(pe(u)))}return{vnodeSelector:e,properties:t,children:r,text:""===n?void 0:n,domNode:null}};!function(e){e._=j,e.Maquette={createCache:I,createMapping:P,createProjector:se,dom:ce,h:he},e.h=he,e.anime=k,e.customElements.whenDefined("custom-style").then((function(){return document.body.parentElement.classList.add("custom-style-defined")})),e.CustomElement=w,e.CustomElementConfig=y,e.CustomStyleElement=N,e.PropertyRenderOnSet=v,e.RenderOnSet=v,e.Bind=m}(window)},765:()=>{
|
|
1
|
+
/*! P-ELEMENTS 1.2.5 - Thu Nov 30 2023 20:53:26 GMT+0100 (Central European Standard Time) */(()=>{var e={259:function(){(function(){"use strict";var e,t,n=!(window.ShadyDOM&&window.ShadyDOM.inUse);function r(t){e=(!t||!t.shimcssproperties)&&(n||!(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.cssBuild&&(t=window.ShadyCSS.cssBuild),window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?e=window.ShadyCSS.nativeCss:window.ShadyCSS?(r(window.ShadyCSS),window.ShadyCSS=void 0):r(window.WebComponents&&window.WebComponents.flags);var o=e,i=t;function a(){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 u(e){var t=l,n=e=e.replace(h,"").replace(m,""),r=new a;r.start=0,r.end=n.length;for(var o=r,i=0,u=n.length;i<u;i++)if("{"===n[i]){o.rules||(o.rules=[]);var c=o,s=c.rules[c.rules.length-1]||null;(o=new a).start=i+1,o.parent=c,o.previous=s,c.rules.push(o)}else"}"===n[i]&&(o.end=i+1,o=o.parent||r);return t(r,e)}function l(e,t){var n=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=n.trim(),e.parent&&(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)),n=(n=n.replace(w," ")).substring(n.lastIndexOf(";")+1),n=e.parsedSelector=e.selector=n.trim(),e.atRule=0===n.indexOf("@"),e.atRule?0===n.indexOf("@media")?e.type=p:n.match(S)&&(e.type=f,e.keyframesName=e.selector.split(w).pop()):e.type=0===n.indexOf("--")?d:s),n=e.rules)for(var r=0,o=n.length,i=void 0;r<o&&(i=n[r]);r++)l(i,t);return e}function c(e,t,n){n=void 0===n?"":n;var r="";if(e.cssText||e.rules){var o,i=e.rules;if((o=i)&&(o=!((o=i[0])&&o.selector&&0===o.selector.indexOf("--"))),o){o=0;for(var a=i.length,u=void 0;o<a&&(u=i[o]);o++)r=c(u,t,r)}else t?t=e.cssText:t=(t=(t=e.cssText).replace(y,"").replace(v,"")).replace(g,"").replace(b,""),(r=t.trim())&&(r=" "+r+"\n")}return r&&(e.selector&&(n+=e.selector+" {\n"),n+=r,e.selector&&(n+="}\n\n")),n}var s=1,f=7,p=4,d=1e3,h=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,m=/@import[^;]*;/gim,y=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,v=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,g=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,b=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,S=/^@[^\s]*keyframes/,w=/\s+/g,E=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,T=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,M=/@media\s(.*)/,L=new Set;function C(e){return e?("string"==typeof e&&(e=u(e)),c(e,o)):""}function A(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=u(e.textContent)),e.__cssRules||null}function O(e,t,n,r){if(e){var o=!1,i=e.type;if(r&&i===p){var a=e.selector.match(M);a&&(window.matchMedia(a[1]).matches||(o=!0))}if(i===s?t(e):n&&i===f?n(e):i===d&&(o=!0),(e=e.rules)&&!o)for(o=0,i=e.length,a=void 0;o<i&&(a=e[o]);o++)O(a,t,n,r)}}function H(e,t){var n=e.indexOf("var(");if(-1===n)return t(e,"","","");e:{for(var r=0,o=n+3,i=e.length;o<i;o++)if("("===e[o])r++;else if(")"===e[o]&&0==--r)break e;o=-1}return r=e.substring(n+4,o),n=e.substring(0,n),e=H(e.substring(o+1),t),-1===(o=r.indexOf(","))?t(n,r.trim(),"",e):t(n,r.substring(0,o).trim(),r.substring(o+1).trim(),e)}function _(e){if(void 0!==i)return i;if(void 0===e.__cssBuild){var t=e.getAttribute("css-build");if(t)e.__cssBuild=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.__cssBuild=t}}return e.__cssBuild||""}var x=/;\s*/m,N=/^\s*(initial)|(inherit)\s*$/,j=/\s*!important/;function k(){this.a={}}k.prototype.set=function(e,t){e=e.trim(),this.a[e]={h:t,i:{}}},k.prototype.get=function(e){return e=e.trim(),this.a[e]||null};var I=null;function P(){this.b=this.c=null,this.a=new k}function R(e,t){for(var n=t;n.parent;)n=n.parent;var r={},o=!1;return O(n,(function(n){(o=o||n===t)||n.selector===t.selector&&Object.assign(r,F(e,n.parsedCssText))})),r}function D(e,t,n){for(var r;r=T.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 u=n?R(e,n):{};Object.assign(u,F(e,a)),o=void 0;var l=e;i=i.replace(x,"");var c=[],s=l.a.get(i);if(s||(l.a.set(i,{}),s=l.a.get(i)),s){l.c&&(s.i[l.c]=!0);var f=s.h;for(o in f)s=[o,": var(",i,"_-_",o],(l=u&&u[o])&&s.push(",",l.replace(j,"")),s.push(")"),j.test(f[o])&&s.push(" !important"),c.push(s.join(""))}t=a+(o=c.join("; "))+t,T.lastIndex=r+o.length}return t}function F(e,t,n){n=void 0!==n&&n,t=t.split(";");for(var r,o,i,a={},u=0;u<t.length;u++)if((r=t[u])&&1<(i=r.split(":")).length){if(r=i[0].trim(),o=i.slice(1).join(":"),n){var l=e;i=r;var c=N.exec(o);c&&(c[1]?(l.b||(l.b=document.createElement("meta"),l.b.setAttribute("apply-shim-measure",""),l.b.style.all="initial",document.head.appendChild(l.b)),i=window.getComputedStyle(l.b).getPropertyValue(i)):i="apply-shim-inherit",o=i)}a[r]=o}return a}P.prototype.o=function(e){return e=T.test(e)||E.test(e),T.lastIndex=0,E.lastIndex=0,e},P.prototype.m=function(e,t){if(void 0===e._gatheredStyle){for(var r=[],o=e.content.querySelectorAll("style"),i=0;i<o.length;i++){var a=o[i];if(a.hasAttribute("shady-unscoped")){if(!n){var u=a.textContent;L.has(u)||(L.add(u),u=a.cloneNode(!0),document.head.appendChild(u)),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._gatheredStyle=r}return(e=e._gatheredStyle)?this.j(e,t):null},P.prototype.j=function(e,t){t=void 0===t?"":t;var n=A(e);return this.l(n,t),e.textContent=C(n),n},P.prototype.f=function(e){var t=this,n=A(e);return O(n,(function(e){":root"===e.selector&&(e.selector="html"),t.g(e)})),e.textContent=C(n),n},P.prototype.l=function(e,t){var n=this;this.c=t,O(e,(function(e){n.g(e)})),this.c=null},P.prototype.g=function(e){e.cssText=function(e,t,n){return t=t.replace(E,(function(t,r,o,i){return function(e,t,n,r,o,i){if(r&&H(r,(function(t,n){n&&e.a.get(n)&&(o="@apply "+n+";")})),!o)return t;var a=D(e,""+o,i);i=t.slice(0,t.indexOf("--"));var u=a=F(e,a,!0),l=e.a.get(n),c=l&&l.h;c?u=Object.assign(Object.create(c),a):e.a.set(n,u);var s,f=[],p=!1;for(s in u){var d=a[s];void 0===d&&(d="initial"),!c||s in c||(p=!0),f.push(n+"_-_"+s+": "+d)}return p&&function(e,t){if(I)for(var n in t.i)n!==e.c&&I(n)}(e,l),l&&(l.h=u),r&&(i=t+";"+i),i+f.join("; ")+";"}(e,t,r,o,i,n)})),D(e,t,n)}(this,e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")},P.prototype.detectMixin=P.prototype.o,P.prototype.transformStyle=P.prototype.j,P.prototype.transformCustomStyle=P.prototype.f,P.prototype.transformRules=P.prototype.l,P.prototype.transformRule=P.prototype.g,P.prototype.transformTemplate=P.prototype.m,P.prototype._separator="_-_",Object.defineProperty(P.prototype,"invalidCallback",{get:function(){return I},set:function(e){I=e}});var V={},B=Promise.resolve();function U(e){(e=V[e])&&(e._applyShimCurrentVersion=e._applyShimCurrentVersion||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e._applyShimNextVersion=(e._applyShimNextVersion||0)+1)}function q(e){return e._applyShimCurrentVersion===e._applyShimNextVersion}var $=new P;function W(){this.a=null,$.invalidCallback=U}function z(e){!e.a&&window.ShadyCSS.CustomStyleInterface&&(e.a=window.ShadyCSS.CustomStyleInterface,e.a.transformCallback=function(e){$.f(e)},e.a.validateCallback=function(){requestAnimationFrame((function(){e.a.enqueued&&e.flushCustomStyles()}))})}if(W.prototype.prepareTemplate=function(e,t){z(this),""===_(e)&&(V[t]=e,t=$.m(e,t),e._styleAst=t)},W.prototype.flushCustomStyles=function(){if(z(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&&$.f(n)}this.a.enqueued=!1}}},W.prototype.styleSubtree=function(e,t){if(z(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])},W.prototype.styleElement=function(e){z(this);var t,n=e.localName;t=n?-1<n.indexOf("-")?n:e.getAttribute&&e.getAttribute("is")||"":e.is,(n=V[t])&&""!==_(n)||!n||q(n)||((q(n)||n._applyShimValidatingVersion!==n._applyShimNextVersion)&&(this.prepareTemplate(n,t),function(e){e._applyShimValidatingVersion=e._applyShimNextVersion,e._validating||(e._validating=!0,B.then((function(){e._applyShimCurrentVersion=e._applyShimNextVersion,e._validating=!1})))}(n)),(e=e.shadowRoot)&&(e=e.querySelector("style"))&&(e.__cssRules=n._styleAst,e.textContent=C(n._styleAst)))},W.prototype.styleDocument=function(e){z(this),this.styleSubtree(document.body,e)},!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Z=new W,K=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(e,t){Z.flushCustomStyles(),Z.prepareTemplate(e,t)},prepareTemplateStyles:function(e,t,n){window.ShadyCSS.prepareTemplate(e,t,n)},prepareTemplateDom:function(){},styleSubtree:function(e,t){Z.flushCustomStyles(),Z.styleSubtree(e,t)},styleElement:function(e){Z.flushCustomStyles(),Z.styleElement(e)},styleDocument:function(e){Z.flushCustomStyles(),Z.styleDocument(e)},getComputedStyleValue:function(e,t){return(e=window.getComputedStyle(e).getPropertyValue(t))?e.trim():""},flushCustomStyles:function(){Z.flushCustomStyles()},nativeCss:o,nativeShadow:n,cssBuild:i},K&&(window.ShadyCSS.CustomStyleInterface=K)}window.ShadyCSS.ApplyShim=$}).call(this)},659:function(){(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 u(e){!e.enqueued&&i&&(e.enqueued=!0,r(i))}function l(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),u(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&&u(this)}}});var c,s,f=!(window.ShadyDOM&&window.ShadyDOM.inUse);function p(e){c=(!e||!e.shimcssproperties)&&(f||!(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.cssBuild&&(s=window.ShadyCSS.cssBuild),window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?c=window.ShadyCSS.nativeCss:window.ShadyCSS?(p(window.ShadyCSS),window.ShadyCSS=void 0):p(window.WebComponents&&window.WebComponents.flags);var d=c,h=s,m=new a;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},prepareTemplateDom:function(){},prepareTemplateStyles:function(){},styleSubtree:function(e,t){m.a(),l(e,t)},styleElement:function(){m.a()},styleDocument:function(e){m.a(),l(document.body,e)},getComputedStyleValue:function(e,t){return(e=window.getComputedStyle(e).getPropertyValue(t))?e.trim():""},flushCustomStyles:function(){},nativeCss:d,nativeShadow:f,cssBuild:h}),window.ShadyCSS.CustomStyleInterface=m}).call(this)},277:function(e,t,n){var r,o,i,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},a.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==n.g&&null!=n.g?n.g:e},a.global=a.getGlobal(this),a.SYMBOL_PREFIX="jscomp_symbol_",a.initSymbol=function(){a.initSymbol=function(){},a.global.Symbol||(a.global.Symbol=a.Symbol)},a.symbolCounter_=0,a.Symbol=function(e){return a.SYMBOL_PREFIX+(e||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var e=a.global.Symbol.iterator;e||(e=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&a.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(e){var t=0;return a.iteratorPrototype((function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}))},a.iteratorPrototype=function(e){return a.initSymbolIterator(),(e={next:e})[a.global.Symbol.iterator]=function(){return this},e},a.array=a.array||{},a.iteratorFromArray=function(e,t){a.initSymbolIterator(),e instanceof String&&(e+="");var n=0,r={next:function(){if(n<e.length){var o=n++;return{value:t(o,e[o]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},a.polyfill=function(e,t,n,r){if(t){for(n=a.global,e=e.split("."),r=0;r<e.length-1;r++){var o=e[r];o in n||(n[o]={}),n=n[o]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&a.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},a.polyfill("Array.prototype.keys",(function(e){return e||function(){return a.iteratorFromArray(this,(function(e){return e}))}}),"es6-impl","es3");var u=this;o=[],r=function(){function e(e){if(!D.col(e))try{return document.querySelectorAll(e)}catch(e){}}function t(e,t){for(var n=e.length,r=2<=arguments.length?arguments[1]:void 0,o=[],i=0;i<n;i++)if(i in e){var a=e[i];t.call(r,a,i,e)&&o.push(a)}return o}function n(e){return e.reduce((function(e,t){return e.concat(D.arr(t)?n(t):t)}),[])}function r(t){return D.arr(t)?t:(D.str(t)&&(t=e(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function o(e,t){return e.some((function(e){return e===t}))}function i(e){var t,n={};for(t in e)n[t]=e[t];return n}function a(e,t){var n,r=i(e);for(n in e)r[n]=t.hasOwnProperty(n)?t[n]:e[n];return r}function l(e,t){var n,r=i(e);for(n in t)r[n]=D.und(e[n])?t[n]:e[n];return r}function c(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+(e=parseInt(t[1],16))+","+parseInt(t[2],16)+","+(t=parseInt(t[3],16))+",1)"}function s(e){function t(e,t,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:.5>n?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e);e=parseInt(n[1])/360;var r=parseInt(n[2])/100,o=parseInt(n[3])/100;if(n=n[4]||1,0==r)o=r=e=o;else{var i=.5>o?o*(1+r):o+r-o*r,a=2*o-i;o=t(a,i,e+1/3),r=t(a,i,e),e=t(a,i,e-1/3)}return"rgba("+255*o+","+255*r+","+255*e+","+n+")"}function f(e){if(e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e))return e[2]}function p(e){return-1<e.indexOf("translate")||"perspective"===e?"px":-1<e.indexOf("rotate")||-1<e.indexOf("skew")?"deg":void 0}function d(e,t){return D.fnc(e)?e(t.target,t.id,t.total):e}function h(e,t){if(t in e.style)return getComputedStyle(e).getPropertyValue(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function m(e,t){return D.dom(e)&&o(R,t)?"transform":D.dom(e)&&(e.getAttribute(t)||D.svg(e)&&e[t])?"attribute":D.dom(e)&&"transform"!==t&&h(e,t)?"css":null!=e[t]?"object":void 0}function y(e,n){var r=p(n);if(r=-1<n.indexOf("scale")?1:0+r,!(e=e.style.transform))return r;for(var o=[],i=[],a=[],u=/(\w+)\((.+?)\)/g;o=u.exec(e);)i.push(o[1]),a.push(o[2]);return e=t(a,(function(e,t){return i[t]===n})),e.length?e[0]:r}function v(e,t){switch(m(e,t)){case"transform":return y(e,t);case"css":return h(e,t);case"attribute":return e.getAttribute(t)}return e[t]||0}function g(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=f(e)||0;switch(t=parseFloat(t),e=parseFloat(e.replace(n[0],"")),n[0][0]){case"+":return t+e+r;case"-":return t-e+r;case"*":return t*e+r}}function b(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function S(e){e=e.points;for(var t,n=0,r=0;r<e.numberOfItems;r++){var o=e.getItem(r);0<r&&(n+=b(t,o)),t=o}return n}function w(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*e.getAttribute("r");case"rect":return 2*e.getAttribute("width")+2*e.getAttribute("height");case"line":return b({x:e.getAttribute("x1"),y:e.getAttribute("y1")},{x:e.getAttribute("x2"),y:e.getAttribute("y2")});case"polyline":return S(e);case"polygon":var t=e.points;return S(e)+b(t.getItem(t.numberOfItems-1),t.getItem(0))}}function E(e,t){function n(n){return n=void 0===n?0:n,e.el.getPointAtLength(1<=t+n?t+n:0)}var r=n(),o=n(-1),i=n(1);switch(e.property){case"x":return r.x;case"y":return r.y;case"angle":return 180*Math.atan2(i.y-o.y,i.x-o.x)/Math.PI}}function T(e,t){var n,r=/-?\d*\.?\d+/g;if(n=D.pth(e)?e.totalLength:e,D.col(n))if(D.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=D.hex(n)?c(n):D.hsl(n)?s(n):void 0;else o=(o=f(n))?n.substr(0,n.length-o.length):n,n=t&&!/\s/g.test(n)?o+t:o;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:D.str(e)||t?n.split(r):[]}}function M(e){return t(e=e?n(D.arr(e)?e.map(r):r(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function L(e){var t=M(e);return t.map((function(e,n){return{target:e,id:n,total:t.length}}))}function C(e,t){var n=i(t);if(D.arr(e)){var o=e.length;2!==o||D.obj(e[0])?D.fnc(t.duration)||(n.duration=t.duration/o):e={value:e}}return r(e).map((function(e,n){return n=n?0:t.delay,e=D.obj(e)&&!D.pth(e)?e:{value:e},D.und(e.delay)&&(e.delay=n),e})).map((function(e){return l(e,n)}))}function A(e,t){var n,r={};for(n in e){var o=d(e[n],t);D.arr(o)&&(o=o.map((function(e){return d(e,t)})),1===o.length&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function O(e){return D.arr(e)?F.apply(this,e):V[e]}function H(e,t){var n;return e.tweens.map((function(r){var o=(r=A(r,t)).value,i=v(t.target,e.name),a=n?n.to.original:i,u=(a=D.arr(o)?o[0]:a,g(D.arr(o)?o[1]:o,a));return i=f(u)||f(a)||f(i),r.from=T(a,i),r.to=T(u,i),r.start=n?n.end:e.offset,r.end=r.start+r.delay+r.duration,r.easing=O(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=D.pth(o),r.isColor=D.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function _(e,r){return t(n(e.map((function(e){return r.map((function(t){var n=m(e.target,t.name);if(n){var r=H(t,e);t={type:n,property:t.name,animatable:e,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else t=void 0;return t}))}))),(function(e){return!D.und(e)}))}function x(e,t,n,r){var o="delay"===e;return t.length?(o?Math.min:Math.max).apply(Math,t.map((function(t){return t[e]}))):o?r.delay:n.offset+r.delay+r.duration}function N(e){var t,n=a(I,e),r=a(P,e),o=L(e.targets),i=[],u=l(n,r);for(t in e)u.hasOwnProperty(t)||"targets"===t||i.push({name:t,offset:u.offset,tweens:C(e[t],r)});return l(n,{children:[],animatables:o,animations:e=_(o,i),duration:x("duration",e,n,r),delay:x("delay",e,n,r)})}function j(e){function n(){return window.Promise&&new Promise((function(e){return f=e}))}function r(e){return d.reversed?d.duration-e:e}function o(e){for(var n=0,r={},o=d.animations,i=o.length;n<i;){var a=o[n],u=a.animatable,l=(c=a.tweens)[p=c.length-1];p&&(l=t(c,(function(t){return e<t.end}))[0]||l);for(var c=Math.min(Math.max(e-l.start-l.delay,0),l.duration)/l.duration,s=isNaN(c)?1:l.easing(c,l.elasticity),f=(c=l.to.strings,l.round),p=[],m=void 0,y=(m=l.to.numbers.length,0);y<m;y++){var v=void 0,g=(v=l.to.numbers[y],l.from.numbers[y]);v=l.isPath?E(l.value,s*v):g+s*(v-g),f&&(l.isColor&&2<y||(v=Math.round(v*f)/f)),p.push(v)}if(l=c.length)for(m=c[0],s=0;s<l;s++)f=c[s+1],y=p[s],isNaN(y)||(m=f?m+(y+f):m+(y+" "));else m=p[0];B[a.type](u.target,a.property,m,r,u.id),a.currentValue=m,n++}if(n=Object.keys(r).length)for(o=0;o<n;o++)k||(k=h(document.body,"transform")?"transform":"-webkit-transform"),d.animatables[o].target.style[k]=r[o].join(" ");d.currentTime=e,d.progress=e/d.duration*100}function i(e){d[e]&&d[e](d)}function a(){d.remaining&&!0!==d.remaining&&d.remaining--}function u(e){var t=d.duration,u=d.offset,h=u+d.delay,m=d.currentTime,y=d.reversed,v=r(e);if(d.children.length){var g=d.children,b=g.length;if(v>=d.currentTime)for(var S=0;S<b;S++)g[S].seek(v);else for(;b--;)g[b].seek(v)}(v>=h||!t)&&(d.began||(d.began=!0,i("begin")),i("run")),v>u&&v<t?o(v):(v<=u&&0!==m&&(o(0),y&&a()),(v>=t&&m!==t||!t)&&(o(t),y||a())),i("update"),e>=t&&(d.remaining?(c=l,"alternate"===d.direction&&(d.reversed=!d.reversed)):(d.pause(),d.completed||(d.completed=!0,i("complete"),"Promise"in window&&(f(),p=n()))),s=0)}e=void 0===e?{}:e;var l,c,s=0,f=null,p=n(),d=N(e);return d.reset=function(){var e=d.direction,t=d.loop;for(d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.completed=!1,d.reversed="reverse"===e,d.remaining="alternate"===e&&1===t?2:t,o(0),e=d.children.length;e--;)d.children[e].reset()},d.tick=function(e){l=e,c||(c=l),u((s+l-c)*j.speed)},d.seek=function(e){u(r(e))},d.pause=function(){var e=U.indexOf(d);-1<e&&U.splice(e,1),d.paused=!0},d.play=function(){d.paused&&(d.paused=!1,c=0,s=r(d.currentTime),U.push(d),q||$())},d.reverse=function(){d.reversed=!d.reversed,c=0,s=r(d.currentTime)},d.restart=function(){d.pause(),d.reset(),d.play()},d.finished=p,d.reset(),d.autoplay&&d.play(),d}var k,I={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},P={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},R="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),D={arr:function(e){return Array.isArray(e)},obj:function(e){return-1<Object.prototype.toString.call(e).indexOf("Object")},pth:function(e){return D.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},dom:function(e){return e.nodeType||D.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return D.hex(e)||D.rgb(e)||D.hsl(e)}},F=function(){function e(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}return function(t,n,r,o){if(0<=t&&1>=t&&0<=r&&1>=r){var i=new Float32Array(11);if(t!==n||r!==o)for(var a=0;11>a;++a)i[a]=e(.1*a,t,r);return function(a){if(t===n&&r===o)return a;if(0===a)return 0;if(1===a)return 1;for(var u=0,l=1;10!==l&&i[l]<=a;++l)u+=.1;--l,l=u+(a-i[l])/(i[l+1]-i[l])*.1;var c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t;if(.001<=c){for(u=0;4>u&&0!=(c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t);++u){var s=e(l,t,r)-a;l-=s/c}a=l}else if(0===c)a=l;else{l=u,u+=.1;var f=0;do{0<(c=e(s=l+(u-l)/2,t,r)-a)?u=s:l=s}while(1e-7<Math.abs(c)&&10>++f);a=s}return e(a,n,o)}}}}(),V=function(){function e(e,t){return 0===e||1===e?e:-Math.pow(2,10*(e-1))*Math.sin(2*(e-1-t/(2*Math.PI)*Math.asin(1))*Math.PI/t)}var t,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],e],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,n){return 1-e(1-t,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,n){return.5>t?e(2*t,n)/2:1-e(-2*t+2,n)/2}]},o={linear:F(.25,.25,.75,.75)},i={};for(t in r)i.type=t,r[i.type].forEach(function(e){return function(t,r){o["ease"+e.type+n[r]]=D.fnc(t)?t:F.apply(u,t)}}(i)),i={type:i.type};return o}(),B={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,o){r[o]||(r[o]=[]),r[o].push(t+"("+n+")")}},U=[],q=0,$=function(){function e(){q=requestAnimationFrame(t)}function t(t){var n=U.length;if(n){for(var r=0;r<n;)U[r]&&U[r].tick(t),r++;e()}else cancelAnimationFrame(q),q=0}return e}();return j.version="2.2.0",j.speed=1,j.running=U,j.remove=function(e){e=M(e);for(var t=U.length;t--;)for(var n=U[t],r=n.animations,i=r.length;i--;)o(e,r[i].animatable.target)&&(r.splice(i,1),r.length||n.pause())},j.getValue=v,j.path=function(t,n){var r=D.str(t)?e(t)[0]:t,o=n||100;return function(e){return{el:r,property:e,totalLength:w(r)*(o/100)}}},j.setDashoffset=function(e){var t=w(e);return e.setAttribute("stroke-dasharray",t),t},j.bezier=F,j.easings=V,j.timeline=function(e){var t=j(e);return t.pause(),t.duration=0,t.add=function(n){return t.children.forEach((function(e){e.began=!0,e.completed=!0})),r(n).forEach((function(n){var r=l(n,a(P,e||{}));r.targets=r.targets||e.targets,n=t.duration;var o=r.offset;r.autoplay=!1,r.direction=t.direction,r.offset=D.und(o)?n:g(o,n),t.began=!0,t.completed=!0,t.seek(r.offset),(r=j(r)).began=!0,r.completed=!0,r.duration>n&&(t.duration=r.duration),t.children.push(r)})),t.seek(0),t.reset(),t.autoplay&&t.restart(),t},t},j.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},j},void 0===(i="function"==typeof r?r.apply(t,o):r)||(e.exports=i)},353:(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},r(e)}function o(e){return o="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},o(e)}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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 l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}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 s(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)},c(e)}function s(e,t,n){return s=f()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&p(o,n.prototype),o},s.apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h,m=function(e,t,n){var o=n.value;if(console.warn("@Bind decorator is deprecated, use arrow function expression"),"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}}},y=function(e){return function(t){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}},v=function(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)}))}})},g=n(425);h=document.registerElement,/\{\s*\[native code\]\s*\}/.test(""+h)||g(window,"auto");var b=new Map,S=[],w=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(s,e);var t,n,r,o,a,c=(t=s,n=f(),function(){var e,r=d(t);if(n){var o=d(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return l(this,e)});function s(e){var t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),t=n=c.call(this,e),n._projector=void 0,n._projectorMode=void 0,e=t,n._callInitFunction(),n._initProjectorMode(),l(n,e)}return r=s,o=[{key:"_callInitFunction",value:function(){"function"==typeof this.init&&this.init()}},{key:"_initProjectorMode",value:function(){var e=this.constructor.projectorMode;this._projectorMode=e||"append"}},{key:"_supportsAdoptedStyleSheets",get:function(){return!(!document.adoptedStyleSheets||!CSSStyleSheet)}},{key:"_shadowRootAdoptMapStyle",value:function(e){var t=new CSSStyleSheet;t.replaceSync(!0===b.has(this.tagName)?b.get(this.tagName):e),this.shadowRoot.adoptedStyleSheets=[t]}},{key:"_shadowRootReplaceStyleWithLink",value:function(e,t,n){var r=new Blob([b.get(this.tagName)?b.get(this.tagName):n],{type:"text/css"});return e=e.replace(t,'<link rel="stylesheet" href="'.concat(URL.createObjectURL(r),'" data-tmp="true">'))}},{key:"templateFromString",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n&&!this.shadowRoot&&this.attachShadow({mode:"open"}),n?this.shadowRoot.innerHTML="":this.innerHTML="";var r="<style></style>",o=e.match(/<style[^>]*>([\s\S]*?)<\/style>/);o&&(r=o[0],n&&this._supportsAdoptedStyleSheets?(e=e.replace(o[0],""),this._shadowRootAdoptMapStyle(o[1])):n?e=this._shadowRootReplaceStyleWithLink(e,o[0],o[1]):(e=e.replace(o[0],""),this.adoptStyle(document,o[1])));var i=document.createElement("template");i.innerHTML=e;var a=document.importNode(i.content,!0),u=function(){if(b.has(t.tagName))return b.get(t.tagName);var e=document.createElement("template");e.innerHTML=r,window.ShadyCSS.prepareTemplate(e,"x-tmp");var n=e.content.cloneNode(!0).querySelector("style").textContent,o=new Blob([n],{type:"text/css"}),i=URL.createObjectURL(o);return b.set(t.tagName,i),i};return n&&(window.addEventListener("customStyleConnected",(function(){setTimeout((function(){if(o&&t._supportsAdoptedStyleSheets){e=e.replace(o[0],"");var n=new CSSStyleSheet,i=function(){if(b.has(t.tagName))return b.get(t.tagName);var e=document.createElement("template");e.innerHTML=r,window.ShadyCSS.prepareTemplate(e,"x-tmp");var n=e.content.cloneNode(!0).querySelector("style").textContent;return b.set(t.tagName,n),n}();n.replaceSync(i),t.shadowRoot.adoptedStyleSheets=[n]}else t._revokeAndUpdateLinkUrl(u)}),300)})),setTimeout((function(){t._revokeAndUpdateLinkUrl(u)}),100)),a}},{key:"_revokeAndUpdateLinkUrl",value:function(e){var t=this.shadowRoot.querySelector("link");t&&(t.hasAttribute("data-tmp")&&(URL.revokeObjectURL(t.href),t.removeAttribute("data-tmp")),t.href=e())}},{key:"_getHashCode",value:function(e){for(var t=0,n=0;t<e.length;t++)n=Math.imul(31,n)+e.charCodeAt(t)|0;return n}},{key:"adoptStyle",value:function(e,t){var n=0;if(!(e instanceof Document&&(n=this._getHashCode(t),-1!==S.indexOf(n)))){if(this._supportsAdoptedStyleSheets){var r=new CSSStyleSheet;r.replaceSync(t),e.adoptedStyleSheets=[].concat(i(e.adoptedStyleSheets),[r])}else{var o=new Blob([t],{type:"text/css"}),a=URL.createObjectURL(o),u=document.createElement("link");u.setAttribute("rel","stylesheet"),u.setAttribute("href",a),e instanceof Document?e.head.appendChild(u):e.appendChild(u)}0!==n&&S.push(n)}}},{key:"createProjector",value:function(e,t){var n=this;return new Promise((function(r,o){var i,a=n._projectorMode?n._projectorMode:"append";setTimeout((function(){(i=window.Maquette.createProjector())[a](e,t),n._projector=i,r(i),n.dispatchEvent(new CustomEvent("firstRender",{}))}),1)}))}},{key:"renderNow",value:function(){this._projector&&this._projector.renderNow()}}],o&&u(r.prototype,o),a&&u(r,a),Object.defineProperty(r,"prototype",{writable:!1}),s}(c(HTMLElement));function E(e){return E="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(e)}function T(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e){var t=H();return function(){var n,r=x(e);if(t){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function A(e){var t="function"==typeof Map?new Map:void 0;return A=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;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,n)}function n(){return O(e,arguments,x(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_(n,e)},A(e)}function O(e,t,n){return O=H()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&_(o,n.prototype),o},O.apply(null,arguments)}function H(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var N=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(i,e);var t,n,r,o=C(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(n=[{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");if(n.textContent=t,window.ShadyCSS.CustomStyleInterface.addCustomStyle(n),window.ShadyCSS.styleSubtree(e),document.adoptedStyleSheets&&CSSStyleSheet){var r=new CSSStyleSheet;r.replaceSync(n.textContent),document.adoptedStyleSheets=[].concat(T(document.adoptedStyleSheets),[r])}else{var o=new Blob([n.textContent],{type:"text/css"}),i=document.createElement("link");i.rel="stylesheet",i.href=URL.createObjectURL(o),document.getElementsByTagName("head")[0].appendChild(i)}setTimeout((function(){e.dispatchEvent(new CustomEvent("customStyleConnected",{detail:{customStyle:n},bubbles:!0,cancelable:!1}))}),100)}))}))}}])&&L(t.prototype,n),r&&L(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(A(HTMLLinkElement));window.customElements.define("custom-style",N,{extends:"link"});var j=n(50),k=n(277),I=function(){var e,t;return{invalidate:function(){t=void 0,e=void 0},result:function(n,r){if(e)for(var o=0;o<n.length;o++)e[o]!==n[o]&&(t=void 0);return t||(t=r(),e=n),t}}},P=function(e,t,n){var r=[],o=[];return{results:o,map:function(i){for(var a=i.map(e),u=o.slice(),l=0,c=0;c<i.length;c++){var s=i[c],f=a[c];if(f===r[l])o[c]=u[l],n(s,u[l],c),l++;else{for(var p=!1,d=1;d<r.length+1;d++){var h=(l+d)%r.length;if(r[h]===f){o[c]=u[h],n(i[c],u[h],c),l=h+1,p=!0;break}}p||(o[c]=t(s,c))}}o.length=i.length,r=a}}};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},R(e)}var D="http://www.w3.org/",F=D+"2000/svg",V=D+"1999/xlink",B=[],U=[],q=!1,$=function e(t){var n;(t.children||[]).forEach(e),null!=t&&null!==(n=t.properties)&&void 0!==n&&n.afterRemoved&&t.properties.afterRemoved.apply(t.properties.bind||t.properties,[t.domNode])},W=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)},z=function(e){if("string"!=typeof e)throw new Error("Style values must be strings")},Z=function(e,t,n){if(""!==t.vnodeSelector)for(var r=n;r<e.length;r++)if(W(e[r],t))return r;return-1},K=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(W(u,o))throw"added"===r?new Error(n.vnodeSelector+" had a "+o.vnodeSelector+" child added, but there is now more than one. You must add unique key properties to make them distinguishable."):new Error(n.vnodeSelector+" had a "+o.vnodeSelector+" child removed, but there were more than one. You must add unique key properties to make them distinguishable.")}}},X=function(e,t){if(e.properties){var n=e.properties.enterAnimation;n&&("function"==typeof n?n(e.domNode,e.properties):t.enter(e.domNode,e.properties,n))}},Y=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},G=function(e,t,n){if(function(e,t,n){if(t)for(var r=0;r<t.length;r++)J(t[r],e,void 0,n)}(e,t.children,n),t.text&&(e.textContent=t.text),t.properties&&t.properties.eventListeners){if(!Array.isArray(t.properties.eventListeners))throw new Error("eventListeners value must be an array");t.properties.eventListeners.forEach((function(t){e.addEventListener(t[0],t[1],t[2])}))}!function(e,t,n){if(t)for(var r=n.eventHandlerInterceptor,o=Object.keys(t),i=o.length,a=function(i){var a,u=o[i],l=t[u];if("className"===u)throw new Error('Property "className" is not supported, use "class".');if("class"===u)!function(e,t,n){t&&t.split(" ").forEach((function(t){t&&e.classList.toggle(t,n)}))}(e,l,!0);else if("classes"===u)for(var c=Object.keys(l),s=c.length,f=0;f<s;f++){var p=c[f];l[p]&&e.classList.add(p)}else if("styles"===u)for(var d=Object.keys(l),h=d.length,m=0;m<h;m++){var y=d[m],v=l[y];v&&(z(v),n.styleApplyer(e,y,v))}else if("key"!==u&&null!=l){var g=R(l);"function"===g?(0===u.lastIndexOf("on",0)&&(r&&(l=r(u,l,e,t)),"oninput"===u&&(a=l,l=function(e){a.apply(this,[e]),e.target["oninput-value"]=e.target.value})),e[u]=l):n.namespace===F?"href"===u?e.setAttributeNS(V,u,l):e.setAttribute(u,l):"string"===g&&"value"!==u&&"innerHTML"!==u?e.setAttribute(u,l):e[u]=l}},u=0;u<i;u++)a(u)}(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])},Q=function(e,t){return{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)");oe(e,n,t),e=n},domNode:e.domNode}},J=function(e,t,n,r){var o,i,a,u,l,c=0,s=e.vnodeSelector,f=t.ownerDocument;if(""===s)o=e.domNode=f.createTextNode(e.text),void 0!==n?t.insertBefore(o,n):t.appendChild(o);else{for(i=0;i<=s.length;++i)if(a=s.charAt(i),i===s.length||"."===a||"#"===a){if(u=s.charAt(c-1),l=s.slice(c,i),"."===u)o.classList.add(l);else if("#"===u)o.id=l;else{if("svg"===l&&(r=Y(r,{namespace:F})),void 0!==r.namespace)o=e.domNode=f.createElementNS(r.namespace,l);else{var p=void 0;e.properties&&e.properties.is?function(){var t=document.createElement("div");t.style.display="none",document.body.appendChild(t),t.innerHTML="<".concat(l,' is="').concat(e.properties.is,'"></').concat(l,">"),setTimeout((function(){document.body.removeChild(t)}),10),p=f.createElement(l,{is:e.properties.is})}():p=f.createElement(l),o=e.domNode=e.domNode||p,"input"===l&&e.properties&&void 0!==e.properties.type&&o.setAttribute("type",e.properties.type)}o&&(void 0!==n?t.insertBefore(o,n):o.parentNode!==t&&t.appendChild(o))}c=i+1}G(o,e,r)}},ee=function(e,t){var n=e.domNode;if(e.properties){e.properties.eventListeners&&Array.isArray(e.properties.eventListeners)&&e.properties.eventListeners.forEach((function(e){n.removeEventListener(e[0],e[1])}));var r=e.properties.exitAnimation;if(r){n.style.pointerEvents="none";var o=function(){n.parentNode&&(n.parentNode.removeChild(n),te(e))};return"function"==typeof r?void r(n,o,e.properties):void t.exit(e.domNode,e.properties,r,o)}}n.parentNode&&(n.parentNode.removeChild(n),te(e))},te=function(e){U.push(e),q||(q=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(ne,{timeout:16}):setTimeout(ne,16))},ne=function(){q=!1,U.forEach($),U.length=0},re=function(e,t,n,r,o){if(n===r)return!1;r=r||B;for(var i,a=(n=n||B).length,u=r.length,l=o.transitions,c=0,s=0,f=!1;s<u;){var p=c<a?n[c]:void 0,d=r[s];if(void 0!==p&&W(p,d))f=oe(p,d,o)||f,c++;else{var h=Z(n,d,c+1);if(h>=0){for(i=c;i<h;i++)ee(n[i],l),K(n,i,e,"removed");f=oe(n[h],d,o)||f,c=h+1}else J(d,t,c<a?n[c].domNode:void 0,o),X(d,l),K(r,s,e,"added")}s++}if(a>c)for(i=c;i<a;i++)ee(n[i],l),K(n,i,e,"removed");return f},oe=function(e,t,n){var r=e.domNode,o=!1;if(e===t)return!1;var i=!1;if(""===t.vnodeSelector){if(t.text!==e.text){var a=r.ownerDocument.createTextNode(t.text);return r.parentNode.replaceChild(a,r),t.domNode=a,o=!0}}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(n=Y(n,{namespace:F})),e.text!==t.text&&(i=!0,void 0===t.text?r.removeChild(r.firstChild):r.textContent=t.text),i=re(t,r,e.children,t.children,n)||i,i=ie(r,e.properties,t.properties,n)||i,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[r,n,t.vnodeSelector,t.properties,t.children]);return i&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(r,t.properties,e.properties),t.domNode=e.domNode,o},ie=function(e,t,n,r){if(n){for(var o=!1,i=Object.keys(n),a=i.length,u=0;u<a;u++){var l=i[u],c=n[l],s=t[l];if("class"===l){if(s!==c)throw new Error('"class" property may not be updated. Use the "classes" property for conditional css classes.')}else if("classes"===l)for(var f=e.classList,p=Object.keys(c),d=p.length,h=0;h<d;h++){var m=p[h],y=!!c[m];y!==!!s[m]&&(o=!0,y?f.add(m):f.remove(m))}else if("styles"===l)for(var v=Object.keys(c),g=v.length,b=0;b<g;b++){var S=v[b],w=c[S];w!==s[S]&&(o=!0,w?(z(w),r.styleApplyer(e,S,w)):r.styleApplyer(e,S,""))}else if(c||"string"!=typeof s||(c=""),"value"===l){var E=e[l];E!==c&&(e["oninput-value"]?E===e["oninput-value"]:c!==s)&&(e[l]=c,e["oninput-value"]=void 0),c!==s&&(o=!0)}else if(c!==s){var T=R(c);if("function"===T)throw new Error("Functions may not be updated on subsequent renders (property: "+l+"). Hint: declare event handler functions outside the render() function.");"string"===T&&"innerHTML"!==l?r.namespace===F&&"href"===l?e.setAttributeNS(V,l,c):"role"===l&&""===c?e.removeAttribute(l):e.setAttribute(l,c):e[l]!==c&&(e[l]=c),o=!0}}return o}},ae=function(){throw new Error("Provide a transitions object to the projectionOptions to do animations")},ue={namespace:void 0,eventHandlerInterceptor:void 0,styleApplyer:function(e,t,n){e.style[t]=n},transitions:{enter:ae,exit:ae}},le=function(e){return Y(ue,e)},ce={create:function(e,t){return t=le(t),J(e,document.createElement("div"),void 0,t),Q(e,t)},append:function(e,t,n){return n=le(n),J(t,e,void 0,n),Q(t,n)},insertBefore:function(e,t,n){return n=le(n),J(t,e.parentNode,e,n),Q(t,n)},merge:function(e,t,n){return n=le(n),t.domNode=e,G(e,t,n),Q(t,n)},replace:function(e,t,n){return n=le(n),J(t,e.parentNode,e,n),e.parentNode.removeChild(e),Q(t,n)}},se=function(e){var t,n=le(e);n.eventHandlerInterceptor=function(e,n,r,o){return function(){return t.scheduleRender(),n.apply(o.bind||this,arguments)}};var r,o=!0,i=!1,a=[],u=[],l=function(){if(r=void 0,o){o=!1;for(var e=0;e<a.length;e++){var t=u[e]();a[e].update(t)}o=!0}};return t={renderNow:l,scheduleRender:function(){r||i||(r=requestAnimationFrame(l))},stop:function(){r&&(cancelAnimationFrame(r),r=void 0),i=!0},resume:function(){i=!1,o=!0,t.scheduleRender()},append:function(e,t){a.push(ce.append(e,t(),n)),u.push(t)},insertBefore:function(e,t){a.push(ce.insertBefore(e,t(),n)),u.push(t)},merge:function(e,t){a.push(ce.merge(e,t(),n)),u.push(t)},replace:function(e,t){a.push(ce.replace(e,t(),n)),u.push(t)},detach:function(e){for(var t=0;t<u.length;t++)if(u[t]===e)return u.splice(t,1),a.splice(t,1)[0];throw new Error("renderMaquetteFunction was not found")}}};function fe(e){return fe="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},fe(e)}var pe=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},de=function e(t,n,r){for(var o=0,i=n.length;o<i;o++){var a=n[o];Array.isArray(a)?e(t,a,r):null!=a&&(a.hasOwnProperty("vnodeSelector")||(a=pe(a)),r.push(a))}},he=function(e){var t=arguments[1];if("string"!=typeof e)throw new Error;var n,r,o=1;!t||t.hasOwnProperty("vnodeSelector")||Array.isArray(t)||"object"!==fe(t)?t=void 0:o=2;var i=arguments.length;if(i===o+1){var a=arguments[o];"string"==typeof a?n=a:null!=a&&1===a.length&&"string"==typeof a[0]&&(n=a[0])}if(void 0===n)for(r=[];o<i;o++){var u=arguments[o];null==u||(Array.isArray(u)?de(e,u,r):u.hasOwnProperty("vnodeSelector")?r.push(u):r.push(pe(u)))}return{vnodeSelector:e,properties:t,children:r,text:""===n?void 0:n,domNode:null}};!function(e){e._=j,e.Maquette={createCache:I,createMapping:P,createProjector:se,dom:ce,h:he},e.h=he,e.anime=k,e.customElements.whenDefined("custom-style").then((function(){return document.body.parentElement.classList.add("custom-style-defined")})),e.CustomElement=w,e.CustomElementConfig=y,e.CustomStyleElement=N,e.PropertyRenderOnSet=v,e.RenderOnSet=v,e.Bind=m}(window)},765:()=>{
|
|
2
2
|
/*! (C) Andrea Giammarchi - @WebReflection - ISC Style License */
|
|
3
3
|
!function(e,t){"use strict";function n(){var e=L.splice(0,L.length);for(Xe=0;e.length;)e.shift().call(null,e.shift())}function r(e,t){for(var n=0,r=e.length;n<r;n++)h(e[n],t)}function o(e){return function(t){Ie(t)&&(h(t,e),oe.length&&r(t.querySelectorAll(oe),e))}}function i(e){var t=Ve.call(e,"is"),n=e.nodeName.toUpperCase(),r=ae.call(ne,t?J+t.toUpperCase():Q+n);return t&&-1<r&&!a(n,t)?-1:r}function a(e,t){return-1<oe.indexOf(e+'[is="'+t+'"]')}function u(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,i=e[Z]||2,a=e[K]||3;!tt||o&&o!==t||!t[B]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==i&&n!==a)||t[B](r,n===i?null:e.prevValue,n===a?null:e.newValue)}function l(e){var t=o(e);return function(e){L.push(t,e.target),Xe&&clearTimeout(Xe),Xe=setTimeout(n,1)}}function c(e){et&&(et=!1,e.currentTarget.removeEventListener(Y,c)),oe.length&&r((e.target||E).querySelectorAll(oe),e.detail===F?F:R),je&&function(){for(var e,t=0,n=Pe.length;t<n;t++)e=Pe[t],ie.contains(e)||(n--,Pe.splice(t--,1),h(e,F))}()}function s(e,t){var n=this;qe.call(n,e,t),C.call(n,{target:n})}function f(e,t,n){var r=t.apply(e,n),o=i(r);return-1<o&&N(r,re[o]),n.pop()&&oe.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)t=e[n],N(t,re[i(t)])}(r.querySelectorAll(oe)),r}function p(e,t){He(e,t),H?H.observe(e,Ze):(Je&&(e.setAttribute=s,e[I]=O(e),e[P](G,C)),e[P](X,u)),e[W]&&tt&&(e.created=!0,e[W](),e.created=!1)}function d(e){throw new Error("A "+e+" type is already registered")}function h(e,t){var n,r,o=i(e);-1<o&&(x(e,re[o]),o=0,t!==R||e[R]?t!==F||e[F]||(e[R]=!1,e[F]=!0,r="disconnected",o=1):(e[F]=!1,e[R]=!0,r="connected",o=1,je&&ae.call(Pe,e)<0&&Pe.push(e)),o&&(n=e[t+D]||e[r+D])&&n.call(e))}function m(){}function y(e,t,n){var r=n&&n[V]||"",o=t.prototype,i=Oe(o),a=t.observedAttributes||fe,u={prototype:i};ke(i,W,{value:function(){if(Te)Te=!1;else if(!this[ve]){this[ve]=!0,new t(this),o[W]&&o[W].call(this);var e=Me[Ce.get(t)];(!be||e.create.length>1)&&b(this)}}}),ke(i,B,{value:function(e){-1<ae.call(a,e)&&o[B]&&o[B].apply(this,arguments)}}),o[q]&&ke(i,U,{value:o[q]}),o[$]&&ke(i,z,{value:o[$]}),r&&(u[V]=r),e=e.toUpperCase(),Me[e]={constructor:t,create:r?[r,Ae(e)]:[e]},Ce.set(t,e),E[k](e.toLowerCase(),u),S(e),Le[e].r()}function v(e){var t=Me[e.toUpperCase()];return t&&t.constructor}function g(e){return"string"==typeof e?e:e&&e.is||""}function b(e){for(var t,n=e[B],r=n?e.attributes:fe,o=r.length;o--;)t=r[o],n.call(e,t.name||t.nodeName,null,t.value||t.nodeValue)}function S(e){return(e=e.toUpperCase())in Le||(Le[e]={},Le[e].p=new Ee((function(t){Le[e].r=t}))),Le[e].p}function w(){ge&&delete e.customElements,se(e,"customElements",{configurable:!0,value:new m}),se(e,"CustomElementRegistry",{configurable:!0,value:m});for(var t=M.get(/^HTML[A-Z]*[a-z]/),n=t.length;n--;function(t){var n=e[t];if(n){e[t]=function(e){var t,r;return e||(e=this),e[ve]||(Te=!0,t=Me[Ce.get(e.constructor)],(e=(r=be&&1===t.create.length)?Reflect.construct(n,fe,t.constructor):E.createElement.apply(E,t.create))[ve]=!0,Te=!1,r||b(e)),e},e[t].prototype=n.prototype;try{n.prototype.constructor=e[t]}catch(r){!0,se(n,ve,{value:e[t]})}}}(t[n]));E.createElement=function(e,t){var n=g(t);return n?ze.call(this,e,Ae(n)):ze.call(this,e)},Ye||(Qe=!0,E[k](""))}var E=e.document,T=e.Object,M=function(e){var t,n,r,o,i=/^[A-Z]+[a-z]/,a=function(e,t){(t=t.toLowerCase())in u||(u[e]=(u[e]||[]).concat(t),u[t]=u[t.toUpperCase()]=e)},u=(T.create||T)(null),l={};for(n in e)for(o in e[n])for(r=e[n][o],u[o]=r,t=0;t<r.length;t++)u[r[t].toLowerCase()]=u[r[t].toUpperCase()]=o;return l.get=function(e){return"string"==typeof e?u[e]||(i.test(e)?[]:""):function(e){var t,n=[];for(t in u)e.test(t)&&n.push(t);return n}(e)},l.set=function(e,t){return i.test(e)?a(e,t):a(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 L,C,A,O,H,_,x,N,j,k="registerElement",I="__"+k+(1e5*e.Math.random()>>0),P="addEventListener",R="attached",D="Callback",F="detached",V="extends",B="attributeChanged"+D,U=R+D,q="connected"+D,$="disconnected"+D,W="created"+D,z=F+D,Z="ADDITION",K="REMOVAL",X="DOMAttrModified",Y="DOMContentLoaded",G="DOMSubtreeModified",Q="<",J="=",ee=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,te=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],ne=[],re=[],oe="",ie=E.documentElement,ae=ne.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},ue=T.prototype,le=ue.hasOwnProperty,ce=ue.isPrototypeOf,se=T.defineProperty,fe=[],pe=T.getOwnPropertyDescriptor,de=T.getOwnPropertyNames,he=T.getPrototypeOf,me=T.setPrototypeOf,ye=!!T.__proto__,ve="__dreCEv1",ge=e.customElements,be=!/^force/.test(t.type)&&!!(ge&&ge.define&&ge.get&&ge.whenDefined),Se=T.create||T,we=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[ae.call(t,e)]},set:function(r,o){(e=ae.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},Ee=e.Promise||function(e){function t(e){for(r=!0;n.length;)n.shift()(e)}var n=[],r=!1,o={catch:function(){return o},then:function(e){return n.push(e),r&&setTimeout(t,1),o}};return e(t),o},Te=!1,Me=Se(null),Le=Se(null),Ce=new we,Ae=function(e){return e.toLowerCase()},Oe=T.create||function e(t){return t?(e.prototype=t,new e):this},He=me||(ye?function(e,t){return e.__proto__=t,e}:de&&pe?function(){function e(e,t){for(var n,r=de(t),o=0,i=r.length;o<i;o++)n=r[o],le.call(e,n)||se(e,n,pe(t,n))}return function(t,n){do{e(t,n)}while((n=he(n))&&!ce.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),_e=e.MutationObserver||e.WebKitMutationObserver,xe=e.HTMLAnchorElement,Ne=(e.HTMLElement||e.Element||e.Node).prototype,je=!ce.call(Ne,ie),ke=je?function(e,t,n){return e[t]=n.value,e}:se,Ie=je?function(e){return 1===e.nodeType}:function(e){return ce.call(Ne,e)},Pe=je&&[],Re=Ne.attachShadow,De=Ne.cloneNode,Fe=Ne.dispatchEvent,Ve=Ne.getAttribute,Be=Ne.hasAttribute,Ue=Ne.removeAttribute,qe=Ne.setAttribute,$e=E.createElement,We=E.importNode,ze=$e,Ze=_e&&{attributes:!0,characterData:!0,attributeOldValue:!0},Ke=_e||function(e){Je=!1,ie.removeEventListener(X,Ke)},Xe=0,Ye=k in E&&!/^force-all/.test(t.type),Ge=!0,Qe=!1,Je=!0,et=!0,tt=!0;if(_e&&((j=E.createElement("div")).innerHTML="<div><div></div></div>",new _e((function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(j=pe(Ne,"innerHTML"))&&j.set;n&&se(Ne,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),j=null})).observe(j,{childList:!0,subtree:!0}),j.innerHTML=""),Ye||(me||ye?(x=function(e,t){ce.call(t,e)||p(e,t)},N=p):(x=function(e,t){e[I]||(e[I]=T(!0),p(e,t))},N=x),je?(Je=!1,function(){var e=pe(Ne,P),t=e.value,n=function(e){var t=new CustomEvent(X,{bubbles:!0});t.attrName=e,t.prevValue=Ve.call(this,e),t.newValue=null,t[K]=t.attrChange=2,Ue.call(this,e),Fe.call(this,t)},r=function(e,t){var n=Be.call(this,e),r=n&&Ve.call(this,e),o=new CustomEvent(X,{bubbles:!0});qe.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o.MODIFICATION=o.attrChange=1:o[Z]=o.attrChange=0,Fe.call(this,o)},o=function(e){var t,n=e.currentTarget,r=n[I],o=e.propertyName;r.hasOwnProperty(o)&&(r=r[o],(t=new CustomEvent(X,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t[Z]=t.attrChange=0:t.MODIFICATION=t.attrChange=1,Fe.call(n,t))};e.value=function(e,i,a){e===X&&this[B]&&this.setAttribute!==r&&(this[I]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,e,i,a)},se(Ne,P,e)}()):_e||(ie[P](X,Ke),ie.setAttribute(I,1),ie.removeAttribute(I),Je&&(C=function(e){var t,n,r,o=this;if(o===e.target){for(r in t=o[I],o[I]=n=O(o),n){if(!(r in t))return A(0,o,r,t[r],n[r],Z);if(n[r]!==t[r])return A(1,o,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return A(2,o,r,t[r],n[r],K)}},A=function(e,t,n,r,o,i){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};a[i]=e,u(a)},O=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})),E[k]=function(e,t){if(n=e.toUpperCase(),Ge&&(Ge=!1,_e?(H=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new _e((function(r){for(var o,i,a,u=0,l=r.length;u<l;u++)"childList"===(o=r[u]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(i=o.target,tt&&i[B]&&"style"!==o.attributeName&&(a=Ve.call(i,o.attributeName))!==o.oldValue&&i[B](o.attributeName,o.oldValue,a))}))}(o(R),o(F)),_=function(e){return H.observe(e,{childList:!0,subtree:!0}),e},_(E),Re&&(Ne.attachShadow=function(){return _(Re.apply(this,arguments))})):(L=[],E[P]("DOMNodeInserted",l(R)),E[P]("DOMNodeRemoved",l(F))),E[P](Y,c),E[P]("readystatechange",c),E.importNode=function(e,t){switch(e.nodeType){case 1:return f(E,We,[e,!!t]);case 11:for(var n=E.createDocumentFragment(),r=e.childNodes,o=r.length,i=0;i<o;i++)n.appendChild(E.importNode(r[i],!!t));return n;default:return De.call(e,!!t)}},Ne.cloneNode=function(e){return f(this,De,[!!e])}),Qe)return Qe=!1;if(-2<ae.call(ne,J+n)+ae.call(ne,Q+n)&&d(e),!ee.test(n)||-1<ae.call(te,n))throw new Error("The type "+e+" is invalid");var n,i,a=function(){return s?E.createElement(p,n):E.createElement(p)},u=t||ue,s=le.call(u,V),p=s?t[V].toUpperCase():n;return s&&-1<ae.call(ne,Q+p)&&d(p),i=ne.push((s?J:Q)+n)-1,oe=oe.concat(oe.length?",":"",s?p+'[is="'+e.toLowerCase()+'"]':p),a.prototype=re[i]=le.call(u,"prototype")?u.prototype:Oe(Ne),oe.length&&r(E.querySelectorAll(oe),R),a},E.createElement=ze=function(e,t){var n=g(t),r=n?$e.call(E,e,Ae(n)):$e.call(E,e),o=""+e,i=ae.call(ne,(n?J:Q)+(n||o).toUpperCase()),u=-1<i;return n&&(r.setAttribute("is",n=n.toLowerCase()),u&&(u=a(o.toUpperCase(),n))),tt=!E.createElement.innerHTMLHelper,u&&N(r,re[i]),r}),m.prototype={constructor:m,define:be?function(e,t,n){if(n)y(e,t,n);else{var r=e.toUpperCase();Me[r]={constructor:t,create:[r]},Ce.set(t,r),ge.define(e,t)}}:y,get:be?function(e){return ge.get(e)||v(e)}:v,whenDefined:be?function(e){return Ee.race([ge.whenDefined(e),S(e)])}:S},!ge||/^force/.test(t.type))w();else if(!t.noBuiltIn)try{!function(t,n,r){var o=new RegExp("^<a\\s+is=('|\")"+r+"\\1></a>$");if(n[V]="a",(t.prototype=Oe(xe.prototype)).constructor=t,e.customElements.define(r,t,n),!o.test(E.createElement("a",{is:r}).outerHTML)||!o.test((new t).outerHTML))throw n}((function e(){return Reflect.construct(xe,[],e)}),{},"document-register-element-a")}catch(e){w()}if(!t.noBuiltIn)try{if($e.call(E,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(e){Ae=function(e){return{is:e.toLowerCase()}}}}(window)},425:e=>{e.exports=
|
|
4
4
|
/*!
|