p-elements-core 1.2.17 → 1.2.18
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 +1 -1
- package/dist/p-elements-core 2.js +1 -0
- package/dist/p-elements-core-modern 2.js +553 -0
- package/dist/p-elements-core-modern.js +1 -1
- package/dist/p-elements-core.js +1 -1
- package/p-elements-core.d.ts +187 -46
- package/package.json +1 -1
- package/readme.md +8 -0
- package/src/custom-element-controller.ts +8 -0
- package/src/custom-element.ts +37 -3
- package/src/decorators/property.ts +3 -3
- package/src/sample/mixin/highlight.tsx +1 -0
- package/src/sample/sample.tsx +25 -3
package/demo/sample.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! P-ELEMENTS 1.2.17 - Mon Dec 30 2024 08:35:24 GMT+0100 (Central European Standard Time) */var t={554:function(t,e,n){var r,o,i,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},a.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:void 0!==n.g&&null!=n.g?n.g:t},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(t){return a.SYMBOL_PREFIX+(t||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var t=a.global.Symbol.iterator;t||(t=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&a.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(t){var e=0;return a.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},a.iteratorPrototype=function(t){return a.initSymbolIterator(),(t={next:t})[a.global.Symbol.iterator]=function(){return this},t},a.array=a.array||{},a.iteratorFromArray=function(t,e){a.initSymbolIterator(),t instanceof String&&(t+="");var n=0,r={next:function(){if(n<t.length){var o=n++;return{value:e(o,t[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(t,e,n,r){if(e){for(n=a.global,t=t.split("."),r=0;r<t.length-1;r++){var o=t[r];o in n||(n[o]={}),n=n[o]}(e=e(r=n[t=t[t.length-1]]))!=r&&null!=e&&a.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},a.polyfill("Array.prototype.keys",(function(t){return t||function(){return a.iteratorFromArray(this,(function(t){return t}))}}),"es6-impl","es3");var u=this;o=[],r=function(){function t(t){if(!X.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t,e){for(var n=t.length,r=2<=arguments.length?arguments[1]:void 0,o=[],i=0;i<n;i++)if(i in t){var a=t[i];e.call(r,a,i,t)&&o.push(a)}return o}function n(t){return t.reduce((function(t,e){return t.concat(X.arr(e)?n(e):e)}),[])}function r(e){return X.arr(e)?e:(X.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function o(t,e){return t.some((function(t){return t===e}))}function i(t){var e,n={};for(e in t)n[e]=t[e];return n}function a(t,e){var n,r=i(t);for(n in t)r[n]=e.hasOwnProperty(n)?e[n]:t[n];return r}function c(t,e){var n,r=i(t);for(n in e)r[n]=X.und(t[n])?e[n]:t[n];return r}function l(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+(t=parseInt(e[1],16))+","+parseInt(e[2],16)+","+(e=parseInt(e[3],16))+",1)"}function s(t){function e(t,e,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:.5>n?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(n[1])/360;var r=parseInt(n[2])/100,o=parseInt(n[3])/100;if(n=n[4]||1,0==r)o=r=t=o;else{var i=.5>o?o*(1+r):o+r-o*r,a=2*o-i;o=e(a,i,t+1/3),r=e(a,i,t),t=e(a,i,t-1/3)}return"rgba("+255*o+","+255*r+","+255*t+","+n+")"}function f(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function p(t){return-1<t.indexOf("translate")||"perspective"===t?"px":-1<t.indexOf("rotate")||-1<t.indexOf("skew")?"deg":void 0}function d(t,e){return X.fnc(t)?t(e.target,e.id,e.total):t}function y(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function h(t,e){return X.dom(t)&&o(N,e)?"transform":X.dom(t)&&(t.getAttribute(e)||X.svg(t)&&t[e])?"attribute":X.dom(t)&&"transform"!==e&&y(t,e)?"css":null!=t[e]?"object":void 0}function m(t,n){var r=p(n);if(r=-1<n.indexOf("scale")?1:0+r,!(t=t.style.transform))return r;for(var o=[],i=[],a=[],u=/(\w+)\((.+?)\)/g;o=u.exec(t);)i.push(o[1]),a.push(o[2]);return t=e(a,(function(t,e){return i[e]===n})),t.length?t[0]:r}function v(t,e){switch(h(t,e)){case"transform":return m(t,e);case"css":return y(t,e);case"attribute":return t.getAttribute(e)}return t[e]||0}function b(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=f(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(n[0],"")),n[0][0]){case"+":return e+t+r;case"-":return e-t+r;case"*":return e*t+r}}function g(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function w(t){t=t.points;for(var e,n=0,r=0;r<t.numberOfItems;r++){var o=t.getItem(r);0<r&&(n+=g(e,o)),e=o}return n}function O(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return g({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return w(t);case"polygon":var e=t.points;return w(t)+g(e.getItem(e.numberOfItems-1),e.getItem(0))}}function P(t,e){function n(n){return n=void 0===n?0:n,t.el.getPointAtLength(1<=e+n?e+n:0)}var r=n(),o=n(-1),i=n(1);switch(t.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 x(t,e){var n,r=/-?\d*\.?\d+/g;if(n=X.pth(t)?t.totalLength:t,X.col(n))if(X.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=X.hex(n)?l(n):X.hsl(n)?s(n):void 0;else o=(o=f(n))?n.substr(0,n.length-o.length):n,n=e&&!/\s/g.test(n)?o+e:o;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:X.str(t)||e?n.split(r):[]}}function k(t){return e(t=t?n(X.arr(t)?t.map(r):r(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function j(t){var e=k(t);return e.map((function(t,n){return{target:t,id:n,total:e.length}}))}function S(t,e){var n=i(e);if(X.arr(t)){var o=t.length;2!==o||X.obj(t[0])?X.fnc(e.duration)||(n.duration=e.duration/o):t={value:t}}return r(t).map((function(t,n){return n=n?0:e.delay,t=X.obj(t)&&!X.pth(t)?t:{value:t},X.und(t.delay)&&(t.delay=n),t})).map((function(t){return c(t,n)}))}function C(t,e){var n,r={};for(n in t){var o=d(t[n],e);X.arr(o)&&(o=o.map((function(t){return d(t,e)})),1===o.length&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function A(t){return X.arr(t)?B.apply(this,t):V[t]}function E(t,e){var n;return t.tweens.map((function(r){var o=(r=C(r,e)).value,i=v(e.target,t.name),a=n?n.to.original:i,u=(a=X.arr(o)?o[0]:a,b(X.arr(o)?o[1]:o,a));return i=f(u)||f(a)||f(i),r.from=x(a,i),r.to=x(u,i),r.start=n?n.end:t.offset,r.end=r.start+r.delay+r.duration,r.easing=A(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=X.pth(o),r.isColor=X.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function M(t,r){return e(n(t.map((function(t){return r.map((function(e){var n=h(t.target,e.name);if(n){var r=E(e,t);e={type:n,property:e.name,animatable:t,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else e=void 0;return e}))}))),(function(t){return!X.und(t)}))}function I(t,e,n,r){var o="delay"===t;return e.length?(o?Math.min:Math.max).apply(Math,e.map((function(e){return e[t]}))):o?r.delay:n.offset+r.delay+r.duration}function _(t){var e,n=a(F,t),r=a(L,t),o=j(t.targets),i=[],u=c(n,r);for(e in t)u.hasOwnProperty(e)||"targets"===e||i.push({name:e,offset:u.offset,tweens:S(t[e],r)});return c(n,{children:[],animatables:o,animations:t=M(o,i),duration:I("duration",t,n,r),delay:I("delay",t,n,r)})}function T(t){function n(){return window.Promise&&new Promise((function(t){return f=t}))}function r(t){return d.reversed?d.duration-t:t}function o(t){for(var n=0,r={},o=d.animations,i=o.length;n<i;){var a=o[n],u=a.animatable,c=(l=a.tweens)[p=l.length-1];p&&(c=e(l,(function(e){return t<e.end}))[0]||c);for(var l=Math.min(Math.max(t-c.start-c.delay,0),c.duration)/c.duration,s=isNaN(l)?1:c.easing(l,c.elasticity),f=(l=c.to.strings,c.round),p=[],h=void 0,m=(h=c.to.numbers.length,0);m<h;m++){var v=void 0,b=(v=c.to.numbers[m],c.from.numbers[m]);v=c.isPath?P(c.value,s*v):b+s*(v-b),f&&(c.isColor&&2<m||(v=Math.round(v*f)/f)),p.push(v)}if(c=l.length)for(h=l[0],s=0;s<c;s++)f=l[s+1],m=p[s],isNaN(m)||(h=f?h+(m+f):h+(m+" "));else h=p[0];$[a.type](u.target,a.property,h,r,u.id),a.currentValue=h,n++}if(n=Object.keys(r).length)for(o=0;o<n;o++)R||(R=y(document.body,"transform")?"transform":"-webkit-transform"),d.animatables[o].target.style[R]=r[o].join(" ");d.currentTime=t,d.progress=t/d.duration*100}function i(t){d[t]&&d[t](d)}function a(){d.remaining&&!0!==d.remaining&&d.remaining--}function u(t){var e=d.duration,u=d.offset,y=u+d.delay,h=d.currentTime,m=d.reversed,v=r(t);if(d.children.length){var b=d.children,g=b.length;if(v>=d.currentTime)for(var w=0;w<g;w++)b[w].seek(v);else for(;g--;)b[g].seek(v)}(v>=y||!e)&&(d.began||(d.began=!0,i("begin")),i("run")),v>u&&v<e?o(v):(v<=u&&0!==h&&(o(0),m&&a()),(v>=e&&h!==e||!e)&&(o(e),m||a())),i("update"),t>=e&&(d.remaining?(l=c,"alternate"===d.direction&&(d.reversed=!d.reversed)):(d.pause(),d.completed||(d.completed=!0,i("complete"),"Promise"in window&&(f(),p=n()))),s=0)}t=void 0===t?{}:t;var c,l,s=0,f=null,p=n(),d=_(t);return d.reset=function(){var t=d.direction,e=d.loop;for(d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.completed=!1,d.reversed="reverse"===t,d.remaining="alternate"===t&&1===e?2:e,o(0),t=d.children.length;t--;)d.children[t].reset()},d.tick=function(t){c=t,l||(l=c),u((s+c-l)*T.speed)},d.seek=function(t){u(r(t))},d.pause=function(){var t=D.indexOf(d);-1<t&&D.splice(t,1),d.paused=!0},d.play=function(){d.paused&&(d.paused=!1,l=0,s=r(d.currentTime),D.push(d),U||Y())},d.reverse=function(){d.reversed=!d.reversed,l=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 R,F={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},L={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},N="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),X={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return X.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||X.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return X.hex(t)||X.rgb(t)||X.hsl(t)}},B=function(){function t(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t}return function(e,n,r,o){if(0<=e&&1>=e&&0<=r&&1>=r){var i=new Float32Array(11);if(e!==n||r!==o)for(var a=0;11>a;++a)i[a]=t(.1*a,e,r);return function(a){if(e===n&&r===o)return a;if(0===a)return 0;if(1===a)return 1;for(var u=0,c=1;10!==c&&i[c]<=a;++c)u+=.1;--c,c=u+(a-i[c])/(i[c+1]-i[c])*.1;var l=3*(1-3*r+3*e)*c*c+2*(3*r-6*e)*c+3*e;if(.001<=l){for(u=0;4>u&&0!=(l=3*(1-3*r+3*e)*c*c+2*(3*r-6*e)*c+3*e);++u){var s=t(c,e,r)-a;c-=s/l}a=c}else if(0===l)a=c;else{c=u,u+=.1;var f=0;do{0<(l=t(s=c+(u-c)/2,e,r)-a)?u=s:c=s}while(1e-7<Math.abs(l)&&10>++f);a=s}return t(a,n,o)}}}}(),V=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,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],t],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(e,n){return 1-t(1-e,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(e,n){return.5>e?t(2*e,n)/2:1-t(-2*e+2,n)/2}]},o={linear:B(.25,.25,.75,.75)},i={};for(e in r)i.type=e,r[i.type].forEach(function(t){return function(e,r){o["ease"+t.type+n[r]]=X.fnc(e)?e:B.apply(u,e)}}(i)),i={type:i.type};return o}(),$={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,r,o){r[o]||(r[o]=[]),r[o].push(e+"("+n+")")}},D=[],U=0,Y=function(){function t(){U=requestAnimationFrame(e)}function e(e){var n=D.length;if(n){for(var r=0;r<n;)D[r]&&D[r].tick(e),r++;t()}else cancelAnimationFrame(U),U=0}return t}();return T.version="2.2.0",T.speed=1,T.running=D,T.remove=function(t){t=k(t);for(var e=D.length;e--;)for(var n=D[e],r=n.animations,i=r.length;i--;)o(t,r[i].animatable.target)&&(r.splice(i,1),r.length||n.pause())},T.getValue=v,T.path=function(e,n){var r=X.str(e)?t(e)[0]:e,o=n||100;return function(t){return{el:r,property:t,totalLength:O(r)*(o/100)}}},T.setDashoffset=function(t){var e=O(t);return t.setAttribute("stroke-dasharray",e),e},T.bezier=B,T.easings=V,T.timeline=function(t){var e=T(t);return e.pause(),e.duration=0,e.add=function(n){return e.children.forEach((function(t){t.began=!0,t.completed=!0})),r(n).forEach((function(n){var r=c(n,a(L,t||{}));r.targets=r.targets||t.targets,n=e.duration;var o=r.offset;r.autoplay=!1,r.direction=e.direction,r.offset=X.und(o)?n:b(o,n),e.began=!0,e.completed=!0,e.seek(r.offset),(r=T(r)).began=!0,r.completed=!0,r.duration>n&&(e.duration=r.duration),e.children.push(r)})),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},T.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},T},void 0===(i="function"==typeof r?r.apply(e,o):r)||(t.exports=i)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}function u(t,e,n){return e=l(e),function(t,e){if(e&&("object"==o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function p(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(r,{J:()=>F,P:()=>X});var d,y,m,v=n(554),b=n.n(v);function g(t){var e="function"==typeof Map?new Map:void 0;return g=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(E())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&_(o,n.prototype),o}(t,arguments,M(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_(n,t)},g(t)}function w(){return w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=M(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},w.apply(null,arguments)}function O(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function P(t,e,n){return t.set(x(t,e),n),n}function x(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,S(r.key),r)}}function j(t,e,n){return e&&k(t.prototype,e),n&&k(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function S(t){var e=function(t,e){if("object"!=T(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==T(e)?e:e+""}function C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A(t,e,n){return e=M(e),function(t,e){if(e&&("object"==T(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,E()?Reflect.construct(e,n||[],M(t).constructor):e.apply(t,n))}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}function M(t){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},M(t)}function I(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}var R=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":T(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},F=(d=function(){function t(){var e;return C(this,t),(e=A(this,t,arguments)).render=function(){return h("button",{class:"foo"},h("slot",null))},e}return I(t,CustomElement),j(t)}(),d.style=".foo{background-color: red; color: white; border: 0px;}",d.delegatesFocus=!0,d);F=R([CustomElementConfig({tagName:"my-button"})],F);var L,N,X=(y=function(t){function e(){var t;return C(this,e),(t=A(this,e,arguments)).count=1,t.name="",t.foo="foo",t.onInput=function(e){t.name=e.target.value},t.onPeterClick=function(e){console.log({e,p:t})},t.render=function(){return h("div",null,h("input",{type:"checkbox",checked:"Peter"===t.name}),h("h1",{on:{click:function(e){return console.log(e,t.slotContainer)}},id:"Foo"},"Hallo:"),h("h1",{onclick:function(){return console.log("click "+t.name)},"data-title":t.name&&t.name.toLocaleUpperCase(),class:"title"},t.foo," ",t.name),h("p",{"data-count":t.count,updateAnimation:t.countUpdateAnimation},t.count),h("div",{id:"SlotContainer"},h("slot",null)),h("p",{eventListeners:[["mouseenter",function(){return console.log("enter")},{once:!0}],["mouseleave",function(){return console.log("leave")},{once:!0}]]},"Please enter your name (hint type"," ",h("em",null,h("strong",null,"Peter")),")",h("br",null),h("input",{type:"text",value:t.name,oninput:t.onInput})),h("p",null,h("a",{is:"super-a"},"Super a")),t.name&&t.name.toLowerCase&&t.name.toLowerCase().indexOf("peter")>-1?h("div",{key:"peter",afterRemoved:t.peterRemoved,afterCreate:t.peterCreate,class:"is-peter",eventListeners:[["click",t.onPeterClick]],enterAnimation:t.enterAnimation,exitAnimation:t.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"})):"")},t.onFooEvent=function(e){t.foo=e.detail.foo},t}return I(e,t),j(e,[{key:"enterAnimation",value:function(t,e){b()({targets:t,translateX:[{value:100,duration:1200},{value:0,duration:800}],rotate:"2turn",duration:3e3,loop:!1})}},{key:"exitAnimation",value:function(t,e,n){b()({targets:t,translateX:[{value:100,duration:1200},{value:0,duration:800}],duration:3e3,opacity:0,loop:!1,complete:function(){e(t)}})}},{key:"countUpdateAnimation",value:function(t,e,n){b().timeline().add([{duration:300,targets:t,translateX:200,scale:1.9,easing:"easeOutExpo"},{duration:300,targets:t,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 t=this,e=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(e),this.createProjector(this.shadowRoot.querySelector(".root"),this.render),setInterval((function(){t.count++,t.renderNow()}),5e3),window.addEventListener("foo",this.onFooEvent)}},{key:"attributeChangedCallback",value:function(t,e,n){"name"===t&&(this.name=n)}}],[{key:"observedAttributes",get:function(){return["name"]}}])}((L=function(){function t(){return C(this,t),A(this,t,arguments)}return I(t,CustomElement),j(t)}(),N=new WeakMap,function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return f(t=u(this,e,[].concat(r)),N,!1),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,(r=[{key:"highlight",get:function(){return e=this,(t=N).get(p(t,e));var t,e},set:function(t){var e,n,r;n=this,r=t,(e=N).set(p(e,n),r);var o="unset";t&&(o="yellow");var i=null==this?void 0:this.shadowRoot.querySelector("div");i&&(i.style.backgroundColor=o)}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(L))),y.isFormAssociated=!0,y);R([PropertyRenderOnSet],X.prototype,"name",void 0),R([PropertyRenderOnSet],X.prototype,"foo",void 0),R([Query("#SlotContainer")],X.prototype,"slotContainer",void 0),X=R([CustomElementConfig({tagName:"my-greetings"})],X);var B=new WeakMap,V=new WeakSet,$=function(){function t(){var e,n,r;return C(this,t),e=A(this,t,arguments),O(n=e,r=V),r.add(n),function(t,e,n){O(t,e),e.set(t,n)}(e,B,void 0),P(B,e,!1),e.disabled=!1,e}return I(t,CustomElementController),j(t,[{key:"connected",value:function(){console.log("connected"),P(B,this,!0),x(V,this,D).call(this)}},{key:"disconnected",value:function(){console.info("disconnected"),P(B,this,!1)}},{key:"shouldUpdate",value:function(t,e,n){return console.info("shouldUpdate",{property:t,oldValue:e,newValue:n}),!0}},{key:"updated",value:function(){console.info("updated",this),x(V,this,D).call(this)}}])}();function D(){var t,e;(e=this,(t=B).get(x(t,e)))&&(!0===this.disabled?this.hostElement.setAttribute("disabled","!!"):this.hostElement.removeAttribute("disabled"))}R([Property({type:"boolean"})],$.prototype,"disabled",void 0);var U=(m=function(){function t(){var e;return C(this,t),(e=A(this,t,arguments)).disabledController=new $(e),e.items=["foo","bar"],e.nickName="de prutser",e.render=function(){var t;return h("div",{classes:{foo:!0,foo__disabled:e.disabledController.disabled}},h("div",null,"Hello ",e.name," ",e.nickName?h("span",null," (",e.nickName,")"):null),h("div",null,"age ",e.age),e.data?h("pre",null,JSON.stringify(e.data,null,2)):null,null===(t=e.items)||void 0===t?void 0:t.map((function(t,e){return h("div",{key:"item".concat(e)},t)})))},e}return I(t,CustomElement),j(t,[{key:"init",value:function(){console.info("init")}},{key:"shouldUpdate",value:function(t,e,n){return"name"!==t||"string"!=typeof n||"adolf"!==n.toLocaleLowerCase()}},{key:"updated",value:function(t,e,n){console.info("PFoo",{name:t,old:e,newValue:n})}},{key:"attributeChangedCallback",value:function(e,n,r){var o,i,a,u,c;(o=t,i="attributeChangedCallback",a=this,c=w(M(1&(u=3)?o.prototype:o),i,a),2&u&&"function"==typeof c?function(t){return c.apply(a,t)}:c)([e,n,r]),"disabled"===e&&(this.disabledController.disabled=null!==r)}}])}(),m.style=".foo{color: red} .foo__disabled{opacity: 0.5;}",m.observedAttributes=["disabled"],m);R([Property({type:"string",attribute:"name",reflect:!0})],U.prototype,"name",void 0),R([Property({type:"number",attribute:"age",reflect:!0})],U.prototype,"age",void 0),R([Property({type:"object",attribute:"data",reflect:!0})],U.prototype,"data",void 0),R([Property({attribute:"items",type:"object",reflect:!0,converter:{fromAttribute:function(t){return t?t.split(",").map((function(t){return t.trim()})):null},toAttribute:function(t){return t.join?t.join(","):null}}})],U.prototype,"items",void 0),R([Property({type:"string",attribute:"nick-name",readonly:!0})],U.prototype,"nickName",void 0),U=R([CustomElementConfig({tagName:"p-foo"})],U);var Y=function(){function t(){var e;return C(this,t),(e=A(this,t)).onclick=function(t){t.preventDefault(),alert("super")},e}return I(t,g(HTMLAnchorElement)),j(t,[{key:"connectedCallback",value:function(){this.classList.add("super"),this.style.color="red"}}])}();window.customElements.define("super-a",Y,{extends:"a"});var q=r.J,z=r.P;export{q as MyButton,z as MyGreetings};
|
|
1
|
+
/*! P-ELEMENTS 1.2.18 - Sun Feb 02 2025 16:43:11 GMT+0100 (Central European Standard Time) */var t={554:function(t,e,n){var r,o,i,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},a.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:void 0!==n.g&&null!=n.g?n.g:t},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(t){return a.SYMBOL_PREFIX+(t||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var t=a.global.Symbol.iterator;t||(t=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&a.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(t){var e=0;return a.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},a.iteratorPrototype=function(t){return a.initSymbolIterator(),(t={next:t})[a.global.Symbol.iterator]=function(){return this},t},a.array=a.array||{},a.iteratorFromArray=function(t,e){a.initSymbolIterator(),t instanceof String&&(t+="");var n=0,r={next:function(){if(n<t.length){var o=n++;return{value:e(o,t[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(t,e,n,r){if(e){for(n=a.global,t=t.split("."),r=0;r<t.length-1;r++){var o=t[r];o in n||(n[o]={}),n=n[o]}(e=e(r=n[t=t[t.length-1]]))!=r&&null!=e&&a.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},a.polyfill("Array.prototype.keys",(function(t){return t||function(){return a.iteratorFromArray(this,(function(t){return t}))}}),"es6-impl","es3");var u=this;o=[],r=function(){function t(t){if(!W.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t,e){for(var n=t.length,r=2<=arguments.length?arguments[1]:void 0,o=[],i=0;i<n;i++)if(i in t){var a=t[i];e.call(r,a,i,t)&&o.push(a)}return o}function n(t){return t.reduce((function(t,e){return t.concat(W.arr(e)?n(e):e)}),[])}function r(e){return W.arr(e)?e:(W.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function o(t,e){return t.some((function(t){return t===e}))}function i(t){var e,n={};for(e in t)n[e]=t[e];return n}function a(t,e){var n,r=i(t);for(n in t)r[n]=e.hasOwnProperty(n)?e[n]:t[n];return r}function c(t,e){var n,r=i(t);for(n in e)r[n]=W.und(t[n])?e[n]:t[n];return r}function l(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+(t=parseInt(e[1],16))+","+parseInt(e[2],16)+","+(e=parseInt(e[3],16))+",1)"}function s(t){function e(t,e,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:.5>n?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(n[1])/360;var r=parseInt(n[2])/100,o=parseInt(n[3])/100;if(n=n[4]||1,0==r)o=r=t=o;else{var i=.5>o?o*(1+r):o+r-o*r,a=2*o-i;o=e(a,i,t+1/3),r=e(a,i,t),t=e(a,i,t-1/3)}return"rgba("+255*o+","+255*r+","+255*t+","+n+")"}function f(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function p(t){return-1<t.indexOf("translate")||"perspective"===t?"px":-1<t.indexOf("rotate")||-1<t.indexOf("skew")?"deg":void 0}function d(t,e){return W.fnc(t)?t(e.target,e.id,e.total):t}function h(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function y(t,e){return W.dom(t)&&o(L,e)?"transform":W.dom(t)&&(t.getAttribute(e)||W.svg(t)&&t[e])?"attribute":W.dom(t)&&"transform"!==e&&h(t,e)?"css":null!=t[e]?"object":void 0}function b(t,n){var r=p(n);if(r=-1<n.indexOf("scale")?1:0+r,!(t=t.style.transform))return r;for(var o=[],i=[],a=[],u=/(\w+)\((.+?)\)/g;o=u.exec(t);)i.push(o[1]),a.push(o[2]);return t=e(a,(function(t,e){return i[e]===n})),t.length?t[0]:r}function v(t,e){switch(y(t,e)){case"transform":return b(t,e);case"css":return h(t,e);case"attribute":return t.getAttribute(e)}return t[e]||0}function m(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=f(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(n[0],"")),n[0][0]){case"+":return e+t+r;case"-":return e-t+r;case"*":return e*t+r}}function g(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function w(t){t=t.points;for(var e,n=0,r=0;r<t.numberOfItems;r++){var o=t.getItem(r);0<r&&(n+=g(e,o)),e=o}return n}function O(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return g({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return w(t);case"polygon":var e=t.points;return w(t)+g(e.getItem(e.numberOfItems-1),e.getItem(0))}}function S(t,e){function n(n){return n=void 0===n?0:n,t.el.getPointAtLength(1<=e+n?e+n:0)}var r=n(),o=n(-1),i=n(1);switch(t.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 j(t,e){var n,r=/-?\d*\.?\d+/g;if(n=W.pth(t)?t.totalLength:t,W.col(n))if(W.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=W.hex(n)?l(n):W.hsl(n)?s(n):void 0;else o=(o=f(n))?n.substr(0,n.length-o.length):n,n=e&&!/\s/g.test(n)?o+e:o;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:W.str(t)||e?n.split(r):[]}}function k(t){return e(t=t?n(W.arr(t)?t.map(r):r(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function P(t){var e=k(t);return e.map((function(t,n){return{target:t,id:n,total:e.length}}))}function A(t,e){var n=i(e);if(W.arr(t)){var o=t.length;2!==o||W.obj(t[0])?W.fnc(e.duration)||(n.duration=e.duration/o):t={value:t}}return r(t).map((function(t,n){return n=n?0:e.delay,t=W.obj(t)&&!W.pth(t)?t:{value:t},W.und(t.delay)&&(t.delay=n),t})).map((function(t){return c(t,n)}))}function x(t,e){var n,r={};for(n in t){var o=d(t[n],e);W.arr(o)&&(o=o.map((function(t){return d(t,e)})),1===o.length&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function E(t){return W.arr(t)?D.apply(this,t):U[t]}function C(t,e){var n;return t.tweens.map((function(r){var o=(r=x(r,e)).value,i=v(e.target,t.name),a=n?n.to.original:i,u=(a=W.arr(o)?o[0]:a,m(W.arr(o)?o[1]:o,a));return i=f(u)||f(a)||f(i),r.from=j(a,i),r.to=j(u,i),r.start=n?n.end:t.offset,r.end=r.start+r.delay+r.duration,r.easing=E(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=W.pth(o),r.isColor=W.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function _(t,r){return e(n(t.map((function(t){return r.map((function(e){var n=y(t.target,e.name);if(n){var r=C(e,t);e={type:n,property:e.name,animatable:t,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else e=void 0;return e}))}))),(function(t){return!W.und(t)}))}function R(t,e,n,r){var o="delay"===t;return e.length?(o?Math.min:Math.max).apply(Math,e.map((function(e){return e[t]}))):o?r.delay:n.offset+r.delay+r.duration}function M(t){var e,n=a(N,t),r=a(I,t),o=P(t.targets),i=[],u=c(n,r);for(e in t)u.hasOwnProperty(e)||"targets"===e||i.push({name:e,offset:u.offset,tweens:A(t[e],r)});return c(n,{children:[],animatables:o,animations:t=_(o,i),duration:R("duration",t,n,r),delay:R("delay",t,n,r)})}function T(t){function n(){return window.Promise&&new Promise((function(t){return f=t}))}function r(t){return d.reversed?d.duration-t:t}function o(t){for(var n=0,r={},o=d.animations,i=o.length;n<i;){var a=o[n],u=a.animatable,c=(l=a.tweens)[p=l.length-1];p&&(c=e(l,(function(e){return t<e.end}))[0]||c);for(var l=Math.min(Math.max(t-c.start-c.delay,0),c.duration)/c.duration,s=isNaN(l)?1:c.easing(l,c.elasticity),f=(l=c.to.strings,c.round),p=[],y=void 0,b=(y=c.to.numbers.length,0);b<y;b++){var v=void 0,m=(v=c.to.numbers[b],c.from.numbers[b]);v=c.isPath?S(c.value,s*v):m+s*(v-m),f&&(c.isColor&&2<b||(v=Math.round(v*f)/f)),p.push(v)}if(c=l.length)for(y=l[0],s=0;s<c;s++)f=l[s+1],b=p[s],isNaN(b)||(y=f?y+(b+f):y+(b+" "));else y=p[0];q[a.type](u.target,a.property,y,r,u.id),a.currentValue=y,n++}if(n=Object.keys(r).length)for(o=0;o<n;o++)F||(F=h(document.body,"transform")?"transform":"-webkit-transform"),d.animatables[o].target.style[F]=r[o].join(" ");d.currentTime=t,d.progress=t/d.duration*100}function i(t){d[t]&&d[t](d)}function a(){d.remaining&&!0!==d.remaining&&d.remaining--}function u(t){var e=d.duration,u=d.offset,h=u+d.delay,y=d.currentTime,b=d.reversed,v=r(t);if(d.children.length){var m=d.children,g=m.length;if(v>=d.currentTime)for(var w=0;w<g;w++)m[w].seek(v);else for(;g--;)m[g].seek(v)}(v>=h||!e)&&(d.began||(d.began=!0,i("begin")),i("run")),v>u&&v<e?o(v):(v<=u&&0!==y&&(o(0),b&&a()),(v>=e&&y!==e||!e)&&(o(e),b||a())),i("update"),t>=e&&(d.remaining?(l=c,"alternate"===d.direction&&(d.reversed=!d.reversed)):(d.pause(),d.completed||(d.completed=!0,i("complete"),"Promise"in window&&(f(),p=n()))),s=0)}t=void 0===t?{}:t;var c,l,s=0,f=null,p=n(),d=M(t);return d.reset=function(){var t=d.direction,e=d.loop;for(d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.completed=!1,d.reversed="reverse"===t,d.remaining="alternate"===t&&1===e?2:e,o(0),t=d.children.length;t--;)d.children[t].reset()},d.tick=function(t){c=t,l||(l=c),u((s+c-l)*T.speed)},d.seek=function(t){u(r(t))},d.pause=function(){var t=B.indexOf(d);-1<t&&B.splice(t,1),d.paused=!0},d.play=function(){d.paused&&(d.paused=!1,l=0,s=r(d.currentTime),B.push(d),V||X())},d.reverse=function(){d.reversed=!d.reversed,l=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 F,N={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},I={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},L="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),W={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return W.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||W.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return W.hex(t)||W.rgb(t)||W.hsl(t)}},D=function(){function t(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t}return function(e,n,r,o){if(0<=e&&1>=e&&0<=r&&1>=r){var i=new Float32Array(11);if(e!==n||r!==o)for(var a=0;11>a;++a)i[a]=t(.1*a,e,r);return function(a){if(e===n&&r===o)return a;if(0===a)return 0;if(1===a)return 1;for(var u=0,c=1;10!==c&&i[c]<=a;++c)u+=.1;--c,c=u+(a-i[c])/(i[c+1]-i[c])*.1;var l=3*(1-3*r+3*e)*c*c+2*(3*r-6*e)*c+3*e;if(.001<=l){for(u=0;4>u&&0!=(l=3*(1-3*r+3*e)*c*c+2*(3*r-6*e)*c+3*e);++u){var s=t(c,e,r)-a;c-=s/l}a=c}else if(0===l)a=c;else{c=u,u+=.1;var f=0;do{0<(l=t(s=c+(u-c)/2,e,r)-a)?u=s:c=s}while(1e-7<Math.abs(l)&&10>++f);a=s}return t(a,n,o)}}}}(),U=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,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],t],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(e,n){return 1-t(1-e,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(e,n){return.5>e?t(2*e,n)/2:1-t(-2*e+2,n)/2}]},o={linear:D(.25,.25,.75,.75)},i={};for(e in r)i.type=e,r[i.type].forEach(function(t){return function(e,r){o["ease"+t.type+n[r]]=W.fnc(e)?e:D.apply(u,e)}}(i)),i={type:i.type};return o}(),q={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,r,o){r[o]||(r[o]=[]),r[o].push(e+"("+n+")")}},B=[],V=0,X=function(){function t(){V=requestAnimationFrame(e)}function e(e){var n=B.length;if(n){for(var r=0;r<n;)B[r]&&B[r].tick(e),r++;t()}else cancelAnimationFrame(V),V=0}return t}();return T.version="2.2.0",T.speed=1,T.running=B,T.remove=function(t){t=k(t);for(var e=B.length;e--;)for(var n=B[e],r=n.animations,i=r.length;i--;)o(t,r[i].animatable.target)&&(r.splice(i,1),r.length||n.pause())},T.getValue=v,T.path=function(e,n){var r=W.str(e)?t(e)[0]:e,o=n||100;return function(t){return{el:r,property:t,totalLength:O(r)*(o/100)}}},T.setDashoffset=function(t){var e=O(t);return t.setAttribute("stroke-dasharray",e),e},T.bezier=D,T.easings=U,T.timeline=function(t){var e=T(t);return e.pause(),e.duration=0,e.add=function(n){return e.children.forEach((function(t){t.began=!0,t.completed=!0})),r(n).forEach((function(n){var r=c(n,a(I,t||{}));r.targets=r.targets||t.targets,n=e.duration;var o=r.offset;r.autoplay=!1,r.direction=e.direction,r.offset=W.und(o)?n:m(o,n),e.began=!0,e.completed=!0,e.seek(r.offset),(r=T(r)).began=!0,r.completed=!0,r.duration>n&&(e.duration=r.duration),e.children.push(r)})),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},T.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},T},void 0===(i="function"==typeof r?r.apply(e,o):r)||(t.exports=i)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}function u(t,e,n){return e=l(e),function(t,e){if(e&&("object"==o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function p(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(r,{J:()=>Wt,P:()=>qt});var d=n(554),y=n.n(d),b=function(t){return function(e){customElements.get(t.tagName)?console.warn("Custom element with tag name ".concat(t.tagName," already exists.")):customElements.define(t.tagName,e,t.options)}},v=function(t){return function(e,n){var r=e.constructor,o=Symbol(n+"_PropertyDecorator");r&&!r.observedAttributes&&(r.observedAttributes=[]),r&&!r.__properties__&&(r.__properties__=[]),r.__properties__.push(n),t.attribute&&!t.readonly&&-1===r.observedAttributes.indexOf(t.attribute)&&r.observedAttributes.push(t.attribute),Object.defineProperty(e,"__property_".concat(n,"__"),{configurable:!0,enumerable:!0,get:function(){return t}}),!0!==t.readonly?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){return this[o]},set:function(e){var r=this,i=this[o],a=(null==this?void 0:this.shouldUpdate)&&!this.shouldUpdate(n,i,e),u=this.isCustomElementController?this.hostElement:this,c=t.converter?t.converter.toAttribute(e):function(t,e){switch(t){case"string":case"number":return e.toString();case"object":return JSON.stringify(e)}}(t.type,e);a?(this[o]=i,requestAnimationFrame((function(){u.setAttribute(t.attribute,i)}))):this[o]=e;var l=function(){r[o]!==i&&((null==r?void 0:r.scheduleRender)&&r.scheduleRender(),(null==r?void 0:r.updated)&&r.updated(n,i,r[o]))};if(t.reflect&&t.attribute&&u._canReflect){if("boolean"===t.type)return e&&!u.hasAttribute(t.attribute)?u.setAttribute(t.attribute,""):!e&&u.hasAttribute(t.attribute)&&u.removeAttribute(t.attribute),void l();if(!e)return u.removeAttribute(t.attribute),void l();if(u.getAttribute(t.attribute)===c)return void l();null!==c?u.setAttribute(t.attribute,c):u.removeAttribute(t.attribute)}l(),(null==this?void 0:this.scheduleRender)&&this.scheduleRender()}}):Object.defineProperty(e,n,{get:function(){return this[o]},set:function(t){this[o]=t,null==this||this.scheduleRender(),delete this[n],Object.defineProperty(this,n,{configurable:!0,enumerable:!0,get:function(){return this[o]},set:function(){throw new Error("Cannot set read-only property")}}),Object.seal(this[o])}})}},m=v({});new Map;function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function w(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return O(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){k(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function k(t,e,n){return(e=A(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,A(r.key),r)}}function A(t){var e=function(t,e){if("object"!=g(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==g(e)?e:e+""}function x(t,e){if(e&&("object"==g(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function E(t){var e="function"==typeof Map?new Map:void 0;return E=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(C())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&_(o,n.prototype),o}(t,arguments,R(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_(n,t)},E(t)}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(C=function(){return!!t})()}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}function R(t){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},R(t)}function M(t,e,n){T(t,e),e.set(t,n)}function T(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function F(t,e,n){return n(L(t,e))}function N(t,e,n){return t.set(L(t,e),n),n}function I(t,e){return t.get(L(t,e))}function L(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var W=[],D=new WeakMap,U=new WeakMap,q=new WeakMap,B=new WeakMap,V=new WeakMap,X=new WeakMap,$=new WeakMap,z=new WeakMap,H=new WeakMap,J=new WeakMap,Y=new WeakMap,G=new WeakMap,Z=new WeakMap,Q=new WeakSet,K=new WeakMap,tt=new WeakMap,et=new WeakMap,nt=function(){function t(e){var n,r,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,o=R(o=t),function(t,e){T(t,e),e.add(t)}(n=x(r,C()?Reflect.construct(o,i||[],R(r).constructor):o.apply(r,i)),Q),M(n,D,void 0),M(n,U,void 0),M(n,q,void 0),M(n,B,void 0),M(n,V,void 0),M(n,X,void 0),M(n,$,!1),M(n,z,void 0),M(n,H,void 0),M(n,J,void 0),M(n,Y,[]),M(n,G,!1),M(n,Z,!1),M(n,K,(function(){var t=n.constructor.__properties__;N(D,n,[]),t&&N(D,n,t.map((function(t){return j(j({},n["__property_".concat(t,"__")]),{},{name:t})})))})),M(n,tt,!0),M(n,et,!0),L(Q,n,ot).call(n),L(Q,n,rt).call(n),x(n,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(t,E(HTMLElement)),e=t,n=[{key:"_canReflect",get:function(){return I(Z,this)}},{key:"properties",get:function(){return I(D,this)}},{key:"addController",value:function(t){I(Y,this).push(t),I(G,this)&&t.connected&&t.connected()}},{key:"internals",get:function(){return I(J,this)},set:function(t){N(J,this,t)}},{key:"addStylesheetToRootNode",value:function(t,e){if(F(Q,this,at)){if(I(V,this)||N(V,this,new CSSStyleSheet),t=L(Q,this,ut).call(this),I(V,this).replaceSync(t),I($,this))return;if(e instanceof Document){var n=L(Q,this,lt).call(this,t);-1===W.indexOf(n)&&(document.adoptedStyleSheets=[].concat(w(document.adoptedStyleSheets),[I(V,this)]),N($,this,!0),W.push(n))}else this.shadowRoot.adoptedStyleSheets=[I(V,this)],N($,this,!0)}else if(N(X,this,document.createElement("link")),I(X,this).rel="stylesheet",t=L(Q,this,ut).call(this),I(X,this).href=URL.createObjectURL(new Blob([t],{type:"text/css"})),e instanceof Document){var r=L(Q,this,lt).call(this,t);-1===W.indexOf(r)&&(document.head.appendChild(I(X,this)),W.push(r))}else this.shadowRoot.appendChild(I(X,this))}},{key:"templateFromString",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=document.createElement("template");r.innerHTML=t;var o=document.createDocumentFragment();o.appendChild(r.content);var i=o.querySelector("style");return n&&(N(z,this,!0),this.shadowRoot||this.attachShadow({mode:"open",delegatesFocus:I(H,this)})),L(Q,this,ct).call(this,i.textContent),i.remove(),window.addEventListener("updatecssapply",(function(){L(Q,e,ut).call(e)})),o}},{key:"adoptStyle",value:function(t,e){this.addStylesheetToRootNode(e,t)}},{key:"createProjector",value:function(t,e){var n=this;return new Promise((function(r,o){var i,a=I(q,n)?I(q,n):"append";requestAnimationFrame((function(){(i=window.Maquette.createProjector({performanceLogger:function(t){"renderStart"!==t&&"renderDone"!==t||L(Q,n,st).call(n,t)}}))[a](t,e.bind(n)),N(U,n,i),N(Z,n,!0),L(Q,n,it).call(n),i.renderNow(),r(i),n.dispatchEvent(new CustomEvent("firstRender",{}))}))}))}},{key:"scheduleRender",value:function(){var t;null===(t=I(U,this))||void 0===t||t.scheduleRender()}},{key:"renderNow",value:function(){var t;null===(t=I(U,this))||void 0===t||t.renderNow()}},{key:"connectedCallback",value:function(){N(G,this,!0),I(Y,this).forEach((function(t){null==t||t.connected()}))}},{key:"disconnectedCallback",value:function(){N(G,this,!1),I(Y,this).forEach((function(t){null==t||t.disconnected()}))}},{key:"attributeChangedCallback",value:function(t,e,n){var r=I(D,this).find((function(e){return e.attribute===t}));if(r)if(r.converter)this[r.name]=r.converter.fromAttribute(n);else{var o=r.type;"string"===o?this[r.name]=n:"number"===o?this[r.name]=parseFloat(n):"boolean"===o?this[r.name]=null!==n:"object"===o&&(this[r.name]=JSON.parse(n))}}}],n&&P(e.prototype,n),r&&P(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();function rt(){"function"==typeof this.init&&(this.init(),I(Y,this).forEach((function(t){null==t||t.init()})))}function ot(){var t=this;I(K,this).call(this);var e=this.constructor.projectorMode;N(q,this,e||"append");var n=this.constructor.formAssociated,r=this.constructor.delegatesFocus;N(H,this,r),n&&N(J,this,this.attachInternals());var o=this.constructor.style;if(o){N(z,this,!0),N(q,this,"replace"),this.shadowRoot||this.attachShadow({mode:"open",delegatesFocus:I(H,this)}),L(Q,this,ct).call(this,o);var i=document.createElement("div");this.shadowRoot.appendChild(i),requestAnimationFrame((function(){t.createProjector(i,t.render)})),window.addEventListener("updatecssapply",(function(){L(Q,t,ut).call(t)}))}}function it(){var t=this;I(D,this).filter((function(t){return t.reflect})).forEach((function(e){"string"===e.type&&void 0!==t[e.name]&&null!==t[e.name]?t.setAttribute(e.attribute,t[e.name]):"number"===e.type&&void 0!==t[e.name]&&null!==t[e.name]?t.setAttribute(e.attribute,t[e.name].toString()):"boolean"===e.type&&!0===t[e.name]?!0!==t[e.name]||t.hasAttribute(e.attribute)||t.setAttribute(e.attribute,""):"boolean"===e.type&&!1===t[e.name]?t.hasAttribute(e.attribute)&&t.removeAttribute(e.attribute):"object"===e.type&&void 0!==t[e.name]&&null!==t[e.name]&&(e.converter?t.setAttribute(e.attribute,e.converter.toAttribute(t[e.name])):t.setAttribute(e.attribute,JSON.stringify(t[e.name])))}))}function at(t){return Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype}function ut(){var t=function(t){for(var e,n=customElements.get("custom-style").cssApplyVars,r=t,o=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,i=function(){var t=e[0],o=e[1];if(n.has(o)){var i="@apply"+t.split("@apply",2)[1],a=n.get(o).map((function(t){return";".concat(t,": var(").concat(o,"_-_").concat(t,");")})).join("");r=r.replace(i,a)}};e=o.exec(r);)i();return r}(I(B,this));return I(B,this)!==t&&(N(B,this,t),F(Q,this,at)&&I(V,this)?I(V,this).replaceSync(t):F(Q,this,at)||(I(X,this)&&URL.revokeObjectURL(I(X,this).href),I(X,this).href=URL.createObjectURL(new Blob([t],{type:"text/css"})))),t}function ct(t){N(B,this,t),I(z,this)&&this.shadowRoot?this.addStylesheetToRootNode(t,this.shadowRoot):I(z,this)||this.addStylesheetToRootNode(t,document)}function lt(t){for(var e=0,n=0;e<t.length;e++)n=Math.imul(31,n)+t.charCodeAt(e)|0;return n}function st(t){var e=this;this[t]&&this[t](I("renderStart"===t?tt:et,this));var n="host".concat(t.charAt(0).toUpperCase()).concat(t.slice(1));I(Y,this).forEach((function(r){r[n]&&r[n](I("renderStart"===t?tt:et,e))})),N("renderStart"===t?tt:et,this,!1)}function ft(t){return ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ft(t)}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,dt(r.key),r)}}function dt(t){var e=function(t,e){if("object"!=ft(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ft(e)?e:e+""}function ht(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function yt(t,e){return t.get(bt(t,e))}function bt(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var vt,mt,gt,wt=new WeakMap,Ot=function(){return t=function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ht(this,wt,void 0),r=this,o=e,(n=wt).set(bt(n,r),o),yt(wt,this).addController(this)},(e=[{key:"hostElement",get:function(){return yt(wt,this)}},{key:"renderNow",value:function(){var t;null===(t=this.hostElement)||void 0===t||t.renderNow()}},{key:"scheduleRender",value:function(){var t;null===(t=this.hostElement)||void 0===t||t.scheduleRender()}}])&&pt(t.prototype,e),n&&pt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function St(t){var e="function"==typeof Map?new Map:void 0;return St=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(Mt())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&Nt(o,n.prototype),o}(t,arguments,Tt(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Nt(n,t)},St(t)}function jt(){return jt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Tt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},jt.apply(null,arguments)}function kt(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Pt(t,e,n){return t.set(At(t,e),n),n}function At(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ct(r.key),r)}}function Et(t,e,n){return e&&xt(t.prototype,e),n&&xt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ct(t){var e=function(t,e){if("object"!=It(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=It(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==It(e)?e:e+""}function _t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rt(t,e,n){return e=Tt(e),function(t,e){if(e&&("object"==It(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Mt()?Reflect.construct(e,n||[],Tt(t).constructor):e.apply(t,n))}function Mt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Mt=function(){return!!t})()}function Tt(t){return Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tt(t)}function Ft(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nt(t,e)}function Nt(t,e){return Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nt(t,e)}function It(t){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},It(t)}var Lt=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":It(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},Wt=(vt=function(){function t(){var e;return _t(this,t),(e=Rt(this,t,arguments)).render=function(){return h("button",{class:"foo"},h("slot",null))},e}return Ft(t,nt),Et(t)}(),vt.style=".foo{background-color: red; color: white; border: 0px;}",vt.delegatesFocus=!0,vt);Wt=Lt([b({tagName:"my-button"})],Wt);var Dt,Ut,qt=(mt=function(t){function e(){var t;return _t(this,e),(t=Rt(this,e,arguments)).count=1,t.name="",t.foo="foo",t.onInput=function(e){t.name=e.target.value},t.onPeterClick=function(e){console.log({e,p:t})},t.render=function(){return h("div",null,h("input",{type:"checkbox",checked:"Peter"===t.name}),h("h1",{on:{click:function(e){return console.log(e,t.slotContainer)}},id:"Foo"},"Hallo:"),h("h1",{onclick:function(){return console.log("click "+t.name)},"data-title":t.name&&t.name.toLocaleUpperCase(),class:"title"},t.foo," ",t.name),h("p",{"data-count":t.count,updateAnimation:t.countUpdateAnimation},t.count),h("div",{id:"SlotContainer"},h("slot",null)),h("p",{eventListeners:[["mouseenter",function(){return console.log("enter")},{once:!0}],["mouseleave",function(){return console.log("leave")},{once:!0}]]},"Please enter your name (hint type"," ",h("em",null,h("strong",null,"Peter")),")",h("br",null),h("input",{type:"text",value:t.name,oninput:t.onInput})),h("p",null,h("a",{is:"super-a"},"Super a")),t.name&&t.name.toLowerCase&&t.name.toLowerCase().indexOf("peter")>-1?h("div",{key:"peter",afterRemoved:t.peterRemoved,afterCreate:t.peterCreate,class:"is-peter",eventListeners:[["click",t.onPeterClick]],enterAnimation:t.enterAnimation,exitAnimation:t.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"})):"")},t.onFooEvent=function(e){t.foo=e.detail.foo},t}return Ft(e,t),Et(e,[{key:"enterAnimation",value:function(t,e){y()({targets:t,translateX:[{value:100,duration:1200},{value:0,duration:800}],rotate:"2turn",duration:3e3,loop:!1})}},{key:"exitAnimation",value:function(t,e,n){y()({targets:t,translateX:[{value:100,duration:1200},{value:0,duration:800}],duration:3e3,opacity:0,loop:!1,complete:function(){e(t)}})}},{key:"countUpdateAnimation",value:function(t,e,n){y().timeline().add([{duration:300,targets:t,translateX:200,scale:1.9,easing:"easeOutExpo"},{duration:300,targets:t,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 t=this,e=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(e),this.createProjector(this.shadowRoot.querySelector(".root"),this.render),setInterval((function(){t.count++,t.renderNow()}),5e3),window.addEventListener("foo",this.onFooEvent)}},{key:"attributeChangedCallback",value:function(t,e,n){"name"===t&&(this.name=n)}}],[{key:"observedAttributes",get:function(){return["name"]}}])}((Dt=function(){function t(){return _t(this,t),Rt(this,t,arguments)}return Ft(t,nt),Et(t)}(),Ut=new WeakMap,function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return f(t=u(this,e,[].concat(r)),Ut,!1),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,(r=[{key:"highlight",get:function(){return e=this,(t=Ut).get(p(t,e));var t,e},set:function(t){var e,n,r;n=this,r=t,(e=Ut).set(p(e,n),r);var o="unset";t&&(o="yellow");var i=null==this?void 0:this.shadowRoot.querySelector("div");i&&(i.style.backgroundColor=o)}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Dt))),mt.isFormAssociated=!0,mt);Lt([m],qt.prototype,"name",void 0),Lt([m],qt.prototype,"foo",void 0),Lt([function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(n,r){Object.defineProperty(n,r,{get:function(){return e?this.shadowRoot.querySelector(t):this.querySelector(t)}})}}("#SlotContainer")],qt.prototype,"slotContainer",void 0),qt=Lt([b({tagName:"my-greetings"})],qt);var Bt=new WeakMap,Vt=new WeakSet,Xt=function(){function t(){var e,n,r;return _t(this,t),e=Rt(this,t,arguments),kt(n=e,r=Vt),r.add(n),function(t,e,n){kt(t,e),e.set(t,n)}(e,Bt,void 0),Pt(Bt,e,!1),e.disabled=!1,e}return Ft(t,Ot),Et(t,[{key:"connected",value:function(){console.log("connected"),Pt(Bt,this,!0),At(Vt,this,$t).call(this)}},{key:"disconnected",value:function(){console.info("disconnected"),Pt(Bt,this,!1)}},{key:"shouldUpdate",value:function(t,e,n){return console.info("shouldUpdate",{property:t,oldValue:e,newValue:n}),!0}},{key:"updated",value:function(t,e,n){console.info("updated",{property:t,oldValue:e,newValue:n}),At(Vt,this,$t).call(this)}},{key:"hostRenderStart",value:function(t){console.info("hostRenderStart",{isFirstRender:t,controller:this})}},{key:"hostRenderDone",value:function(t){console.info("hostRenderDone",{isFirstRender:t,controller:this})}}])}();function $t(){var t,e;(e=this,(t=Bt).get(At(t,e)))&&(!0===this.disabled?this.hostElement.setAttribute("disabled","!!"):this.hostElement.removeAttribute("disabled"))}Lt([v({type:"boolean"})],Xt.prototype,"disabled",void 0);var zt=(gt=function(){function t(){var e;return _t(this,t),(e=Rt(this,t,arguments)).disabledController=new Xt(e),e.items=["foo","bar"],e.nickName="de prutser",e.render=function(){var t;return h("div",{classes:{foo:!0,foo__disabled:e.disabledController.disabled}},h("div",null,"Hello ",e.name," ",e.nickName?h("span",null," (",e.nickName,")"):null),h("div",null,"age ",e.age),e.data?h("pre",null,JSON.stringify(e.data,null,2)):null,null===(t=e.items)||void 0===t?void 0:t.map((function(t,e){return h("div",{key:"item".concat(e)},t)})))},e}return Ft(t,nt),Et(t,[{key:"init",value:function(){console.info("init")}},{key:"shouldUpdate",value:function(t,e,n){return"name"!==t||"string"!=typeof n||"adolf"!==n.toLocaleLowerCase()}},{key:"updated",value:function(t,e,n){console.info("PFoo",{name:t,old:e,newValue:n})}},{key:"attributeChangedCallback",value:function(e,n,r){var o,i,a,u,c;(o=t,i="attributeChangedCallback",a=this,c=jt(Tt(1&(u=3)?o.prototype:o),i,a),2&u&&"function"==typeof c?function(t){return c.apply(a,t)}:c)([e,n,r]),"disabled"===e&&(this.disabledController.disabled=null!==r)}},{key:"renderStart",value:function(t){console.info("renderStart",{isFirstRender:t,tag:this.tagName})}},{key:"renderDone",value:function(t){console.info("renderDone",{isFirstRender:t,tag:this.tagName})}}])}(),gt.style=".foo{color: red} .foo__disabled{opacity: 0.5;}",gt.observedAttributes=["disabled"],gt);Lt([v({type:"string",attribute:"name",reflect:!0})],zt.prototype,"name",void 0),Lt([v({type:"number",attribute:"age",reflect:!0})],zt.prototype,"age",void 0),Lt([v({type:"object",attribute:"data",reflect:!0})],zt.prototype,"data",void 0),Lt([v({attribute:"items",type:"object",reflect:!0,converter:{fromAttribute:function(t){return t?t.split(",").map((function(t){return t.trim()})):null},toAttribute:function(t){return t.join?t.join(","):null}}})],zt.prototype,"items",void 0),Lt([v({type:"string",attribute:"nick-name",readonly:!0})],zt.prototype,"nickName",void 0),zt=Lt([b({tagName:"p-foo"})],zt);var Ht=function(){function t(){var e;return _t(this,t),(e=Rt(this,t)).onclick=function(t){t.preventDefault(),alert("super")},e}return Ft(t,St(HTMLAnchorElement)),Et(t,[{key:"connectedCallback",value:function(){this.classList.add("super"),this.style.color="red"}}])}();window.customElements.define("super-a",Ht,{extends:"a"});var Jt=r.J,Yt=r.P;export{Jt as MyButton,Yt as MyGreetings};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! P-ELEMENTS 1.2.17 - Mon Dec 30 2024 08:35:26 GMT+0100 (Central European Standard Time) */(()=>{var t={554:function(t,e,r){var n,o,i,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){if(r.get||r.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=r.value)},a.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:void 0!==r.g&&null!=r.g?r.g:t},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(t){return a.SYMBOL_PREFIX+(t||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var t=a.global.Symbol.iterator;t||(t=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&a.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(t){var e=0;return a.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},a.iteratorPrototype=function(t){return a.initSymbolIterator(),(t={next:t})[a.global.Symbol.iterator]=function(){return this},t},a.array=a.array||{},a.iteratorFromArray=function(t,e){a.initSymbolIterator(),t instanceof String&&(t+="");var r=0,n={next:function(){if(r<t.length){var o=r++;return{value:e(o,t[o]),done:!1}}return n.next=function(){return{done:!0,value:void 0}},n.next()}};return n[Symbol.iterator]=function(){return n},n},a.polyfill=function(t,e,r,n){if(e){for(r=a.global,t=t.split("."),n=0;n<t.length-1;n++){var o=t[n];o in r||(r[o]={}),r=r[o]}(e=e(n=r[t=t[t.length-1]]))!=n&&null!=e&&a.defineProperty(r,t,{configurable:!0,writable:!0,value:e})}},a.polyfill("Array.prototype.keys",(function(t){return t||function(){return a.iteratorFromArray(this,(function(t){return t}))}}),"es6-impl","es3");var u=this;o=[],n=function(){function t(t){if(!V.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t,e){for(var r=t.length,n=2<=arguments.length?arguments[1]:void 0,o=[],i=0;i<r;i++)if(i in t){var a=t[i];e.call(n,a,i,t)&&o.push(a)}return o}function r(t){return t.reduce((function(t,e){return t.concat(V.arr(e)?r(e):e)}),[])}function n(e){return V.arr(e)?e:(V.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function o(t,e){return t.some((function(t){return t===e}))}function i(t){var e,r={};for(e in t)r[e]=t[e];return r}function a(t,e){var r,n=i(t);for(r in t)n[r]=e.hasOwnProperty(r)?e[r]:t[r];return n}function s(t,e){var r,n=i(t);for(r in e)n[r]=V.und(t[r])?e[r]:t[r];return n}function c(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,r,n){return e+e+r+r+n+n}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+(t=parseInt(e[1],16))+","+parseInt(e[2],16)+","+(e=parseInt(e[3],16))+",1)"}function l(t){function e(t,e,r){return 0>r&&(r+=1),1<r&&--r,r<1/6?t+6*(e-t)*r:.5>r?e:r<2/3?t+(e-t)*(2/3-r)*6:t}var r=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(r[1])/360;var n=parseInt(r[2])/100,o=parseInt(r[3])/100;if(r=r[4]||1,0==n)o=n=t=o;else{var i=.5>o?o*(1+n):o+n-o*n,a=2*o-i;o=e(a,i,t+1/3),n=e(a,i,t),t=e(a,i,t-1/3)}return"rgba("+255*o+","+255*n+","+255*t+","+r+")"}function f(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function d(t){return-1<t.indexOf("translate")||"perspective"===t?"px":-1<t.indexOf("rotate")||-1<t.indexOf("skew")?"deg":void 0}function p(t,e){return V.fnc(t)?t(e.target,e.id,e.total):t}function h(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function y(t,e){return V.dom(t)&&o(R,e)?"transform":V.dom(t)&&(t.getAttribute(e)||V.svg(t)&&t[e])?"attribute":V.dom(t)&&"transform"!==e&&h(t,e)?"css":null!=t[e]?"object":void 0}function m(t,r){var n=d(r);if(n=-1<r.indexOf("scale")?1:0+n,!(t=t.style.transform))return n;for(var o=[],i=[],a=[],u=/(\w+)\((.+?)\)/g;o=u.exec(t);)i.push(o[1]),a.push(o[2]);return t=e(a,(function(t,e){return i[e]===r})),t.length?t[0]:n}function v(t,e){switch(y(t,e)){case"transform":return m(t,e);case"css":return h(t,e);case"attribute":return t.getAttribute(e)}return t[e]||0}function b(t,e){var r=/^(\*=|\+=|-=)/.exec(t);if(!r)return t;var n=f(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(r[0],"")),r[0][0]){case"+":return e+t+n;case"-":return e-t+n;case"*":return e*t+n}}function g(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function w(t){t=t.points;for(var e,r=0,n=0;n<t.numberOfItems;n++){var o=t.getItem(n);0<n&&(r+=g(e,o)),e=o}return r}function S(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return g({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return w(t);case"polygon":var e=t.points;return w(t)+g(e.getItem(e.numberOfItems-1),e.getItem(0))}}function E(t,e){function r(r){return r=void 0===r?0:r,t.el.getPointAtLength(1<=e+r?e+r:0)}var n=r(),o=r(-1),i=r(1);switch(t.property){case"x":return n.x;case"y":return n.y;case"angle":return 180*Math.atan2(i.y-o.y,i.x-o.x)/Math.PI}}function A(t,e){var r,n=/-?\d*\.?\d+/g;if(r=V.pth(t)?t.totalLength:t,V.col(r))if(V.rgb(r)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(r);r=o?"rgba("+o[1]+",1)":r}else r=V.hex(r)?c(r):V.hsl(r)?l(r):void 0;else o=(o=f(r))?r.substr(0,r.length-o.length):r,r=e&&!/\s/g.test(r)?o+e:o;return{original:r+="",numbers:r.match(n)?r.match(n).map(Number):[0],strings:V.str(t)||e?r.split(n):[]}}function O(t){return e(t=t?r(V.arr(t)?t.map(n):n(t)):[],(function(t,e,r){return r.indexOf(t)===e}))}function j(t){var e=O(t);return e.map((function(t,r){return{target:t,id:r,total:e.length}}))}function x(t,e){var r=i(e);if(V.arr(t)){var o=t.length;2!==o||V.obj(t[0])?V.fnc(e.duration)||(r.duration=e.duration/o):t={value:t}}return n(t).map((function(t,r){return r=r?0:e.delay,t=V.obj(t)&&!V.pth(t)?t:{value:t},V.und(t.delay)&&(t.delay=r),t})).map((function(t){return s(t,r)}))}function M(t,e){var r,n={};for(r in t){var o=p(t[r],e);V.arr(o)&&(o=o.map((function(t){return p(t,e)})),1===o.length&&(o=o[0])),n[r]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}function k(t){return V.arr(t)?D.apply(this,t):W[t]}function N(t,e){var r;return t.tweens.map((function(n){var o=(n=M(n,e)).value,i=v(e.target,t.name),a=r?r.to.original:i,u=(a=V.arr(o)?o[0]:a,b(V.arr(o)?o[1]:o,a));return i=f(u)||f(a)||f(i),n.from=A(a,i),n.to=A(u,i),n.start=r?r.end:t.offset,n.end=n.start+n.delay+n.duration,n.easing=k(n.easing),n.elasticity=(1e3-Math.min(Math.max(n.elasticity,1),999))/1e3,n.isPath=V.pth(o),n.isColor=V.col(n.from.original),n.isColor&&(n.round=1),r=n}))}function P(t,n){return e(r(t.map((function(t){return n.map((function(e){var r=y(t.target,e.name);if(r){var n=N(e,t);e={type:r,property:e.name,animatable:t,tweens:n,duration:n[n.length-1].end,delay:n[0].delay}}else e=void 0;return e}))}))),(function(t){return!V.und(t)}))}function T(t,e,r,n){var o="delay"===t;return e.length?(o?Math.min:Math.max).apply(Math,e.map((function(e){return e[t]}))):o?n.delay:r.offset+n.delay+n.duration}function I(t){var e,r=a(L,t),n=a(F,t),o=j(t.targets),i=[],u=s(r,n);for(e in t)u.hasOwnProperty(e)||"targets"===e||i.push({name:e,offset:u.offset,tweens:x(t[e],n)});return s(r,{children:[],animatables:o,animations:t=P(o,i),duration:T("duration",t,r,n),delay:T("delay",t,r,n)})}function _(t){function r(){return window.Promise&&new Promise((function(t){return f=t}))}function n(t){return p.reversed?p.duration-t:t}function o(t){for(var r=0,n={},o=p.animations,i=o.length;r<i;){var a=o[r],u=a.animatable,s=(c=a.tweens)[d=c.length-1];d&&(s=e(c,(function(e){return t<e.end}))[0]||s);for(var c=Math.min(Math.max(t-s.start-s.delay,0),s.duration)/s.duration,l=isNaN(c)?1:s.easing(c,s.elasticity),f=(c=s.to.strings,s.round),d=[],y=void 0,m=(y=s.to.numbers.length,0);m<y;m++){var v=void 0,b=(v=s.to.numbers[m],s.from.numbers[m]);v=s.isPath?E(s.value,l*v):b+l*(v-b),f&&(s.isColor&&2<m||(v=Math.round(v*f)/f)),d.push(v)}if(s=c.length)for(y=c[0],l=0;l<s;l++)f=c[l+1],m=d[l],isNaN(m)||(y=f?y+(m+f):y+(m+" "));else y=d[0];B[a.type](u.target,a.property,y,n,u.id),a.currentValue=y,r++}if(r=Object.keys(n).length)for(o=0;o<r;o++)C||(C=h(document.body,"transform")?"transform":"-webkit-transform"),p.animatables[o].target.style[C]=n[o].join(" ");p.currentTime=t,p.progress=t/p.duration*100}function i(t){p[t]&&p[t](p)}function a(){p.remaining&&!0!==p.remaining&&p.remaining--}function u(t){var e=p.duration,u=p.offset,h=u+p.delay,y=p.currentTime,m=p.reversed,v=n(t);if(p.children.length){var b=p.children,g=b.length;if(v>=p.currentTime)for(var w=0;w<g;w++)b[w].seek(v);else for(;g--;)b[g].seek(v)}(v>=h||!e)&&(p.began||(p.began=!0,i("begin")),i("run")),v>u&&v<e?o(v):(v<=u&&0!==y&&(o(0),m&&a()),(v>=e&&y!==e||!e)&&(o(e),m||a())),i("update"),t>=e&&(p.remaining?(c=s,"alternate"===p.direction&&(p.reversed=!p.reversed)):(p.pause(),p.completed||(p.completed=!0,i("complete"),"Promise"in window&&(f(),d=r()))),l=0)}t=void 0===t?{}:t;var s,c,l=0,f=null,d=r(),p=I(t);return p.reset=function(){var t=p.direction,e=p.loop;for(p.currentTime=0,p.progress=0,p.paused=!0,p.began=!1,p.completed=!1,p.reversed="reverse"===t,p.remaining="alternate"===t&&1===e?2:e,o(0),t=p.children.length;t--;)p.children[t].reset()},p.tick=function(t){s=t,c||(c=s),u((l+s-c)*_.speed)},p.seek=function(t){u(n(t))},p.pause=function(){var t=q.indexOf(p);-1<t&&q.splice(t,1),p.paused=!0},p.play=function(){p.paused&&(p.paused=!1,c=0,l=n(p.currentTime),q.push(p),$||H())},p.reverse=function(){p.reversed=!p.reversed,c=0,l=n(p.currentTime)},p.restart=function(){p.pause(),p.reset(),p.play()},p.finished=d,p.reset(),p.autoplay&&p.play(),p}var C,L={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},F={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(" "),V={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return V.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||V.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return V.hex(t)||V.rgb(t)||V.hsl(t)}},D=function(){function t(t,e,r){return(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t}return function(e,r,n,o){if(0<=e&&1>=e&&0<=n&&1>=n){var i=new Float32Array(11);if(e!==r||n!==o)for(var a=0;11>a;++a)i[a]=t(.1*a,e,n);return function(a){if(e===r&&n===o)return a;if(0===a)return 0;if(1===a)return 1;for(var u=0,s=1;10!==s&&i[s]<=a;++s)u+=.1;--s,s=u+(a-i[s])/(i[s+1]-i[s])*.1;var c=3*(1-3*n+3*e)*s*s+2*(3*n-6*e)*s+3*e;if(.001<=c){for(u=0;4>u&&0!=(c=3*(1-3*n+3*e)*s*s+2*(3*n-6*e)*s+3*e);++u){var l=t(s,e,n)-a;s-=l/c}a=s}else if(0===c)a=s;else{s=u,u+=.1;var f=0;do{0<(c=t(l=s+(u-s)/2,e,n)-a)?u=l:s=l}while(1e-7<Math.abs(c)&&10>++f);a=l}return t(a,r,o)}}}}(),W=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,r="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),n={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],t],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(e,r){return 1-t(1-e,r)}],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(e,r){return.5>e?t(2*e,r)/2:1-t(-2*e+2,r)/2}]},o={linear:D(.25,.25,.75,.75)},i={};for(e in n)i.type=e,n[i.type].forEach(function(t){return function(e,n){o["ease"+t.type+r[n]]=V.fnc(e)?e:D.apply(u,e)}}(i)),i={type:i.type};return o}(),B={css:function(t,e,r){return t.style[e]=r},attribute:function(t,e,r){return t.setAttribute(e,r)},object:function(t,e,r){return t[e]=r},transform:function(t,e,r,n,o){n[o]||(n[o]=[]),n[o].push(e+"("+r+")")}},q=[],$=0,H=function(){function t(){$=requestAnimationFrame(e)}function e(e){var r=q.length;if(r){for(var n=0;n<r;)q[n]&&q[n].tick(e),n++;t()}else cancelAnimationFrame($),$=0}return t}();return _.version="2.2.0",_.speed=1,_.running=q,_.remove=function(t){t=O(t);for(var e=q.length;e--;)for(var r=q[e],n=r.animations,i=n.length;i--;)o(t,n[i].animatable.target)&&(n.splice(i,1),n.length||r.pause())},_.getValue=v,_.path=function(e,r){var n=V.str(e)?t(e)[0]:e,o=r||100;return function(t){return{el:n,property:t,totalLength:S(n)*(o/100)}}},_.setDashoffset=function(t){var e=S(t);return t.setAttribute("stroke-dasharray",e),e},_.bezier=D,_.easings=W,_.timeline=function(t){var e=_(t);return e.pause(),e.duration=0,e.add=function(r){return e.children.forEach((function(t){t.began=!0,t.completed=!0})),n(r).forEach((function(r){var n=s(r,a(F,t||{}));n.targets=n.targets||t.targets,r=e.duration;var o=n.offset;n.autoplay=!1,n.direction=e.direction,n.offset=V.und(o)?r:b(o,r),e.began=!0,e.completed=!0,e.seek(n.offset),(n=_(n)).began=!0,n.completed=!0,n.duration>r&&(e.duration=n.duration),e.children.push(n)})),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},_.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},_},void 0===(i="function"==typeof n?n.apply(e,o):n)||(t.exports=i)},318:(t,e,r)=>{"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],s=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var i=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,a=new Map;function u(t){var e=0,r=t.replace(i,(function(t,r,o,i){if(i){e++;var u=function(t){return null==t?void 0:t.split(";").map((function(t){var e=n(t.split(":",2),2),r=e[0],o=e[1];return{key:r.trim(),value:o?o.trim():""}})).filter((function(t){return t.key&&""!==t.key&&""!==t.value}))}(i),s="",c=[];return u.forEach((function(t){c.push(t.key),s+="".concat(r,"_-_").concat(t.key,": ").concat(t.value,";")+"\n"})),a.set(r,c),t.replace(r,"".concat(s,"\n ").concat(r))}return t}));return e>0?r:null}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}function f(t,e,r){return e=y(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],y(t).constructor):e.apply(t,r))}function d(t){var e="function"==typeof Map?new Map:void 0;return d=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(p())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&h(o,r.prototype),o}(t,arguments,y(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,t)},d(t)}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),r=e,(n=[{key:"connectedCallback",value:function(){var t=this,e=this.getAttribute("href");fetch(e).then((function(e){e.text().then((function(e){var r=u(e);if(r){var n=document.createElement("link");n.rel="stylesheet",n.href=URL.createObjectURL(new Blob([r],{type:"text/css"})),t.parentElement.replaceWith(n),window.dispatchEvent(new CustomEvent("updatecssapply"))}}))}))}}])&&c(r.prototype,n),o&&c(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(d(HTMLLinkElement));m.cssApplyVars=a,customElements.whenDefined("custom-style").then((function(){document.body.parentElement.classList.add("custom-style-defined")})),customElements.define("custom-style",m,{extends:"link"});var v=r(523),b=r(554);function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}var w=function(t,e,r){var n=r.value;if("function"!=typeof n)throw new Error("@Bind decorator can only be applied to methods not: ".concat(g(n)));var o=!1;return{configurable:!0,get:function(){if(o||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof n)return n;var r=n.bind(this);return o=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return r},set:function(t){n=t,delete this[e]}}),o=!1,r},set:function(t){n=t}}},S=function(t){return function(e){customElements.get(t.tagName)?console.warn("Custom element with tag name ".concat(t.tagName," already exists.")):customElements.define(t.tagName,e,t.options)}},E=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(r,n){Object.defineProperty(r,n,{get:function(){return e?this.shadowRoot.querySelector(t):this.querySelector(t)}})}},A=function(t){return function(e,r){var n=e.constructor,o=Symbol(r+"_PropertyDecorator");n&&!n.observedAttributes&&(n.observedAttributes=[]),n&&!n.__properties__&&(n.__properties__=[]),n.__properties__.push(r),t.attribute&&!t.readonly&&-1===n.observedAttributes.indexOf(t.attribute)&&n.observedAttributes.push(t.attribute),Object.defineProperty(e,"__property_".concat(r,"__"),{configurable:!0,enumerable:!0,get:function(){return t}}),!0!==t.readonly?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:function(){return this[o]},set:function(e){var n=this,i=this[o],a=(null==this?void 0:this.shouldUpdate)&&!this.shouldUpdate(r,i,e),u=this.isCustomElementController?this.hostElement:this,s=t.converter?t.converter.toAttribute(e):function(t,e){switch(t){case"string":case"number":return e.toString();case"object":return JSON.stringify(e)}}(t.type,e);a?(this[o]=i,requestAnimationFrame((function(){u.setAttribute(t.attribute,i)}))):this[o]=e;var c=function(){n[o]!==i&&((null==n?void 0:n.renderNow)&&n.renderNow(),(null==n?void 0:n.updated)&&n.updated(r,i,n[o]))};if(t.reflect&&t.attribute&&u._canReflect){if("boolean"===t.type)return e&&!u.hasAttribute(t.attribute)?u.setAttribute(t.attribute,""):!e&&u.hasAttribute(t.attribute)&&u.removeAttribute(t.attribute),void c();if(!e)return u.removeAttribute(t.attribute),void c();if(u.getAttribute(t.attribute)===s)return void c();null!==s?u.setAttribute(t.attribute,s):u.removeAttribute(t.attribute)}c(),(null==this?void 0:this.renderNow)&&this.renderNow()}}):Object.defineProperty(e,r,{get:function(){return this[o]},set:function(t){this[o]=t,null==this||this.renderNow(),delete this[r],Object.defineProperty(this,r,{configurable:!0,enumerable:!0,get:function(){return this[o]},set:function(){throw new Error("Cannot set read-only property")}}),Object.seal(this[o])}})}},O=A({});function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function x(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function N(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach((function(e){P(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function P(t,e,r){return(e=I(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function T(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,I(n.key),n)}}function I(t){var e=function(t,e){if("object"!=j(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==j(e)?e:e+""}function _(t,e){if(e&&("object"==j(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function C(t){var e="function"==typeof Map?new Map:void 0;return C=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(L())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&F(o,r.prototype),o}(t,arguments,R(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),F(r,t)},C(t)}function L(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(L=function(){return!!t})()}function F(t,e){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},F(t,e)}function R(t){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},R(t)}function V(t,e,r){D(t,e),e.set(t,r)}function D(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function W(t,e,r){return r($(t,e))}function B(t,e,r){return t.set($(t,e),r),r}function q(t,e){return t.get($(t,e))}function $(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var H=[],U=new WeakMap,z=new WeakMap,K=new WeakMap,Y=new WeakMap,X=new WeakMap,J=new WeakMap,Q=new WeakMap,Z=new WeakMap,G=new WeakMap,tt=new WeakMap,et=new WeakMap,rt=new WeakMap,nt=new WeakMap,ot=new WeakSet,it=new WeakMap,at=function(t){function e(t){var r,n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=R(o=e),function(t,e){D(t,e),e.add(t)}(r=_(n,L()?Reflect.construct(o,i||[],R(n).constructor):o.apply(n,i)),ot),V(r,U,void 0),V(r,z,void 0),V(r,K,void 0),V(r,Y,void 0),V(r,X,void 0),V(r,J,void 0),V(r,Q,!1),V(r,Z,void 0),V(r,G,void 0),V(r,tt,void 0),V(r,et,[]),V(r,rt,!1),V(r,nt,!1),V(r,it,(function(){var t=r.constructor.__properties__;B(U,r,[]),t&&B(U,r,t.map((function(t){return N(N({},r["__property_".concat(t,"__")]),{},{name:t})})))})),$(ot,r,st).call(r),$(ot,r,ut).call(r),_(r,t)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&F(t,e)}(e,t),r=e,n=[{key:"_canReflect",get:function(){return q(nt,this)}},{key:"properties",get:function(){return q(U,this)}},{key:"addController",value:function(t){q(et,this).push(t),q(rt,this)&&t.connected&&t.connected()}},{key:"internals",get:function(){return q(tt,this)},set:function(t){B(tt,this,t)}},{key:"addStylesheetToRootNode",value:function(t,e){if(W(ot,this,lt)){if(q(X,this)||B(X,this,new CSSStyleSheet),t=$(ot,this,ft).call(this),q(X,this).replaceSync(t),q(Q,this))return;if(e instanceof Document){var r=$(ot,this,pt).call(this,t);-1===H.indexOf(r)&&(document.adoptedStyleSheets=[].concat(x(document.adoptedStyleSheets),[q(X,this)]),B(Q,this,!0),H.push(r))}else this.shadowRoot.adoptedStyleSheets=[q(X,this)],B(Q,this,!0)}else if(B(J,this,document.createElement("link")),q(J,this).rel="stylesheet",t=$(ot,this,ft).call(this),q(J,this).href=URL.createObjectURL(new Blob([t],{type:"text/css"})),e instanceof Document){var n=$(ot,this,pt).call(this,t);-1===H.indexOf(n)&&(document.head.appendChild(q(J,this)),H.push(n))}else this.shadowRoot.appendChild(q(J,this))}},{key:"templateFromString",value:function(t){var e=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=document.createElement("template");n.innerHTML=t;var o=document.createDocumentFragment();o.appendChild(n.content);var i=o.querySelector("style");return r&&(B(Z,this,!0),this.shadowRoot||this.attachShadow({mode:"open",delegatesFocus:q(G,this)})),$(ot,this,dt).call(this,i.textContent),i.remove(),window.addEventListener("updatecssapply",(function(){$(ot,e,ft).call(e)})),o}},{key:"adoptStyle",value:function(t,e){this.addStylesheetToRootNode(e,t)}},{key:"createProjector",value:function(t,e){var r=this;return new Promise((function(n,o){var i,a=q(K,r)?q(K,r):"append";requestAnimationFrame((function(){(i=window.Maquette.createProjector())[a](t,e.bind(r)),B(z,r,i),B(nt,r,!0),$(ot,r,ct).call(r),n(i),r.dispatchEvent(new CustomEvent("firstRender",{}))}))}))}},{key:"renderNow",value:function(){var t;null===(t=q(z,this))||void 0===t||t.renderNow()}},{key:"connectedCallback",value:function(){B(rt,this,!0),q(et,this).forEach((function(t){null==t||t.connected()}))}},{key:"disconnectedCallback",value:function(){B(rt,this,!1),q(et,this).forEach((function(t){null==t||t.disconnected()}))}},{key:"attributeChangedCallback",value:function(t,e,r){var n=q(U,this).find((function(e){return e.attribute===t}));if(n)if(n.converter)this[n.name]=n.converter.fromAttribute(r);else{var o=n.type;"string"===o?this[n.name]=r:"number"===o?this[n.name]=parseFloat(r):"boolean"===o?this[n.name]=null!==r:"object"===o&&(this[n.name]=JSON.parse(r))}}}],n&&T(r.prototype,n),o&&T(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(C(HTMLElement));function ut(){"function"==typeof this.init&&(this.init(),q(et,this).forEach((function(t){null==t||t.init()})))}function st(){var t=this;q(it,this).call(this);var e=this.constructor.projectorMode;B(K,this,e||"append");var r=this.constructor.formAssociated,n=this.constructor.delegatesFocus;B(G,this,n),r&&B(tt,this,this.attachInternals());var o=this.constructor.style;if(o){B(Z,this,!0),B(K,this,"replace"),this.shadowRoot||this.attachShadow({mode:"open",delegatesFocus:q(G,this)}),$(ot,this,dt).call(this,o);var i=document.createElement("div");this.shadowRoot.appendChild(i),requestAnimationFrame((function(){t.createProjector(i,t.render)})),window.addEventListener("updatecssapply",(function(){$(ot,t,ft).call(t)}))}}function ct(){var t=this;q(U,this).filter((function(t){return t.reflect})).forEach((function(e){"string"===e.type&&void 0!==t[e.name]&&null!==t[e.name]?t.setAttribute(e.attribute,t[e.name]):"number"===e.type&&void 0!==t[e.name]&&null!==t[e.name]?t.setAttribute(e.attribute,t[e.name].toString()):"boolean"===e.type&&!0===t[e.name]?!0!==t[e.name]||t.hasAttribute(e.attribute)||t.setAttribute(e.attribute,""):"boolean"===e.type&&!1===t[e.name]?t.hasAttribute(e.attribute)&&t.removeAttribute(e.attribute):"object"===e.type&&void 0!==t[e.name]&&null!==t[e.name]&&(e.converter?t.setAttribute(e.attribute,e.converter.toAttribute(t[e.name])):t.setAttribute(e.attribute,JSON.stringify(t[e.name])))}))}function lt(t){return Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype}function ft(){var t=function(t){for(var e,r=customElements.get("custom-style").cssApplyVars,n=t,o=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,i=function(){var t=e[0],o=e[1];if(r.has(o)){var i="@apply"+t.split("@apply",2)[1],a=r.get(o).map((function(t){return";".concat(t,": var(").concat(o,"_-_").concat(t,");")})).join("");n=n.replace(i,a)}};e=o.exec(n);)i();return n}(q(Y,this));return q(Y,this)!==t&&(B(Y,this,t),W(ot,this,lt)&&q(X,this)?q(X,this).replaceSync(t):W(ot,this,lt)||(q(J,this)&&URL.revokeObjectURL(q(J,this).href),q(J,this).href=URL.createObjectURL(new Blob([t],{type:"text/css"})))),t}function dt(t){B(Y,this,t),q(Z,this)&&this.shadowRoot?this.addStylesheetToRootNode(t,this.shadowRoot):q(Z,this)||this.addStylesheetToRootNode(t,document)}function pt(t){for(var e=0,r=0;e<t.length;e++)r=Math.imul(31,r)+t.charCodeAt(e)|0;return r}function ht(t){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(t)}function yt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mt(n.key),n)}}function mt(t){var e=function(t,e){if("object"!=ht(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ht(e)?e:e+""}function vt(t,e,r){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,r)}function bt(t,e){return t.get(gt(t,e))}function gt(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var wt=new WeakMap,St=function(){return t=function t(e){var r,n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),vt(this,wt,void 0),n=this,o=e,(r=wt).set(gt(r,n),o),bt(wt,this).addController(this)},(e=[{key:"hostElement",get:function(){return bt(wt,this)}},{key:"renderNow",value:function(){var t;null===(t=this.hostElement)||void 0===t||t.renderNow()}}])&&yt(t.prototype,e),r&&yt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function At(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],s=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||Ot(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ot(t,e){if(t){if("string"==typeof t)return jt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jt(t,e):void 0}}function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var xt,Mt="http://www.w3.org/",kt="".concat(Mt,"2000/svg"),Nt="".concat(Mt,"1999/xlink"),Pt=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","readonly","required","reversed","selected","scoped","seamless","typemustmatch"],Tt=[],It=function(t,e){var r={};return Object.keys(t).forEach((function(e){r[e]=t[e]})),e&&Object.keys(e).forEach((function(t){r[t]=e[t]})),r},_t=function(t,e){return t.vnodeSelector===e.vnodeSelector&&(t.properties&&e.properties?t.properties.key===e.properties.key&&t.properties.bind===e.properties.bind:!t.properties&&!e.properties)},Ct=function(t){if("string"!=typeof t)throw new Error("Style values must be strings")},Lt=function(t,e,r){if(""!==e.vnodeSelector)for(var n=r;n<t.length;n++)if(_t(t[n],e))return n;return-1},Ft=function(t,e,r,n){var o=t[e];if(""!==o.vnodeSelector){var i=o.properties;if(!(i?void 0===i.key?i.bind:i.key:void 0))for(var a=0;a<t.length;a++)if(a!==e){var u=t[a];if(_t(u,o))throw{error:new Error("".concat(r.vnodeSelector," had a ").concat(o.vnodeSelector," child ").concat("added"===n?n:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:r,childNode:o}}}},Rt=function(t){if(t.properties){var e=t.properties.enterAnimation;e&&e(t.domNode,t.properties)}},Vt=[],Dt=!1,Wt=function(t){(t.children||[]).forEach(Wt),t.properties&&t.properties.afterRemoved&&t.properties.afterRemoved.apply(t.properties.bind||t.properties,[t.domNode])},Bt=function(){Dt=!1,Vt.forEach(Wt),Vt.length=0},qt=function(t){Vt.push(t),Dt||(Dt=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(Bt,{timeout:16}):setTimeout(Bt,16))},$t=function(t){var e=t.domNode;if(t.properties){t.properties.eventListeners&&Array.isArray(t.properties.eventListeners)&&t.properties.eventListeners.forEach((function(t){e.removeEventListener(t[0],t[1])}));var r=t.properties.exitAnimation;if(r){e.style.pointerEvents="none";return void r(e,(function(){e.parentNode&&(e.parentNode.removeChild(e),qt(t))}),t.properties)}}e.parentNode&&(e.parentNode.removeChild(e),qt(t))},Ht=function(t,e,r){if(e){var n,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Ot(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;zt(i,t,void 0,r)}}catch(t){o.e(t)}finally{o.f()}}},Ut=function(t,e,r){if(Ht(t,e.children,r),e.text&&(t.textContent=e.text),function(t,e,r){if(e)for(var n=r.eventHandlerInterceptor,o=Object.keys(e),i=o.length,a=function(){var i,a=o[u],s=e[a];if("className"===a)throw new Error('Property "className" is not supported, use "class".');if("class"===a)Kt(t,s,!0);else if("classes"===a)for(var c=Object.keys(s),l=c.length,f=0;f<l;f++){var d=c[f];s[d]&&t.classList.add(d)}else if("styles"===a)for(var p=Object.keys(s),h=p.length,y=0;y<h;y++){var m=p[y],v=s[m];v&&(Ct(v),r.styleApplyer(t,m,v))}else if("on"===a&&s)for(var b=0,g=Object.entries(e.on);b<g.length;b++){var w=At(g[b],2),S=w[0],E=w[1],A="function"==typeof E?E:E.listener;n&&(A=n(S,A,t,e)),A&&t.addEventListener(S,A,"function"==typeof E?void 0:E.options)}else if("key"!==a&&null!=s){var O=Et(s);"function"===O?(0===a.lastIndexOf("on",0)&&(n&&(s=n(a,s,t,e)),"oninput"===a&&(i=s,s=function(t){i.apply(this,[t]),t.target["oninput-value"]=t.target.value})),t[a]=s):r.namespace===kt?"href"===a?t.setAttributeNS(Nt,a,s):t.setAttribute(a,s):"string"===O&&"value"!==a&&"innerHTML"!==a?t.setAttribute(a,s):t[a]=s}},u=0;u<i;u++)a()}(t,e.properties,r),e.properties&&e.properties.afterCreate)e.properties.afterCreate.apply(e.properties.bind||e.properties,[t,r,e.vnodeSelector,e.properties,e.children]);else if(e.properties&&e.properties.eventListeners){if(!Array.isArray(e.properties.eventListeners))throw new Error("eventListeners value must be an array");e.properties.eventListeners.forEach((function(e){t.addEventListener(e[0],e[1],e[2])}))}},zt=function(t,e,r,n){var o,i=0,a=t.vnodeSelector,u=e.ownerDocument;if(""===a)t.domNode?t.domNode.nodeValue=t.text:(o=t.domNode=u.createTextNode(t.text),void 0!==r?e.insertBefore(o,r):e.appendChild(o));else{for(var s=0;s<=a.length;++s){var c=a.charAt(s);if(s===a.length||"."===c||"#"===c){var l=a.charAt(i-1),f=a.slice(i,s);if("."===l)o.classList.add(f);else if("#"===l)o.id=f;else{var d;if("svg"===f&&(n=It(n,{namespace:kt})),void 0!==n.namespace)o=t.domNode=u.createElementNS(n.namespace,f);else o=t.domNode=t.domNode||(null!==(d=t.properties)&&void 0!==d&&d.is?u.createElement(f,{is:t.properties.is}):u.createElement(f)),"input"===f&&t.properties&&void 0!==t.properties.type&&o.setAttribute("type",t.properties.type);void 0!==r?e.insertBefore(o,r):o.parentNode!==e&&e.appendChild(o)}i=s+1}}Ut(o,t,n)}},Kt=function(t,e,r){e&&e.split(" ").forEach((function(e){e&&t.classList.toggle(e,r)}))},Yt=function(t,e,r,n,o){if(r===n)return!1;n=n||Tt;for(var i,a=(r=r||Tt).length,u=n.length,s=0,c=0,l=!1;c<u;){var f=s<a?r[s]:void 0,d=n[c];if(void 0!==f&&_t(f,d))l=xt(f,d,o)||l,s++;else{var p=Lt(r,d,s+1);if(p>=0){for(i=s;i<p;i++)$t(r[i]),Ft(r,i,t,"removed");l=xt(r[p],d,o)||l,s=p+1}else zt(d,e,s<a?r[s].domNode:void 0,o),Rt(d),Ft(n,c,t,"added")}c++}if(a>s)for(i=s;i<a;i++)$t(r[i]),Ft(r,i,t,"removed");return l};xt=function(t,e,r){var n=t.domNode,o=!1;if(t===e)return!1;var i=!1;if(""===e.vnodeSelector){if(e.text!==t.text){var a=n.ownerDocument.createTextNode(e.text);return n.parentNode.replaceChild(a,n),e.domNode=a,o=!0}e.domNode=n}else 0===e.vnodeSelector.lastIndexOf("svg",0)&&(r=It(r,{namespace:kt})),t.text!==e.text&&(i=!0,void 0===e.text?n.removeChild(n.firstChild):n.textContent=e.text),e.domNode=n,i=Yt(e,n,t.children,e.children,r)||i,i=function(t,e,r,n){if(r){for(var o=!1,i=Object.keys(r),a=i.length,u=0;u<a;u++){var s=i[u],c=r[s],l=e[s];if("class"===s)l!==c&&(Kt(t,l,!1),Kt(t,c,!0));else if("classes"===s)for(var f=t.classList,d=Object.keys(c),p=d.length,h=0;h<p;h++){var y=d[h],m=!!c[y];m!==!!l[y]&&(o=!0,m?f.add(y):f.remove(y))}else if("styles"===s)for(var v=Object.keys(c),b=v.length,g=0;g<b;g++){var w=v[g],S=c[w];S!==l[w]&&(o=!0,S?(Ct(S),n.styleApplyer(t,w,S)):n.styleApplyer(t,w,""))}else if(c||"string"!=typeof l||Pt.indexOf(s)<0&&(c=""),"value"===s){var E=t[s];E!==c&&(t["oninput-value"]?E===t["oninput-value"]:c!==l)&&(t[s]=c,t["oninput-value"]=void 0),c!==l&&(o=!0)}else if(Pt.indexOf(s)>=0)"string"==typeof c||!0===c?(t.setAttribute(s,""),t[s]=!0):(t.removeAttribute(s),t[s]=!1),o=!0;else if(c!==l){var A=Et(c);"function"===A&&n.eventHandlerInterceptor||(n.namespace===kt?"href"===s?t.setAttributeNS(Nt,s,c):t.setAttribute(s,c):"string"===A&&"innerHTML"!==s?"role"===s&&""===c?t.removeAttribute(s):t.setAttribute(s,c):t[s]!==c&&(t[s]=c),o=!0)}}return o}}(n,t.properties,e.properties,r)||i,e.properties&&e.properties.afterUpdate&&e.properties.afterUpdate.apply(e.properties.bind||e.properties,[n,r,e.vnodeSelector,e.properties,e.children]);return i&&e.properties&&e.properties.updateAnimation&&e.properties.updateAnimation(n,e.properties,t.properties),o};var Xt,Jt=function(t,e){return{getLastRender:function(){return t},update:function(r){if(t.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var n=t;t=r,xt(n,r,e)},domNode:t.domNode}},Qt={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(t,e,r){"-"===e.charAt(0)?t.style.setProperty(e,r):t.style[e]=r}},Zt=function(t){return It(Qt,t)},Gt={create:function(t,e){return e=Zt(e),zt(t,document.createElement("div"),void 0,e),Jt(t,e)},append:function(t,e,r){return r=Zt(r),zt(e,t,void 0,r),Jt(e,r)},insertBefore:function(t,e,r){return r=Zt(r),zt(e,t.parentNode,t,r),Jt(e,r)},merge:function(t,e,r){return r=Zt(r),e.domNode=t,Ut(t,e,r),Jt(e,r)},replace:function(t,e,r){return r=Zt(r),zt(e,t.parentNode,t,r),t.parentNode.removeChild(t),Jt(e,r)}};Xt=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){return t.filter(e)[0]};var te=function(t,e,r){return function(t,e,r,o){return n};function n(n){r("domEvent",n);var o=e(),i=function(t,e){for(var r=[];t&&t!==e;)r.push(t),t=t.parentNode;return r}(n.currentTarget,o.domNode);i.reverse();var a,u,s,c=function(t,e){var r=t;return e.forEach((function(t){r=r&&r.children?Xt(r.children,(function(e){return e.domNode===t})):void 0})),r}(o.getLastRender(),i);(t.scheduleRender(),c)&&(a=(null!==(u=null!==(s=c.properties["on".concat(n.type)])&&void 0!==s?s:c.properties.on[n.type].listener)&&void 0!==u?u:c.properties.on[n.type]).apply(c.properties.bind||this,arguments));return r("domEventProcessed",n),a}},ee=function(t,e){for(var r=0,n=t.length;r<n;r++){var o=t[r];Array.isArray(o)?ee(o,e):null!=o&&!1!==o&&(o.hasOwnProperty("vnodeSelector")||(o={vnodeSelector:"",properties:void 0,children:void 0,text:o.toString(),domNode:null}),e.push(o))}},re=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(1===n.length&&"string"==typeof n[0])return{vnodeSelector:t,properties:e||void 0,children:void 0,text:n[0],domNode:null};var i=[];return ee(n,i),{vnodeSelector:t,properties:e||void 0,children:i,text:void 0,domNode:null}},ne={createCache:function(){var t,e;return{invalidate:function(){e=void 0,t=void 0},result:function(r,n){if(t)for(var o=0;o<r.length;o++)t[o]!==r[o]&&(e=void 0);return e||(e=n(),t=r),e}}},createMapping:function(t,e,r){var n=[],o=[];return{results:o,map:function(i){for(var a=i.map(t),u=o.slice(),s=0,c=0;c<i.length;c++){var l=i[c],f=a[c];if(f===n[s])o[c]=u[s],r(l,u[s],c),s++;else{for(var d=!1,p=1;p<n.length+1;p++){var h=(s+p)%n.length;if(n[h]===f){o[c]=u[h],r(i[c],u[h],c),s=h+1,d=!0;break}}d||(o[c]=e(l,c))}}o.length=i.length,n=a}}},createProjector:function(t){var e,r,n=Zt(t),o=n.performanceLogger,i=!0,a=!1,u=[],s=[],c=function(t,r,i){var a;n.eventHandlerInterceptor=te(e,(function(){return a}),o),a=t(r,i(),n),u.push(a),s.push(i)},l=function(){if(r=void 0,i){i=!1,o("renderStart",void 0);for(var t=0;t<u.length;t++){var e=s[t]();o("rendered",void 0),u[t].update(e),o("patched",void 0)}o("renderDone",void 0),i=!0}};return e={renderNow:l,scheduleRender:function(){r||a||(r=requestAnimationFrame(l))},stop:function(){r&&(cancelAnimationFrame(r),r=void 0),a=!0},resume:function(){a=!1,i=!0,e.scheduleRender()},append:function(t,e){c(Gt.append,t,e)},insertBefore:function(t,e){c(Gt.insertBefore,t,e)},merge:function(t,e){c(Gt.merge,t,e)},replace:function(t,e){c(Gt.replace,t,e)},detach:function(t){for(var e=0;e<s.length;e++)if(s[e]===t)return s.splice(e,1),u.splice(e,1)[0];throw new Error("renderFunction was not found")}}},dom:Gt,h:re};!function(t){t._=v,t.Maquette=ne,t.h=re,t.anime=b,t.CustomElement=at,t.CustomElementController=St,t.CustomElementConfig=S,t.PropertyRenderOnSet=O,t.RenderOnSet=O,t.Property=A,t.Query=E,t.Bind=w}(window)},484:()=>{"use strict";const{keys:t}=Object,e=!0,r=!1,n="querySelectorAll",o="querySelectorAll",{document:i,Element:a,MutationObserver:u,Set:s,WeakMap:c}=self,l=t=>o in t,{filter:f}=[],d=t=>{const d=new c,p=(e,r)=>{let n;if(r)for(let o,i=(t=>t.matches||t.webkitMatchesSelector||t.msMatchesSelector)(e),a=0,{length:u}=y;a<u;a++)i.call(e,o=y[a])&&(d.has(e)||d.set(e,new s),n=d.get(e),n.has(o)||(n.add(o),t.handle(e,r,o)));else d.has(e)&&(n=d.get(e),d.delete(e),n.forEach((n=>{t.handle(e,r,n)})))},h=(t,e=!0)=>{for(let r=0,{length:n}=t;r<n;r++)p(t[r],e)},{query:y}=t,m=t.root||i,v=((t,o=document,i=MutationObserver,a=["*"])=>{const u=(r,o,i,a,s,c)=>{for(const l of r)(c||n in l)&&(s?i.has(l)||(i.add(l),a.delete(l),t(l,s)):a.has(l)||(a.add(l),i.delete(l),t(l,s)),c||u(l[n](o),o,i,a,s,e))},s=new i((t=>{if(a.length){const n=a.join(","),o=new Set,i=new Set;for(const{addedNodes:a,removedNodes:s}of t)u(s,n,o,i,r,r),u(a,n,o,i,e,r)}})),{observe:c}=s;return(s.observe=t=>c.call(s,t,{subtree:e,childList:e}))(o),s})(p,m,u,y),{attachShadow:b}=a.prototype;return b&&(a.prototype.attachShadow=function(t){const e=b.call(this,t);return v.observe(e),e}),y.length&&h(m[o](y)),{drop:t=>{for(let e=0,{length:r}=t;e<r;e++)d.delete(t[e])},flush:()=>{const t=v.takeRecords();for(let e=0,{length:r}=t;e<r;e++)h(f.call(t[e].removedNodes,l),!1),h(f.call(t[e].addedNodes,l),!0)},observer:v,parse:h}},{customElements:p,document:h,Element:y,MutationObserver:m,Object:v,Promise:b,Map:g,Set:w,WeakMap:S,Reflect:E}=self,{createElement:A}=h,{define:O,get:j,upgrade:x}=p,{construct:M}=E||{construct(t){return t.call(this)}},{defineProperty:k,getOwnPropertyNames:N,setPrototypeOf:P}=v,T=new S,I=new w,_=new g,C=new g,L=new g,F=new g,R=[],V=[],D=t=>F.get(t)||j.call(p,t),{parse:W}=d({query:V,handle:(e,r,n)=>{const o=L.get(n);if(r&&!o.isPrototypeOf(e)){const r=(e=>{const r=t(e),n=[],o=new Set,{length:i}=r;for(let t=0;t<i;t++){n[t]=e[r[t]];try{delete e[r[t]]}catch(e){o.add(t)}}return()=>{for(let t=0;t<i;t++)o.has(t)||(e[r[t]]=n[t])}})(e);U=P(e,o);try{new o.constructor}finally{U=null,r()}}const i=(r?"":"dis")+"connectedCallback";i in o&&e[i]()}}),{parse:B}=d({query:R,handle(t,e){T.has(t)&&(e?I.add(t):I.delete(t),V.length&&z.call(V,t))}}),{attachShadow:q}=y.prototype;q&&(y.prototype.attachShadow=function(t){const e=q.call(this,t);return T.set(this,e),e});const $=t=>{if(!C.has(t)){let e,r=new b((t=>{e=t}));C.set(t,{$:r,_:e})}return C.get(t).$},H=((t,e)=>{const r=t=>{for(let e=0,{length:r}=t;e<r;e++)n(t[e])},n=({target:t,attributeName:e,oldValue:r})=>{t.attributeChangedCallback(e,r,t.getAttribute(e))};return(o,i)=>{const{observedAttributes:a}=o.constructor;return a&&t(i).then((()=>{new e(r).observe(o,{attributes:!0,attributeOldValue:!0,attributeFilter:a});for(let t=0,{length:e}=a;t<e;t++)o.hasAttribute(a[t])&&n({target:o,attributeName:a[t],oldValue:null})})),o}})($,m);let U=null;function z(t){const e=T.get(t);W(e.querySelectorAll(this),t.isConnected)}N(self).filter((t=>/^HTML.*Element$/.test(t))).forEach((t=>{const e=self[t];function r(){const{constructor:t}=this;if(!_.has(t))throw new TypeError("Illegal constructor");const{is:r,tag:n}=_.get(t);if(r){if(U)return H(U,r);const e=A.call(h,n);return e.setAttribute("is",r),H(P(e,t.prototype),r)}return M.call(this,e,[],t)}P(r,e),k(r.prototype=e.prototype,"constructor",{value:r}),k(self,t,{value:r})})),h.createElement=function(t,e){const r=e&&e.is;if(r){const e=F.get(r);if(e&&_.get(e).tag===t)return new e}const n=A.call(h,t);return r&&n.setAttribute("is",r),n},p.get=D,p.whenDefined=$,p.upgrade=function(t){const e=t.getAttribute("is");if(e){const r=F.get(e);if(r)return void H(P(t,r.prototype),e)}x.call(p,t)},p.define=function(t,e,r){if(D(t))throw new Error(`'${t}' has already been defined as a custom element`);let n;const o=r&&r.extends;_.set(e,o?{is:t,tag:o}:{is:"",tag:t}),o?(n=`${o}[is="${t}"]`,L.set(n,e.prototype),F.set(t,e),V.push(n)):(O.apply(p,arguments),R.push(n=t)),$(t).then((()=>{o?(W(h.querySelectorAll(n)),I.forEach(z,[n])):B(h.querySelectorAll(n))})),C.get(t)._(e)}},650:()=>{"use strict";!function(t){const e=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,u=new WeakMap,s=new WeakMap,c=new WeakMap,l=new WeakMap,f=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,y=new WeakMap,m={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"};function v(t){const e=o.get(t),{form:r}=e;I(t,r,e),M(t,e.labels)}const b=(t,e=!1)=>{const r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>o.has(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let n=r.nextNode();const i=!e||t.disabled;for(;n;)n.formDisabledCallback&&i&&O(n,t.disabled),n=r.nextNode()},g={attributes:!0,attributeFilter:["disabled","name"]},w=R()?new MutationObserver((t=>{for(const e of t){const t=e.target;if("disabled"===e.attributeName&&(t.constructor.formAssociated?O(t,t.hasAttribute("disabled")):"fieldset"===t.localName&&b(t)),"name"===e.attributeName&&t.constructor.formAssociated){const e=o.get(t),r=c.get(t);e.setFormValue(r)}}})):{};function S(t){t.forEach((t=>{const{addedNodes:e,removedNodes:r}=t,i=Array.from(e),a=Array.from(r);i.forEach((t=>{var e;if(o.has(t)&&t.constructor.formAssociated&&v(t),l.has(t)){const e=l.get(t);Object.keys(m).filter((t=>null!==e[t])).forEach((r=>{t.setAttribute(m[r],e[r])})),l.delete(t)}if(y.has(t)){const e=y.get(t);t.setAttribute("internals-valid",e.validity.valid.toString()),t.setAttribute("internals-invalid",(!e.validity.valid).toString()),t.setAttribute("aria-invalid",(!e.validity.valid).toString()),y.delete(t)}if("form"===t.localName){const e=s.get(t),r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>!o.has(t)||!t.constructor.formAssociated||e&&e.has(t)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT});let n=r.nextNode();for(;n;)v(n),n=r.nextNode()}"fieldset"===t.localName&&(null===(e=w.observe)||void 0===e||e.call(w,t,g),b(t,!0))})),a.forEach((t=>{const e=o.get(t);if(e&&n.get(e)&&j(e),u.has(t)){u.get(t).disconnect()}}))}))}function E(t){t.forEach((t=>{const{removedNodes:e}=t;e.forEach((e=>{const r=p.get(t.target);o.has(e)&&F(e),r.disconnect()}))}))}!R()||new MutationObserver(S);const A={childList:!0,subtree:!0},O=(t,e)=>{t.toggleAttribute("internals-disabled",e),e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled"),t.formDisabledCallback&&t.formDisabledCallback.apply(t,[e])},j=t=>{n.get(t).forEach((t=>{t.remove()})),n.set(t,[])},x=(t,e)=>{const r=document.createElement("input");return r.type="hidden",r.name=t.getAttribute("name"),t.after(r),n.get(e).push(r),r},M=(t,e)=>{if(e.length){Array.from(e).forEach((e=>e.addEventListener("click",t.click.bind(t))));let r=e[0].id;e[0].id||(r=`${e[0].htmlFor}_Label`,e[0].id=r),t.setAttribute("aria-labelledby",r)}},k=t=>{const e=Array.from(t.elements).filter((t=>!t.tagName.includes("-")&&t.validity)).map((t=>t.validity.valid)),r=s.get(t)||[],n=[...e,...Array.from(r).filter((t=>t.isConnected)).map((t=>o.get(t).validity.valid))].includes(!1);t.toggleAttribute("internals-invalid",n),t.toggleAttribute("internals-valid",!n)},N=t=>{k(_(t.target))},P=t=>{k(_(t.target))},T=t=>{const e=s.get(t.target);e&&e.size&&e.forEach((t=>{t.constructor.formAssociated&&t.formResetCallback&&t.formResetCallback.apply(t)}))},I=(t,e,r)=>{if(e){const n=s.get(e);if(n)n.add(t);else{const r=new Set;r.add(t),s.set(e,r),(t=>{const e=["button[type=submit]","input[type=submit]","button:not([type])"].map((t=>`${t}:not([disabled])`)).map((e=>`${e}:not([form])${t.id?`,${e}[form='${t.id}']`:""}`)).join(",");t.addEventListener("click",(r=>{if(r.target.closest(e)){const e=s.get(t);if(t.noValidate)return;e.size&&Array.from(e).reverse().map((t=>o.get(t).reportValidity())).includes(!1)&&r.preventDefault()}}))})(e),e.addEventListener("reset",T),e.addEventListener("input",N),e.addEventListener("change",P)}a.set(e,{ref:t,internals:r}),t.constructor.formAssociated&&t.formAssociatedCallback&&setTimeout((()=>{t.formAssociatedCallback.apply(t,[e])}),0),k(e)}},_=t=>{let e=t.parentNode;return e&&"FORM"!==e.tagName&&(e=_(e)),e},C=(t,e,r=DOMException)=>{if(!t.constructor.formAssociated)throw new r(e)},L=(t,e,r)=>{const n=s.get(t);return n&&n.size&&n.forEach((t=>{o.get(t)[r]()||(e=!1)})),e},F=t=>{if(t.constructor.formAssociated){const e=o.get(t),{labels:r,form:n}=e;M(t,r),I(t,n,e)}};function R(){return"undefined"!=typeof MutationObserver}class V{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const D=t=>{let e=!0;for(let r in t)"valid"!==r&&!1!==t[r]&&(e=!1);return e},W=new WeakMap;function B(t,e){t.toggleAttribute(e,!0),t.part&&t.part.add(e)}class q extends Set{static get isPolyfilled(){return!0}constructor(t){if(super(),!t||!t.tagName||-1===t.tagName.indexOf("-"))throw new TypeError("Illegal constructor");W.set(this,t)}add(t){if(!/^--/.test(t)||"string"!=typeof t)throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${t} must start with '--'.`);const e=super.add(t),r=W.get(this),n=`state${t}`;return r.isConnected?B(r,n):setTimeout((()=>{B(r,n)})),e}clear(){for(let[t]of this.entries())this.delete(t);super.clear()}delete(t){const e=super.delete(t),r=W.get(this);return r.isConnected?(r.toggleAttribute(`state${t}`,!1),r.part&&r.part.remove(`state${t}`)):setTimeout((()=>{r.toggleAttribute(`state${t}`,!1),r.part&&r.part.remove(`state${t}`)})),e}}function $(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}var H;class U{constructor(t){H.set(this,void 0),function(t,e,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(t,r):o?o.value=r:e.set(t,r)}(this,H,t,"f");for(let e=0;e<t.length;e++){let r=t[e];this[e]=r,r.hasAttribute("name")&&(this[r.getAttribute("name")]=r)}Object.freeze(this)}get length(){return $(this,H,"f").length}[(H=new WeakMap,Symbol.iterator)](){return $(this,H,"f")[Symbol.iterator]()}item(t){return null==this[t]?null:this[t]}namedItem(t){return null==this[t]?null:this[t]}}class z{static get isPolyfilled(){return!0}constructor(t){if(!t||!t.tagName||-1===t.tagName.indexOf("-"))throw new TypeError("Illegal constructor");const i=t.getRootNode(),a=new V;this.states=new q(t),e.set(this,t),r.set(this,a),o.set(t,this),((t,e)=>{for(let r in m){e[r]=null;let n=null;const o=m[r];Object.defineProperty(e,r,{get:()=>n,set(r){n=r,t.isConnected?t.setAttribute(o,r):l.set(t,e)}})}})(t,this),((t,e)=>{var r;n.set(e,[]),null===(r=w.observe)||void 0===r||r.call(w,t,g)})(t,this),Object.seal(this),i instanceof DocumentFragment&&(t=>{var e,r;const n=new MutationObserver(E);(null===(e=null===window||void 0===window?void 0:window.ShadyDOM)||void 0===e?void 0:e.inUse)&&t.mode&&t.host&&(t=t.host),null===(r=n.observe)||void 0===r||r.call(n,t,{childList:!0}),p.set(t,n)})(i)}checkValidity(){const t=e.get(this);if(C(t,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const n=r.get(this);if(!n.valid){const e=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});t.dispatchEvent(e)}return n.valid}get form(){const t=e.get(this);let r;return C(t,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element."),!0===t.constructor.formAssociated&&(r=_(t)),r}get labels(){const t=e.get(this);C(t,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const r=t.getAttribute("id"),n=t.getRootNode();return n&&r?n.querySelectorAll(`[for="${r}"]`):[]}reportValidity(){const t=e.get(this);if(C(t,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const r=this.checkValidity(),n=d.get(this);if(n&&!t.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!r&&n&&(t.focus(),n.focus()),r}setFormValue(t){const r=e.get(this);if(C(r,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),j(this),null==t||t instanceof FormData)null!=t&&t instanceof FormData&&Array.from(t).reverse().forEach((([t,e])=>{if("string"==typeof e){const n=x(r,this);n.name=t,n.value=e}}));else if(r.getAttribute("name")){x(r,this).value=t}c.set(r,t)}setValidity(t,n,o){const a=e.get(this);if(C(a,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!t)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");d.set(this,o);const u=r.get(this),s={};for(const e in t)s[e]=t[e];var c;0===Object.keys(s).length&&((c=u).badInput=!1,c.customError=!1,c.patternMismatch=!1,c.rangeOverflow=!1,c.rangeUnderflow=!1,c.stepMismatch=!1,c.tooLong=!1,c.tooShort=!1,c.typeMismatch=!1,c.valid=!0,c.valueMissing=!1);const l=Object.assign(Object.assign({},u),s);delete l.valid;const{valid:f}=((t,e,r)=>(t.valid=D(e),Object.keys(e).forEach((r=>t[r]=e[r])),r&&k(r),t))(u,l,this.form);if(!f&&!n)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");i.set(this,f?"":n),a.isConnected?(a.toggleAttribute("internals-invalid",!f),a.toggleAttribute("internals-valid",f),a.setAttribute("aria-invalid",`${!f}`)):y.set(a,this)}get shadowRoot(){const t=e.get(this),r=f.get(t);return r||null}get validationMessage(){const t=e.get(this);return C(t,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),i.get(this)}get validity(){const t=e.get(this);C(t,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element.");return r.get(this)}get willValidate(){const t=e.get(this);return C(t,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(t.disabled||t.hasAttribute("disabled")||t.hasAttribute("readonly"))}}let K=!1,Y=!1;function X(t){Y||(Y=!0,window.CustomStateSet=q,t&&(HTMLElement.prototype.attachInternals=function(...e){const r=t.call(this,e);return r.states=new q(this),r}))}function J(t=!0){if(!K){if(K=!0,"undefined"!=typeof window&&(window.ElementInternals=z),"undefined"!=typeof CustomElementRegistry){const e=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(t,r,n){if(r.formAssociated){const t=r.prototype.connectedCallback;r.prototype.connectedCallback=function(){h.has(this)||(h.set(this,!0),this.hasAttribute("disabled")&&O(this,!0)),null!=t&&t.apply(this),F(this)}}e.call(this,t,r,n)}}if("undefined"!=typeof HTMLElement&&(HTMLElement.prototype.attachInternals=function(){if(!this.tagName)return{};if(-1===this.tagName.indexOf("-"))throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.");if(o.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new z(this)}),"undefined"!=typeof Element){function r(...t){const e=n.apply(this,t);if(f.set(this,e),R()){const t=new MutationObserver(S);window.ShadyDOM?t.observe(this,A):t.observe(e,A),u.set(this,t)}return e}const n=Element.prototype.attachShadow;Element.prototype.attachShadow=r}if(R()&&"undefined"!=typeof document){new MutationObserver(S).observe(document.documentElement,A)}"undefined"!=typeof HTMLFormElement&&function(){const t=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=function(...e){let r=t.apply(this,e);return L(this,r,"checkValidity")};const e=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=function(...t){let r=e.apply(this,t);return L(this,r,"reportValidity")};const{get:r}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...t){const e=r.call(this,...t),n=Array.from(s.get(this)||[]);if(0===n.length)return e;const o=Array.from(e).concat(n).sort(((t,e)=>t.compareDocumentPosition?2&t.compareDocumentPosition(e)?1:-1:0));return new U(o)}})}(),(t||"undefined"!=typeof window&&!window.CustomStateSet)&&X()}}!!customElements.polyfillWrapFlushCallback||(!function(){if("undefined"==typeof window||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class t extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const e=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(e,t);const r=new t;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every((t=>t in r.internals))}()?J(!1):"undefined"==typeof window||window.CustomStateSet||X(HTMLElement.prototype.attachInternals)),t.forceCustomStateSetPolyfill=X,t.forceElementInternalsPolyfill=J,Object.defineProperty(t,"__esModule",{value:!0})}({})},523:(t,e,r)=>{"use strict";r.r(e),r.d(e,{VERSION:()=>o,after:()=>Ce,all:()=>tr,allKeys:()=>mt,any:()=>er,assign:()=>Ct,before:()=>Le,bind:()=>Ee,bindAll:()=>je,chain:()=>be,chunk:()=>Rr,clone:()=>Vt,collect:()=>Ye,compact:()=>xr,compose:()=>_e,constant:()=>Z,contains:()=>rr,countBy:()=>hr,create:()=>Rt,debounce:()=>Pe,default:()=>qr,defaults:()=>Lt,defer:()=>ke,delay:()=>Me,detect:()=>Ue,difference:()=>kr,drop:()=>Or,each:()=>Ke,escape:()=>ae,every:()=>tr,extend:()=>_t,extendOwn:()=>Ct,filter:()=>Ze,find:()=>Ue,findIndex:()=>De,findKey:()=>Re,findLastIndex:()=>We,findWhere:()=>ze,first:()=>Ar,flatten:()=>Mr,foldl:()=>Je,foldr:()=>Qe,forEach:()=>Ke,functions:()=>Tt,get:()=>$t,groupBy:()=>dr,has:()=>Ht,head:()=>Ar,identity:()=>Ut,include:()=>rr,includes:()=>rr,indexBy:()=>pr,indexOf:()=>$e,initial:()=>Er,inject:()=>Je,intersection:()=>Ir,invert:()=>Pt,invoke:()=>nr,isArguments:()=>X,isArray:()=>z,isArrayBuffer:()=>R,isBoolean:()=>k,isDataView:()=>U,isDate:()=>_,isElement:()=>N,isEmpty:()=>st,isEqual:()=>yt,isError:()=>L,isFinite:()=>J,isFunction:()=>W,isMap:()=>Ot,isMatch:()=>ct,isNaN:()=>Q,isNull:()=>x,isNumber:()=>I,isObject:()=>j,isRegExp:()=>C,isSet:()=>xt,isString:()=>T,isSymbol:()=>F,isTypedArray:()=>ot,isUndefined:()=>M,isWeakMap:()=>jt,isWeakSet:()=>Mt,iteratee:()=>Jt,keys:()=>ut,last:()=>jr,lastIndexOf:()=>He,map:()=>Ye,mapObject:()=>Zt,matcher:()=>zt,matches:()=>zt,max:()=>ar,memoize:()=>xe,methods:()=>Tt,min:()=>ur,mixin:()=>Dr,negate:()=>Ie,noop:()=>Gt,now:()=>ne,object:()=>Lr,omit:()=>Sr,once:()=>Fe,pairs:()=>Nt,partial:()=>Se,partition:()=>yr,pick:()=>wr,pluck:()=>or,property:()=>Kt,propertyOf:()=>te,random:()=>re,range:()=>Fr,reduce:()=>Je,reduceRight:()=>Qe,reject:()=>Ge,rest:()=>Or,restArguments:()=>O,result:()=>ye,sample:()=>sr,select:()=>Ze,shuffle:()=>cr,size:()=>br,some:()=>er,sortBy:()=>lr,sortedIndex:()=>Be,tail:()=>Or,take:()=>Ar,tap:()=>Dt,template:()=>he,templateSettings:()=>se,throttle:()=>Ne,times:()=>ee,toArray:()=>vr,toPath:()=>Wt,transpose:()=>_r,unescape:()=>ue,union:()=>Tr,uniq:()=>Pr,unique:()=>Pr,uniqueId:()=>ve,unzip:()=>_r,values:()=>kt,where:()=>ir,without:()=>Nr,wrap:()=>Te,zip:()=>Cr});var n={};r.r(n),r.d(n,{VERSION:()=>o,after:()=>Ce,all:()=>tr,allKeys:()=>mt,any:()=>er,assign:()=>Ct,before:()=>Le,bind:()=>Ee,bindAll:()=>je,chain:()=>be,chunk:()=>Rr,clone:()=>Vt,collect:()=>Ye,compact:()=>xr,compose:()=>_e,constant:()=>Z,contains:()=>rr,countBy:()=>hr,create:()=>Rt,debounce:()=>Pe,default:()=>Wr,defaults:()=>Lt,defer:()=>ke,delay:()=>Me,detect:()=>Ue,difference:()=>kr,drop:()=>Or,each:()=>Ke,escape:()=>ae,every:()=>tr,extend:()=>_t,extendOwn:()=>Ct,filter:()=>Ze,find:()=>Ue,findIndex:()=>De,findKey:()=>Re,findLastIndex:()=>We,findWhere:()=>ze,first:()=>Ar,flatten:()=>Mr,foldl:()=>Je,foldr:()=>Qe,forEach:()=>Ke,functions:()=>Tt,get:()=>$t,groupBy:()=>dr,has:()=>Ht,head:()=>Ar,identity:()=>Ut,include:()=>rr,includes:()=>rr,indexBy:()=>pr,indexOf:()=>$e,initial:()=>Er,inject:()=>Je,intersection:()=>Ir,invert:()=>Pt,invoke:()=>nr,isArguments:()=>X,isArray:()=>z,isArrayBuffer:()=>R,isBoolean:()=>k,isDataView:()=>U,isDate:()=>_,isElement:()=>N,isEmpty:()=>st,isEqual:()=>yt,isError:()=>L,isFinite:()=>J,isFunction:()=>W,isMap:()=>Ot,isMatch:()=>ct,isNaN:()=>Q,isNull:()=>x,isNumber:()=>I,isObject:()=>j,isRegExp:()=>C,isSet:()=>xt,isString:()=>T,isSymbol:()=>F,isTypedArray:()=>ot,isUndefined:()=>M,isWeakMap:()=>jt,isWeakSet:()=>Mt,iteratee:()=>Jt,keys:()=>ut,last:()=>jr,lastIndexOf:()=>He,map:()=>Ye,mapObject:()=>Zt,matcher:()=>zt,matches:()=>zt,max:()=>ar,memoize:()=>xe,methods:()=>Tt,min:()=>ur,mixin:()=>Dr,negate:()=>Ie,noop:()=>Gt,now:()=>ne,object:()=>Lr,omit:()=>Sr,once:()=>Fe,pairs:()=>Nt,partial:()=>Se,partition:()=>yr,pick:()=>wr,pluck:()=>or,property:()=>Kt,propertyOf:()=>te,random:()=>re,range:()=>Fr,reduce:()=>Je,reduceRight:()=>Qe,reject:()=>Ge,rest:()=>Or,restArguments:()=>O,result:()=>ye,sample:()=>sr,select:()=>Ze,shuffle:()=>cr,size:()=>br,some:()=>er,sortBy:()=>lr,sortedIndex:()=>Be,tail:()=>Or,take:()=>Ar,tap:()=>Dt,template:()=>he,templateSettings:()=>se,throttle:()=>Ne,times:()=>ee,toArray:()=>vr,toPath:()=>Wt,transpose:()=>_r,unescape:()=>ue,union:()=>Tr,uniq:()=>Pr,unique:()=>Pr,uniqueId:()=>ve,unzip:()=>_r,values:()=>kt,where:()=>ir,without:()=>Nr,wrap:()=>Te,zip:()=>Cr});var o="1.13.1",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},a=Array.prototype,u=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,l=a.slice,f=u.toString,d=u.hasOwnProperty,p="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,y=Array.isArray,m=Object.keys,v=Object.create,b=p&&ArrayBuffer.isView,g=isNaN,w=isFinite,S=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],A=Math.pow(2,53)-1;function O(t,e){return e=null==e?t.length-1:+e,function(){for(var r=Math.max(arguments.length-e,0),n=Array(r),o=0;o<r;o++)n[o]=arguments[o+e];switch(e){case 0:return t.call(this,n);case 1:return t.call(this,arguments[0],n);case 2:return t.call(this,arguments[0],arguments[1],n)}var i=Array(e+1);for(o=0;o<e;o++)i[o]=arguments[o];return i[e]=n,t.apply(this,i)}}function j(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function x(t){return null===t}function M(t){return void 0===t}function k(t){return!0===t||!1===t||"[object Boolean]"===f.call(t)}function N(t){return!(!t||1!==t.nodeType)}function P(t){var e="[object "+t+"]";return function(t){return f.call(t)===e}}const T=P("String"),I=P("Number"),_=P("Date"),C=P("RegExp"),L=P("Error"),F=P("Symbol"),R=P("ArrayBuffer");var V=P("Function"),D=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof D&&(V=function(t){return"function"==typeof t||!1});const W=V,B=P("Object");var q=h&&B(new DataView(new ArrayBuffer(8))),$="undefined"!=typeof Map&&B(new Map),H=P("DataView");const U=q?function(t){return null!=t&&W(t.getInt8)&&R(t.buffer)}:H,z=y||P("Array");function K(t,e){return null!=t&&d.call(t,e)}var Y=P("Arguments");!function(){Y(arguments)||(Y=function(t){return K(t,"callee")})}();const X=Y;function J(t){return!F(t)&&w(t)&&!isNaN(parseFloat(t))}function Q(t){return I(t)&&g(t)}function Z(t){return function(){return t}}function G(t){return function(e){var r=t(e);return"number"==typeof r&&r>=0&&r<=A}}function tt(t){return function(e){return null==e?void 0:e[t]}}const et=tt("byteLength"),rt=G(et);var nt=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const ot=p?function(t){return b?b(t)&&!U(t):rt(t)&&nt.test(f.call(t))}:Z(!1),it=tt("length");function at(t,e){e=function(t){for(var e={},r=t.length,n=0;n<r;++n)e[t[n]]=!0;return{contains:function(t){return e[t]},push:function(r){return e[r]=!0,t.push(r)}}}(e);var r=E.length,n=t.constructor,o=W(n)&&n.prototype||u,i="constructor";for(K(t,i)&&!e.contains(i)&&e.push(i);r--;)(i=E[r])in t&&t[i]!==o[i]&&!e.contains(i)&&e.push(i)}function ut(t){if(!j(t))return[];if(m)return m(t);var e=[];for(var r in t)K(t,r)&&e.push(r);return S&&at(t,e),e}function st(t){if(null==t)return!0;var e=it(t);return"number"==typeof e&&(z(t)||T(t)||X(t))?0===e:0===it(ut(t))}function ct(t,e){var r=ut(e),n=r.length;if(null==t)return!n;for(var o=Object(t),i=0;i<n;i++){var a=r[i];if(e[a]!==o[a]||!(a in o))return!1}return!0}function lt(t){return t instanceof lt?t:this instanceof lt?void(this._wrapped=t):new lt(t)}function ft(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,et(t))}lt.VERSION=o,lt.prototype.value=function(){return this._wrapped},lt.prototype.valueOf=lt.prototype.toJSON=lt.prototype.value,lt.prototype.toString=function(){return String(this._wrapped)};var dt="[object DataView]";function pt(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var o=typeof t;return("function"===o||"object"===o||"object"==typeof e)&&ht(t,e,r,n)}function ht(t,e,r,n){t instanceof lt&&(t=t._wrapped),e instanceof lt&&(e=e._wrapped);var o=f.call(t);if(o!==f.call(e))return!1;if(q&&"[object Object]"==o&&U(t)){if(!U(e))return!1;o=dt}switch(o){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return s.valueOf.call(t)===s.valueOf.call(e);case"[object ArrayBuffer]":case dt:return ht(ft(t),ft(e),r,n)}var i="[object Array]"===o;if(!i&&ot(t)){if(et(t)!==et(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;i=!0}if(!i){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,u=e.constructor;if(a!==u&&!(W(a)&&a instanceof a&&W(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var c=(r=r||[]).length;c--;)if(r[c]===t)return n[c]===e;if(r.push(t),n.push(e),i){if((c=t.length)!==e.length)return!1;for(;c--;)if(!pt(t[c],e[c],r,n))return!1}else{var l,d=ut(t);if(c=d.length,ut(e).length!==c)return!1;for(;c--;)if(!K(e,l=d[c])||!pt(t[l],e[l],r,n))return!1}return r.pop(),n.pop(),!0}function yt(t,e){return pt(t,e)}function mt(t){if(!j(t))return[];var e=[];for(var r in t)e.push(r);return S&&at(t,e),e}function vt(t){var e=it(t);return function(r){if(null==r)return!1;var n=mt(r);if(it(n))return!1;for(var o=0;o<e;o++)if(!W(r[t[o]]))return!1;return t!==Et||!W(r[bt])}}var bt="forEach",gt=["clear","delete"],wt=["get","has","set"],St=gt.concat(bt,wt),Et=gt.concat(wt),At=["add"].concat(gt,bt,"has");const Ot=$?vt(St):P("Map"),jt=$?vt(Et):P("WeakMap"),xt=$?vt(At):P("Set"),Mt=P("WeakSet");function kt(t){for(var e=ut(t),r=e.length,n=Array(r),o=0;o<r;o++)n[o]=t[e[o]];return n}function Nt(t){for(var e=ut(t),r=e.length,n=Array(r),o=0;o<r;o++)n[o]=[e[o],t[e[o]]];return n}function Pt(t){for(var e={},r=ut(t),n=0,o=r.length;n<o;n++)e[t[r[n]]]=r[n];return e}function Tt(t){var e=[];for(var r in t)W(t[r])&&e.push(r);return e.sort()}function It(t,e){return function(r){var n=arguments.length;if(e&&(r=Object(r)),n<2||null==r)return r;for(var o=1;o<n;o++)for(var i=arguments[o],a=t(i),u=a.length,s=0;s<u;s++){var c=a[s];e&&void 0!==r[c]||(r[c]=i[c])}return r}}const _t=It(mt),Ct=It(ut),Lt=It(mt,!0);function Ft(t){if(!j(t))return{};if(v)return v(t);var e=function(){};e.prototype=t;var r=new e;return e.prototype=null,r}function Rt(t,e){var r=Ft(t);return e&&Ct(r,e),r}function Vt(t){return j(t)?z(t)?t.slice():_t({},t):t}function Dt(t,e){return e(t),t}function Wt(t){return z(t)?t:[t]}function Bt(t){return lt.toPath(t)}function qt(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0}function $t(t,e,r){var n=qt(t,Bt(e));return M(n)?r:n}function Ht(t,e){for(var r=(e=Bt(e)).length,n=0;n<r;n++){var o=e[n];if(!K(t,o))return!1;t=t[o]}return!!r}function Ut(t){return t}function zt(t){return t=Ct({},t),function(e){return ct(e,t)}}function Kt(t){return t=Bt(t),function(e){return qt(e,t)}}function Yt(t,e,r){if(void 0===e)return t;switch(null==r?3:r){case 1:return function(r){return t.call(e,r)};case 3:return function(r,n,o){return t.call(e,r,n,o)};case 4:return function(r,n,o,i){return t.call(e,r,n,o,i)}}return function(){return t.apply(e,arguments)}}function Xt(t,e,r){return null==t?Ut:W(t)?Yt(t,e,r):j(t)&&!z(t)?zt(t):Kt(t)}function Jt(t,e){return Xt(t,e,1/0)}function Qt(t,e,r){return lt.iteratee!==Jt?lt.iteratee(t,e):Xt(t,e,r)}function Zt(t,e,r){e=Qt(e,r);for(var n=ut(t),o=n.length,i={},a=0;a<o;a++){var u=n[a];i[u]=e(t[u],u,t)}return i}function Gt(){}function te(t){return null==t?Gt:function(e){return $t(t,e)}}function ee(t,e,r){var n=Array(Math.max(0,t));e=Yt(e,r,1);for(var o=0;o<t;o++)n[o]=e(o);return n}function re(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}lt.toPath=Wt,lt.iteratee=Jt;const ne=Date.now||function(){return(new Date).getTime()};function oe(t){var e=function(e){return t[e]},r="(?:"+ut(t).join("|")+")",n=RegExp(r),o=RegExp(r,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(o,e):t}}const ie={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},ae=oe(ie),ue=oe(Pt(ie)),se=lt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ce=/(.)^/,le={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},fe=/\\|'|\r|\n|\u2028|\u2029/g;function de(t){return"\\"+le[t]}var pe=/^\s*(\w|\$)+\s*$/;function he(t,e,r){!e&&r&&(e=r),e=Lt({},e,lt.templateSettings);var n=RegExp([(e.escape||ce).source,(e.interpolate||ce).source,(e.evaluate||ce).source].join("|")+"|$","g"),o=0,i="__p+='";t.replace(n,(function(e,r,n,a,u){return i+=t.slice(o,u).replace(fe,de),o=u+e.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":n?i+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),e})),i+="';\n";var a,u=e.variable;if(u){if(!pe.test(u))throw new Error("variable is not a bare identifier: "+u)}else i="with(obj||{}){\n"+i+"}\n",u="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{a=new Function(u,"_",i)}catch(t){throw t.source=i,t}var s=function(t){return a.call(this,t,lt)};return s.source="function("+u+"){\n"+i+"}",s}function ye(t,e,r){var n=(e=Bt(e)).length;if(!n)return W(r)?r.call(t):r;for(var o=0;o<n;o++){var i=null==t?void 0:t[e[o]];void 0===i&&(i=r,o=n),t=W(i)?i.call(t):i}return t}var me=0;function ve(t){var e=++me+"";return t?t+e:e}function be(t){var e=lt(t);return e._chain=!0,e}function ge(t,e,r,n,o){if(!(n instanceof e))return t.apply(r,o);var i=Ft(t.prototype),a=t.apply(i,o);return j(a)?a:i}var we=O((function(t,e){var r=we.placeholder,n=function(){for(var o=0,i=e.length,a=Array(i),u=0;u<i;u++)a[u]=e[u]===r?arguments[o++]:e[u];for(;o<arguments.length;)a.push(arguments[o++]);return ge(t,n,this,this,a)};return n}));we.placeholder=lt;const Se=we,Ee=O((function(t,e,r){if(!W(t))throw new TypeError("Bind must be called on a function");var n=O((function(o){return ge(t,n,e,this,r.concat(o))}));return n})),Ae=G(it);function Oe(t,e,r,n){if(n=n||[],e||0===e){if(e<=0)return n.concat(t)}else e=1/0;for(var o=n.length,i=0,a=it(t);i<a;i++){var u=t[i];if(Ae(u)&&(z(u)||X(u)))if(e>1)Oe(u,e-1,r,n),o=n.length;else for(var s=0,c=u.length;s<c;)n[o++]=u[s++];else r||(n[o++]=u)}return n}const je=O((function(t,e){var r=(e=Oe(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=Ee(t[n],t)}return t}));function xe(t,e){var r=function(n){var o=r.cache,i=""+(e?e.apply(this,arguments):n);return K(o,i)||(o[i]=t.apply(this,arguments)),o[i]};return r.cache={},r}const Me=O((function(t,e,r){return setTimeout((function(){return t.apply(null,r)}),e)})),ke=Se(Me,lt,1);function Ne(t,e,r){var n,o,i,a,u=0;r||(r={});var s=function(){u=!1===r.leading?0:ne(),n=null,a=t.apply(o,i),n||(o=i=null)},c=function(){var c=ne();u||!1!==r.leading||(u=c);var l=e-(c-u);return o=this,i=arguments,l<=0||l>e?(n&&(clearTimeout(n),n=null),u=c,a=t.apply(o,i),n||(o=i=null)):n||!1===r.trailing||(n=setTimeout(s,l)),a};return c.cancel=function(){clearTimeout(n),u=0,n=o=i=null},c}function Pe(t,e,r){var n,o,i,a,u,s=function(){var c=ne()-o;e>c?n=setTimeout(s,e-c):(n=null,r||(a=t.apply(u,i)),n||(i=u=null))},c=O((function(c){return u=this,i=c,o=ne(),n||(n=setTimeout(s,e),r&&(a=t.apply(u,i))),a}));return c.cancel=function(){clearTimeout(n),n=i=u=null},c}function Te(t,e){return Se(e,t)}function Ie(t){return function(){return!t.apply(this,arguments)}}function _e(){var t=arguments,e=t.length-1;return function(){for(var r=e,n=t[e].apply(this,arguments);r--;)n=t[r].call(this,n);return n}}function Ce(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function Le(t,e){var r;return function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}}const Fe=Se(Le,2);function Re(t,e,r){e=Qt(e,r);for(var n,o=ut(t),i=0,a=o.length;i<a;i++)if(e(t[n=o[i]],n,t))return n}function Ve(t){return function(e,r,n){r=Qt(r,n);for(var o=it(e),i=t>0?0:o-1;i>=0&&i<o;i+=t)if(r(e[i],i,e))return i;return-1}}const De=Ve(1),We=Ve(-1);function Be(t,e,r,n){for(var o=(r=Qt(r,n,1))(e),i=0,a=it(t);i<a;){var u=Math.floor((i+a)/2);r(t[u])<o?i=u+1:a=u}return i}function qe(t,e,r){return function(n,o,i){var a=0,u=it(n);if("number"==typeof i)t>0?a=i>=0?i:Math.max(i+u,a):u=i>=0?Math.min(i+1,u):i+u+1;else if(r&&i&&u)return n[i=r(n,o)]===o?i:-1;if(o!=o)return(i=e(l.call(n,a,u),Q))>=0?i+a:-1;for(i=t>0?a:u-1;i>=0&&i<u;i+=t)if(n[i]===o)return i;return-1}}const $e=qe(1,De,Be),He=qe(-1,We);function Ue(t,e,r){var n=(Ae(t)?De:Re)(t,e,r);if(void 0!==n&&-1!==n)return t[n]}function ze(t,e){return Ue(t,zt(e))}function Ke(t,e,r){var n,o;if(e=Yt(e,r),Ae(t))for(n=0,o=t.length;n<o;n++)e(t[n],n,t);else{var i=ut(t);for(n=0,o=i.length;n<o;n++)e(t[i[n]],i[n],t)}return t}function Ye(t,e,r){e=Qt(e,r);for(var n=!Ae(t)&&ut(t),o=(n||t).length,i=Array(o),a=0;a<o;a++){var u=n?n[a]:a;i[a]=e(t[u],u,t)}return i}function Xe(t){return function(e,r,n,o){var i=arguments.length>=3;return function(e,r,n,o){var i=!Ae(e)&&ut(e),a=(i||e).length,u=t>0?0:a-1;for(o||(n=e[i?i[u]:u],u+=t);u>=0&&u<a;u+=t){var s=i?i[u]:u;n=r(n,e[s],s,e)}return n}(e,Yt(r,o,4),n,i)}}const Je=Xe(1),Qe=Xe(-1);function Ze(t,e,r){var n=[];return e=Qt(e,r),Ke(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}function Ge(t,e,r){return Ze(t,Ie(Qt(e)),r)}function tr(t,e,r){e=Qt(e,r);for(var n=!Ae(t)&&ut(t),o=(n||t).length,i=0;i<o;i++){var a=n?n[i]:i;if(!e(t[a],a,t))return!1}return!0}function er(t,e,r){e=Qt(e,r);for(var n=!Ae(t)&&ut(t),o=(n||t).length,i=0;i<o;i++){var a=n?n[i]:i;if(e(t[a],a,t))return!0}return!1}function rr(t,e,r,n){return Ae(t)||(t=kt(t)),("number"!=typeof r||n)&&(r=0),$e(t,e,r)>=0}const nr=O((function(t,e,r){var n,o;return W(e)?o=e:(e=Bt(e),n=e.slice(0,-1),e=e[e.length-1]),Ye(t,(function(t){var i=o;if(!i){if(n&&n.length&&(t=qt(t,n)),null==t)return;i=t[e]}return null==i?i:i.apply(t,r)}))}));function or(t,e){return Ye(t,Kt(e))}function ir(t,e){return Ze(t,zt(e))}function ar(t,e,r){var n,o,i=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var u=0,s=(t=Ae(t)?t:kt(t)).length;u<s;u++)null!=(n=t[u])&&n>i&&(i=n);else e=Qt(e,r),Ke(t,(function(t,r,n){((o=e(t,r,n))>a||o===-1/0&&i===-1/0)&&(i=t,a=o)}));return i}function ur(t,e,r){var n,o,i=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var u=0,s=(t=Ae(t)?t:kt(t)).length;u<s;u++)null!=(n=t[u])&&n<i&&(i=n);else e=Qt(e,r),Ke(t,(function(t,r,n){((o=e(t,r,n))<a||o===1/0&&i===1/0)&&(i=t,a=o)}));return i}function sr(t,e,r){if(null==e||r)return Ae(t)||(t=kt(t)),t[re(t.length-1)];var n=Ae(t)?Vt(t):kt(t),o=it(n);e=Math.max(Math.min(e,o),0);for(var i=o-1,a=0;a<e;a++){var u=re(a,i),s=n[a];n[a]=n[u],n[u]=s}return n.slice(0,e)}function cr(t){return sr(t,1/0)}function lr(t,e,r){var n=0;return e=Qt(e,r),or(Ye(t,(function(t,r,o){return{value:t,index:n++,criteria:e(t,r,o)}})).sort((function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(r>n||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index})),"value")}function fr(t,e){return function(r,n,o){var i=e?[[],[]]:{};return n=Qt(n,o),Ke(r,(function(e,o){var a=n(e,o,r);t(i,e,a)})),i}}const dr=fr((function(t,e,r){K(t,r)?t[r].push(e):t[r]=[e]})),pr=fr((function(t,e,r){t[r]=e})),hr=fr((function(t,e,r){K(t,r)?t[r]++:t[r]=1})),yr=fr((function(t,e,r){t[r?0:1].push(e)}),!0);var mr=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function vr(t){return t?z(t)?l.call(t):T(t)?t.match(mr):Ae(t)?Ye(t,Ut):kt(t):[]}function br(t){return null==t?0:Ae(t)?t.length:ut(t).length}function gr(t,e,r){return e in r}const wr=O((function(t,e){var r={},n=e[0];if(null==t)return r;W(n)?(e.length>1&&(n=Yt(n,e[1])),e=mt(t)):(n=gr,e=Oe(e,!1,!1),t=Object(t));for(var o=0,i=e.length;o<i;o++){var a=e[o],u=t[a];n(u,a,t)&&(r[a]=u)}return r})),Sr=O((function(t,e){var r,n=e[0];return W(n)?(n=Ie(n),e.length>1&&(r=e[1])):(e=Ye(Oe(e,!1,!1),String),n=function(t,r){return!rr(e,r)}),wr(t,n,r)}));function Er(t,e,r){return l.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))}function Ar(t,e,r){return null==t||t.length<1?null==e||r?void 0:[]:null==e||r?t[0]:Er(t,t.length-e)}function Or(t,e,r){return l.call(t,null==e||r?1:e)}function jr(t,e,r){return null==t||t.length<1?null==e||r?void 0:[]:null==e||r?t[t.length-1]:Or(t,Math.max(0,t.length-e))}function xr(t){return Ze(t,Boolean)}function Mr(t,e){return Oe(t,e,!1)}const kr=O((function(t,e){return e=Oe(e,!0,!0),Ze(t,(function(t){return!rr(e,t)}))})),Nr=O((function(t,e){return kr(t,e)}));function Pr(t,e,r,n){k(e)||(n=r,r=e,e=!1),null!=r&&(r=Qt(r,n));for(var o=[],i=[],a=0,u=it(t);a<u;a++){var s=t[a],c=r?r(s,a,t):s;e&&!r?(a&&i===c||o.push(s),i=c):r?rr(i,c)||(i.push(c),o.push(s)):rr(o,s)||o.push(s)}return o}const Tr=O((function(t){return Pr(Oe(t,!0,!0))}));function Ir(t){for(var e=[],r=arguments.length,n=0,o=it(t);n<o;n++){var i=t[n];if(!rr(e,i)){var a;for(a=1;a<r&&rr(arguments[a],i);a++);a===r&&e.push(i)}}return e}function _r(t){for(var e=t&&ar(t,it).length||0,r=Array(e),n=0;n<e;n++)r[n]=or(t,n);return r}const Cr=O(_r);function Lr(t,e){for(var r={},n=0,o=it(t);n<o;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r}function Fr(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),o=Array(n),i=0;i<n;i++,t+=r)o[i]=t;return o}function Rr(t,e){if(null==e||e<1)return[];for(var r=[],n=0,o=t.length;n<o;)r.push(l.call(t,n,n+=e));return r}function Vr(t,e){return t._chain?lt(e).chain():e}function Dr(t){return Ke(Tt(t),(function(e){var r=lt[e]=t[e];lt.prototype[e]=function(){var t=[this._wrapped];return c.apply(t,arguments),Vr(this,r.apply(lt,t))}})),lt}Ke(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=a[t];lt.prototype[t]=function(){var r=this._wrapped;return null!=r&&(e.apply(r,arguments),"shift"!==t&&"splice"!==t||0!==r.length||delete r[0]),Vr(this,r)}})),Ke(["concat","join","slice"],(function(t){var e=a[t];lt.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),Vr(this,t)}}));const Wr=lt;var Br=Dr(n);Br._=Br;const qr=Br}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(484),r(523),r(650);r(318)})();
|