jekyll-theme-hydejack 9.1.1 → 9.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/body/breadcrumbs.html +10 -10
- data/_includes/body/footer.html +1 -1
- data/_includes/body/nav.html +1 -1
- data/_includes/body/scripts.html +2 -2
- data/_includes/components/dingbat.html +2 -8
- data/_includes/components/post.html +2 -2
- data/_includes/head/index.html +1 -1
- data/_includes/head/links-static.html +5 -2
- data/_includes/head/meta-static.html +1 -5
- data/_includes/head/meta.html +5 -1
- data/_includes/head/styles-inline.html +4 -2
- data/_includes/head/styles-no-inline.html +4 -2
- data/_includes/header.txt +1 -1
- data/_layouts/base.html +0 -5
- data/_layouts/compress.html +1 -1
- data/_layouts/list.html +1 -1
- data/_layouts/plain.html +1 -1
- data/_layouts/post.html +5 -0
- data/_sass/_tippy.scss +2 -1
- data/assets/css/{hydejack-9.1.1.css → hydejack-9.1.5.css} +0 -0
- data/assets/js/LEGACY-clap-button-hydejack-9.1.5.js +14 -0
- data/assets/js/LEGACY-drawer-hydejack-9.1.5.js +14 -0
- data/assets/js/{LEGACY-shadydom-hydejack-9.1.1.js → LEGACY-fetch-hydejack-9.1.5.js} +2 -2
- data/assets/js/LEGACY-hydejack-9.1.5.js +27 -0
- data/assets/js/LEGACY-navbar-hydejack-9.1.5.js +14 -0
- data/assets/js/LEGACY-push-state-hydejack-9.1.5.js +14 -0
- data/assets/js/LEGACY-resize-observer-hydejack-9.1.5.js +14 -0
- data/assets/js/{shadydom-hydejack-9.1.1.js → LEGACY-shadydom-hydejack-9.1.5.js} +2 -2
- data/assets/js/LEGACY-vendors~clap-button-hydejack-9.1.5.js +14 -0
- data/assets/js/LEGACY-vendors~drawer-hydejack-9.1.5.js +48 -0
- data/assets/js/LEGACY-vendors~drawer~push-state-hydejack-9.1.5.js +214 -0
- data/assets/js/LEGACY-vendors~fetch-hydejack-9.1.5.js +14 -0
- data/assets/js/{LEGACY-vendors~intersection-observer-hydejack-9.1.1.js → LEGACY-vendors~intersection-observer-hydejack-9.1.5.js} +2 -2
- data/assets/js/LEGACY-vendors~push-state-hydejack-9.1.5.js +34 -0
- data/assets/js/LEGACY-vendors~shadydom-hydejack-9.1.5.js +155 -0
- data/assets/js/{LEGACY-vendors~webanimations-hydejack-9.1.1.js → LEGACY-vendors~webanimations-hydejack-9.1.5.js} +2 -2
- data/assets/js/LEGACY-vendors~webcomponents-hydejack-9.1.5.js +34 -0
- data/assets/js/{LEGACY-webcomponents-hydejack-9.1.1.js → LEGACY-webcomponents-hydejack-9.1.5.js} +2 -2
- data/assets/js/clap-button-hydejack-9.1.5.js +14 -0
- data/assets/js/drawer-hydejack-9.1.5.js +14 -0
- data/assets/js/{fetch-hydejack-9.1.1.js → fetch-hydejack-9.1.5.js} +2 -2
- data/assets/js/hydejack-9.1.5.js +28 -0
- data/assets/js/navbar-hydejack-9.1.5.js +14 -0
- data/assets/js/push-state-hydejack-9.1.5.js +14 -0
- data/assets/js/resize-observer-hydejack-9.1.5.js +14 -0
- data/assets/js/{LEGACY-fetch-hydejack-9.1.1.js → shadydom-hydejack-9.1.5.js} +2 -2
- data/assets/js/vendors~clap-button-hydejack-9.1.5.js +14 -0
- data/assets/js/vendors~drawer-hydejack-9.1.5.js +48 -0
- data/assets/js/{vendors~drawer~push-state-hydejack-9.1.1.js → vendors~drawer~push-state-hydejack-9.1.5.js} +12 -12
- data/assets/js/vendors~fetch-hydejack-9.1.5.js +14 -0
- data/assets/js/{vendors~intersection-observer-hydejack-9.1.1.js → vendors~intersection-observer-hydejack-9.1.5.js} +2 -2
- data/assets/js/vendors~push-state-hydejack-9.1.5.js +34 -0
- data/assets/js/vendors~shadydom-hydejack-9.1.5.js +146 -0
- data/assets/js/{vendors~webanimations-hydejack-9.1.1.js → vendors~webanimations-hydejack-9.1.5.js} +2 -2
- data/assets/js/{webcomponents-hydejack-9.1.1.js → webcomponents-hydejack-9.1.5.js} +2 -2
- data/assets/version.json +2 -2
- metadata +44 -48
- data/assets/js/LEGACY-clap-button-hydejack-9.1.1.js +0 -14
- data/assets/js/LEGACY-drawer-hydejack-9.1.1.js +0 -14
- data/assets/js/LEGACY-hydejack-9.1.0.js +0 -28796
- data/assets/js/LEGACY-hydejack-9.1.0.js.map +0 -1
- data/assets/js/LEGACY-hydejack-9.1.1.js +0 -27
- data/assets/js/LEGACY-navbar-hydejack-9.1.1.js +0 -14
- data/assets/js/LEGACY-push-state-hydejack-9.1.1.js +0 -14
- data/assets/js/LEGACY-resize-observer-hydejack-9.1.1.js +0 -14
- data/assets/js/LEGACY-vendors~clap-button-hydejack-9.1.1.js +0 -182
- data/assets/js/LEGACY-vendors~drawer-hydejack-9.1.1.js +0 -48
- data/assets/js/LEGACY-vendors~drawer~push-state-hydejack-9.1.1.js +0 -214
- data/assets/js/LEGACY-vendors~fetch-hydejack-9.1.1.js +0 -14
- data/assets/js/LEGACY-vendors~push-state-hydejack-9.1.1.js +0 -34
- data/assets/js/LEGACY-vendors~shadydom-hydejack-9.1.1.js +0 -155
- data/assets/js/LEGACY-vendors~webcomponents-hydejack-9.1.1.js +0 -34
- data/assets/js/clap-button-hydejack-9.1.1.js +0 -14
- data/assets/js/drawer-hydejack-9.1.1.js +0 -14
- data/assets/js/hydejack-9.1.0.js +0 -20723
- data/assets/js/hydejack-9.1.0.js.map +0 -1
- data/assets/js/hydejack-9.1.1.js +0 -28
- data/assets/js/navbar-hydejack-9.1.1.js +0 -14
- data/assets/js/push-state-hydejack-9.1.1.js +0 -14
- data/assets/js/resize-observer-hydejack-9.1.1.js +0 -14
- data/assets/js/vendors~clap-button-hydejack-9.1.1.js +0 -222
- data/assets/js/vendors~drawer-hydejack-9.1.1.js +0 -48
- data/assets/js/vendors~fetch-hydejack-9.1.1.js +0 -14
- data/assets/js/vendors~push-state-hydejack-9.1.1.js +0 -34
- data/assets/js/vendors~shadydom-hydejack-9.1.1.js +0 -146
@@ -1,222 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* __ __ __ __
|
3
|
-
* /\ \/\ \ /\ \ __ /\ \
|
4
|
-
* \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
|
5
|
-
* \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
|
6
|
-
* \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
|
7
|
-
* \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
|
8
|
-
* \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
|
9
|
-
* /\___/ \ \____/
|
10
|
-
* \/__/ \/___/
|
11
|
-
*
|
12
|
-
* Powered by Hydejack v9.1.1 <https://hydejack.com/>
|
13
|
-
*/
|
14
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{169:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},186:function(t,e,n){"use strict";n.r(e),function(t,r){function i(){var t=p(['<div style="font-size:smaller">\n ',"\n </div>"]);return i=function(){return t},t}function o(){var t=p(['<span class="error">Error</span>']);return o=function(){return t},t}function s(){var t=p(['<span class="error">Crypto required</span>']);return s=function(){return t},t}function a(){var t=p(['<a class="error" href="','">Payment required</a>']);return a=function(){return t},t}function u(){var t=p(["\n <div \n class=","\n style=",'\n >\n <div class="shockwave"></div>\n <div class=','>\n <div class="count">\n ',"","\n ","\n ","\n ","\n </div>\n </div>\n <div class=",">\n ","\n </div>\n ","\n ","\n ","\n <button\n ?disabled=","\n @mousedown=","\n @touchstart=","\n ></button>\n </div>\n "]);return u=function(){return t},t}function l(){var t=p(["<g style=",">\n <circle style=",' cx="0" cy="0" r="1"/>\n </g>']);return l=function(){return t},t}function c(){var t=p(['\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 -10 20 20">\n <g class="sparkle">\n ',"\n </g>\n </svg>"]);return c=function(){return t},t}function h(){var t=p(['\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" id="countdown-svg">\n <g class="countdown">\n <circle cx="50" cy="50" r="49"/>\n </g>\n </svg>\n ']);return h=function(){return t},t}function f(){var t=p(['\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" id="hand-svg">\n <g class="flat">\n <path d="M57.0443547 6.86206897C57.6058817 6.46227795 57.7389459 5.67962382 57.3416215 5.11431557 56.9442971 4.54900731 56.1672933 4.41483804 55.6055588 4.81504702L52.4950525 7.030721C51.9335255 7.43051202 51.8004613 8.21316614 52.1977857 8.7784744 52.4404567 9.12371996 52.8251182 9.30825496 53.2153846 9.30825496 53.4640757 9.30825496 53.7152578 9.23343783 53.9338485 9.07753396L57.0443547 6.86206897zM48.8035059 6.1414838C48.94778 6.19623824 49.0959982 6.22215256 49.2415177 6.22215256 49.7455426 6.22215256 50.2198824 5.91201672 50.4075424 5.40898642L51.7485642 1.81818182C51.9906124 1.17011494 51.664906.447021944 51.0209664.203343783 50.3772345-.0405433647 49.6587706.287774295 49.4167224.93584117L48.0757006 4.52664577C47.83386 5.17471264 48.1595664 5.89780564 48.8035059 6.1414838zM58.5931726 11.6219436C58.5846615 11.6219436 58.5761504 11.6219436 58.5674317 11.6219436L54.7579749 11.6541275C54.0702341 11.6681296 53.5240687 12.1985371 53.5379772 12.8909091 53.551678 13.5745037 54.1065621 14.1297806 54.7828855 14.1297806 54.7913966 14.1297806 54.7999077 14.1297806 54.8086265 14.1297806L58.6180833 14.0643678C59.305824 14.0501567 59.8519894 13.4934169 59.838081 12.8010449 59.8243801 12.1174504 59.269496 11.6219436 58.5931726 11.6219436z"/>\n <path d="M37.1910045 6.68944619C37.7313574 6.14566353 38.4431784 5.8737722 39.155207 5.8737722 39.967916 5.8737722 40.7808327 6.22800418 41.3380002 6.93667712 42.2214969 8.06039707 42.0666359 9.69111808 41.0600392 10.7042842L39.777765 11.9949843C39.5801407 12.1276907 39.3877061 12.2695925 39.2075193 12.430303 39.0619998 11.5985371 38.7167801 10.7954023 38.1668781 10.0961338 37.4907623 9.23636364 36.588375 8.62424242 35.5772114 8.31410658L37.1910045 6.68944619zM28.5289586 3.66394984C29.0691039 3.12016719 29.7811325 2.84827586 30.4931611 2.84827586 31.3060777 2.84848485 32.1187868 3.20271682 32.6759543 3.91138976 33.559451 5.03510972 33.40459 6.66562173 32.3979933 7.67878788L17.6760235 22.3467085 17.6276554 20.6499478C17.6149925 19.014629 16.8595779 17.554441 15.6854573 16.5945664L28.5289586 3.66394984zM.624996757 36.9889537C.491717597 36.554099.508245877 35.7327064.906400646 35.2666667L3.45579518 32.2829676C3.45662553 32.2819923 4.33763118 25.8376176 6.09881213 12.9498433 6.09881213 11.4271682 7.33624726 10.1814002 8.84873717 10.1814002 10.3612271 10.1814002 11.5988698 11.4271682 11.5988698 12.9498433L11.6704878 15.4649948C9.18191673 15.8089864 7.24428555 17.9170324 7.14921001 20.492581L4.62804751 38.9475444 3.8946373 39.8060606C3.04504924 39.4926018 2.3776139 39.1458968 1.89233128 38.7659456 1.16440735 38.1960189.758275917 37.4238085.624996757 36.9889537z"/>\n <path d="M49.6070811,36.8942529 L42.4182909,44.1316614 C36.2784454,50.3128527 29.8604313,55.2743992 24.2225349,56.5113898 C24.0512744,56.5492163 23.8901857,56.6217346 23.7511014,56.7293626 L20.5013032,59.2417973 C20.2908084,59.4045977 20.1673015,59.6181154 19.5026647,59.6181154 C18.8380279,59.6181154 13.0160695,55.8303982 10.3595306,53.2846814 C7.96626306,50.9912532 3.77432047,43.9549368 4.44453927,43.0079415 L6.99372621,40.0244514 C6.99469496,40.0233368 7.87570061,33.578962 9.63674317,20.6913271 C9.63674317,19.168652 10.8743859,17.922675 12.3868758,17.922675 C13.8993657,17.922675 15.1368008,19.168652 15.1368008,20.6913271 L15.2667512,25.2522466 C15.2883404,26.0100313 15.907577,26.5034483 16.5519317,26.5034483 C16.8662207,26.5034483 17.1867374,26.3857889 17.4464306,26.1245559 L32.0670972,11.4054336 C32.6074501,10.861442 33.3190635,10.5897597 34.0312997,10.5897597 C34.8440088,10.5897597 35.6569254,10.9439916 36.214093,11.6526646 C37.0975897,12.7763845 36.942521,14.4071055 35.9359243,15.4202717 L25.8641449,25.5598746 C25.3412294,26.0865204 25.3412294,26.9398119 25.8641449,27.4660397 C26.1288202,27.7324974 26.4757006,27.8658307 26.822581,27.8658307 C27.1694614,27.8658307 27.5165494,27.7324974 27.7810172,27.4660397 L40.7291431,14.43093 C41.2692884,13.8869383 41.9811094,13.615256 42.6933456,13.615256 C43.5060547,13.615465 44.3189713,13.969697 44.8761389,14.6783699 C45.7596356,15.8018809 45.6045669,17.4326019 44.5979702,18.445768 L31.7106677,31.4198537 C31.1806943,31.953605 31.1806943,32.8183908 31.7106677,33.3521421 C31.9718141,33.615047 32.31392,33.7464995 32.656441,33.7464995 C32.9985469,33.7464995 33.3408603,33.615047 33.6020067,33.3521421 L43.7346096,23.1515152 C44.2749625,22.6075235 44.9867835,22.3358412 45.6988121,22.3358412 C46.5115212,22.3358412 47.3244378,22.6900731 47.8816054,23.3989551 C48.7651021,24.522466 48.6100334,26.153187 47.6034367,27.1663532 L37.5667397,37.2708464 C37.0245185,37.8165099 37.0245185,38.7017764 37.5667397,39.2474399 C37.8334909,39.5161964 38.161896,39.6422153 38.4900934,39.6422153 C38.8184984,39.6422153 39.1469035,39.5161964 39.3972552,39.2639498 L45.6195133,32.999791 C46.1802099,32.4353187 46.93085,32.1368861 47.678999,32.1368861 C48.2741552,32.1368861 48.8676508,32.3258098 49.361919,32.7197492 C50.682182,33.7717868 50.7639719,35.7297806 49.6070811,36.8942529 Z"/>\n </g>\n <g class="outline">\n <path d="M57.1428763 6.63333333C57.6856856 6.24686869 57.8143144 5.49030303 57.4302341 4.94383838 57.0461538 4.39737374 56.2950502 4.26767677 55.7520401 4.65454545L52.7452174 6.79636364C52.202408 7.18282828 52.0737793 7.93939394 52.4578595 8.48585859 52.6924415 8.81959596 53.0642809 8.9979798 53.4415385 8.9979798 53.6819398 8.9979798 53.9247492 8.92565657 54.1360535 8.77494949L57.1428763 6.63333333zM49.1767224 5.93676768C49.3161873 5.98969697 49.4594649 6.01474747 49.6001338 6.01474747 50.0873579 6.01474747 50.5458863 5.71494949 50.727291 5.22868687L52.023612 1.75757576C52.257592 1.13111111 51.9427425.432121212 51.3202676.196565657 50.6979933-.0391919192 50.0034783.278181818 49.7694983.904646465L48.4731773 4.37575758C48.239398 5.00222222 48.5542475 5.70121212 49.1767224 5.93676768zM58.6400669 11.2345455C58.6318395 11.2345455 58.623612 11.2345455 58.6151839 11.2345455L54.932709 11.2656566C54.267893 11.2791919 53.7399331 11.7919192 53.7533779 12.4612121 53.7666221 13.1220202 54.30301 13.6587879 54.9567893 13.6587879 54.9650167 13.6587879 54.9732441 13.6587879 54.9816722 13.6587879L58.6641472 13.5955556C59.3289632 13.5818182 59.8569231 13.0436364 59.8434783 12.3743434 59.8302341 11.7135354 59.2938462 11.2345455 58.6400669 11.2345455zM51.2107023 29.7280808C50.5940468 29.2365657 49.8640134 28.9020202 49.0922408 28.7448485 49.1432107 28.6519192 49.1907692 28.5573737 49.2357191 28.4614141L49.7189298 27.9749495C51.5799331 26.1012121 51.7753846 23.1519192 50.1732441 21.1141414 49.4169231 20.1523232 48.3670234 19.5131313 47.2009365 19.2745455 47.284214 19.120202 47.3580602 18.9624242 47.4250836 18.8022222 48.6925084 16.9539394 48.6718395 14.469899 47.2681605 12.6844444 46.5116388 11.7220202 45.4613378 11.0808081 44.2946488 10.8426263 45.2578595 9.05959596 45.1348495 6.83737374 43.8481605 5.20121212 42.8753177 3.96383838 41.4182609 3.25393939 39.8502341 3.25393939 38.5946488 3.25393939 37.4101003 3.70565657 36.480602 4.53272727 36.3399331 3.72888889 36.0064214 2.95252525 35.4748495 2.27636364 34.501806 1.0389899 33.0447492.329292929 31.4767224.329090909 30.1141806.329090909 28.8351171.861414141 27.8753177 1.82767677L15.6666221 14.1185859 15.6200669 12.4781818C15.5985953 9.68424242 13.3340468 7.41777778 10.5537793 7.41777778 7.8238796 7.41777778 5.59143813 9.60262626 5.49110368 12.3264646L3.05377926 30.1660606 1.05050167 32.510303C-.150100334 33.9157576.751318148 36.4103164 1.05050167 37.002855 1.3496852 37.5953936 1.66593319 37.9666982 2.51271962 38.8651283 2.8050341 39.1752704 3.3712736 39.6680391 4.21143813 40.3434343 3.2935786 41.7335354 4.72327715 47.298456 9.51045561 52.4226263 15.4436869 58.7735254 20.1888963 59.9262626 21.1316388 59.9262626 21.9056187 59.9262626 22.6703679 59.6646465 23.2846154 59.189899L26.2031438 56.9337374C29.0107023 56.2660606 32.1060201 54.7492929 35.4086288 52.4226263 38.2924415 50.3907071 41.4210702 47.6832323 44.7070234 44.3749495L51.656388 37.3787879C52.681204 36.3470707 53.220602 34.9165657 53.1363211 33.4541414 53.0520401 31.9941414 52.350301 30.6361616 51.2107023 29.7280808zM37.9513043 6.46646465C38.4736455 5.94080808 39.1617391 5.6779798 39.8500334 5.6779798 40.6356522 5.6779798 41.4214716 6.02040404 41.9600669 6.70545455 42.8141137 7.79171717 42.6644147 9.36808081 41.6913712 10.3474747L40.4518395 11.5951515C40.2608027 11.7234343 40.0747826 11.8606061 39.900602 12.0159596 39.7599331 11.2119192 39.4262207 10.4355556 38.8946488 9.75959596 38.2410702 8.92848485 37.3687625 8.33676768 36.3913043 8.0369697L37.9513043 6.46646465zM29.5779933 3.54181818C30.1001338 3.01616162 30.7884281 2.75333333 31.4767224 2.75333333 32.2625418 2.75353535 33.0481605 3.0959596 33.5867559 3.7810101 34.4408027 4.86727273 34.2911037 6.44343434 33.3180602 7.42282828L19.0868227 21.6018182 19.0400669 19.9616162C19.0278261 18.3808081 18.297592 16.9692929 17.1626087 16.0414141L29.5779933 3.54181818zM2.60416353 35.7559886C2.47532701 35.335629 2.49130435 34.5416162 2.87618729 34.0911111L5.34060201 31.2068687C5.34140468 31.2059259 6.19304348 24.9763636 7.89551839 12.5181818 7.89551839 11.0462626 9.09170569 9.8420202 10.5537793 9.8420202 12.0158528 9.8420202 13.2122408 11.0462626 13.2122408 12.5181818L13.2814716 14.9494949C10.8758528 15.2820202 9.00280936 17.319798 8.91090301 19.8094949L6.47377926 37.6492929 5.76481605 38.4791919C4.9435476 38.1761817 4.2983601 37.8410335 3.82925357 37.4737474 3.12559377 36.9228183 2.73300005 36.1763482 2.60416353 35.7559886zM49.9535117 35.6644444L43.0043478 42.6606061C37.0691639 48.6357576 30.8650836 53.4319192 25.4151171 54.6276768 25.2495652 54.6642424 25.0938462 54.7343434 24.959398 54.8383838L21.8179264 57.2670707C21.6144482 57.4244444 21.4950582 57.6308449 20.8525759 57.6308449 20.2100936 57.6308449 14.5822005 53.9693849 12.0142129 51.5085254 9.70072096 49.2915447 5.64850979 42.4897722 6.29638796 41.5743434L8.76060201 38.690303C8.76153846 38.6892256 9.61317726 32.4596633 11.3155184 20.0016162 11.3155184 18.529697 12.5119064 17.3252525 13.9739799 17.3252525 15.4360535 17.3252525 16.6322408 18.529697 16.6322408 20.0016162L16.7578595 24.4105051C16.7787291 25.1430303 17.3773244 25.62 18.0002007 25.62 18.3040134 25.62 18.6138462 25.5062626 18.8648829 25.2537374L32.998194 11.0252525C33.5205351 10.4993939 34.2084281 10.2367677 34.8969231 10.2367677 35.6825418 10.2367677 36.4683612 10.5791919 37.0069565 11.2642424 37.8610033 12.3505051 37.7111037 13.9268687 36.7380602 14.9062626L27.0020067 24.7078788C26.4965217 25.2169697 26.4965217 26.0418182 27.0020067 26.5505051 27.2578595 26.8080808 27.5931773 26.9369697 27.928495 26.9369697 28.2638127 26.9369697 28.5993311 26.8080808 28.8549833 26.5505051L41.371505 13.949899C41.8936455 13.4240404 42.5817391 13.1614141 43.2702341 13.1614141 44.0558528 13.1616162 44.8416722 13.5040404 45.3802676 14.1890909 46.2343144 15.2751515 46.0844147 16.8515152 45.1113712 17.8309091L32.6536455 30.3725253C32.1413378 30.8884848 32.1413378 31.7244444 32.6536455 32.240404 32.906087 32.4945455 33.2367893 32.6216162 33.567893 32.6216162 33.8985953 32.6216162 34.2294983 32.4945455 34.4819398 32.240404L44.2767893 22.379798C44.7991304 21.8539394 45.4872241 21.5913131 46.1755184 21.5913131 46.9611371 21.5913131 47.7469565 21.9337374 48.2855518 22.6189899 49.1395987 23.7050505 48.989699 25.2814141 48.0166555 26.2608081L38.3145151 36.0284848C37.7903679 36.5559596 37.7903679 37.4117172 38.3145151 37.9391919 38.5723746 38.1989899 38.8898328 38.3208081 39.2070903 38.3208081 39.5245485 38.3208081 39.8420067 38.1989899 40.0840134 37.9551515L46.0988629 31.899798C46.6408696 31.3541414 47.3664883 31.0656566 48.089699 31.0656566 48.6650167 31.0656566 49.2387291 31.2482828 49.7165217 31.6290909 50.9927759 32.6460606 51.0718395 34.5387879 49.9535117 35.6644444z"/>\n </g>\n </svg>']);return f=function(){return t},t}function d(){var t=p(["\n:host {\n display: block;\n position: relative;\n width: 5em;\n height: 5em;\n margin: 5em auto;\n}\n.style-root {\n position: absolute;\n fill: var(--clap-button-color, var(--theme-color, rgb(79,177,186)));\n stroke: var(--clap-button-color, var(--theme-color, rgb(79,177,186)));\n top: 0;\n left: 0;\n right: 0;\n bottom: 0; }\n .style-root .error { color: indianred }\n .style-root button {\n -webkit-tap-highlight-color: transparent;\n cursor: pointer; \n border: none;\n background: none;\n margin: 0;\n padding: 0;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%; }\n .style-root button:disabled {\n cursor: default; }\n .style-root .shockwave {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n color: var(--clap-button-color, var(--theme-color, rgb(79,177,186)));\n border-radius: 50%; }\n .style-root svg {\n position: absolute;\n width: 60%;\n height: 60%;\n margin: 20%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0.8;\n stroke: none;\n overflow: visible !important; }\n .style-root svg g.flat {\n visibility: hidden; }\n .style-root svg g.outline {\n visibility: visible; }\n .style-root.clapped:not(.loading) svg g.flat {\n visibility: visible; }\n .style-root.clapped svg g.outline {\n visibility: hidden; }\n .style-root.loading svg g.outline {\n visibility: visible; }\n .style-root .count-container {\n position: absolute;\n width: 100%;\n color: inherit;\n user-select: none; }\n .style-root .count-container.container-top {\n top: -2.5em; }\n .style-root .count-container.container-bottom {\n bottom: -2.5em; }\n .style-root .count-container > div {\n width: 300%;\n margin-left: -100%;\n text-align: center; }\n .style-root g.sparkle circle {\n opacity: 0;\n stroke-width: 0; }\n .style-root:not(.clapped):not(.no-shockwave):not(.no-animation) .shockwave {\n animation-name: shockwave;\n animation-duration: 1.5s;\n animation-iteration-count: infinite;\n animation-timing-function: ease-in; }\n .style-root.clap {\n animation-name: pulse;\n animation-duration: 0.5s;\n animation-iteration-count: 1; \n animation-timing-function: ease-out; }\n .style-root.clap .sparkle circle {\n animation-name: explode;\n animation-duration: 0.5s;\n animation-iteration-count: 1; }\n .style-root.clap .container-top .count {\n animation-name: hide-then-show;\n animation-duration: 0.5s;\n animation-iteration-count: 1; }\n .style-root.clap .container-bottom .count {\n animation-name: hide-then-show-inverse;\n animation-duration: 0.5s;\n animation-iteration-count: 1; }\n\n#hand-svg {\n margin-top: 22%;\n margin-left: 22%;\n}\n\n#countdown-svg {\n width: 100%;\n height: 100%;\n stroke: var(--clap-button-color, var(--theme-color, rgb(79,177,186)));\n margin: 0;\n}\n\n.countdown {\n fill: none; \n transform: rotateZ(0deg);\n transform-origin: center;\n}\n\n.countdown circle {\n stroke-width: 2px;\n opacity: 1;\n stroke-linecap: round;\n stroke-dasharray: 308 308;\n transform: rotate(-90deg);\n transform-origin: center;\n}\n\n.style-root.ticking .countdown circle {\n animation-timing-function: ease;\n animation-name: countdown;\n animation-duration: 3s; \n}\n\n.style-root.loading:not(.no-animation) .countdown {\n animation: 2s linear infinite svg-animation; \n}\n\n.style-root.loading:not(.no-animation) .countdown circle {\n animation: 1.4s ease-in-out infinite both circle-animation;\n stroke-dasharray: 308;\n stroke-dashoffset: 302; \n}\n\n@keyframes svg-animation {\n 0% { \n transform: rotateZ(-90deg);\n }\n 100% { \n transform: rotateZ(270deg);\n }\n}\n\n@keyframes circle-animation {\n 0%,\n 15% {\n stroke-dashoffset: 280;\n transform: rotate(0); \n }\n 50%,\n 65% {\n stroke-dashoffset: 75;\n transform: rotate(45deg); \n }\n 100% {\n stroke-dashoffset: 280;\n transform: rotate(360deg); \n }\n}\n\n@keyframes countdown {\n 0% {\n stroke-dasharray: 308 308;\n }\n 50% {\n stroke-dasharray: 308 308;\n }\n 100% {\n stroke-dasharray: 0 308;\n }\n}\n\n@keyframes explode {\n 0% {\n transform: translateX(10px);\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n transform: translateX(25px);\n }\n}\n\n@keyframes shockwave {\n 0% {\n transform: scale(1);\n opacity: 1; \n box-shadow: 0 0 2px, inset 0 0 1px;\n }\n 89.99% {\n transform: scale(1);\n opacity: 0;\n box-shadow: 0 0 50px, inset 0 0 10px;\n }\n 90%, 100% {\n transform: scale(1);\n opacity: 0;\n box-shadow: 0 0 2px, inset 0 0 1px;\n }\n}\n\n@keyframes pulse {\n 0% {\n transform: scale(1);\n }\n 25% {\n transform: scale(1.1);\n }\n 100% {\n transform: scale(1);\n }\n}\n\n@keyframes hide-then-show {\n 0% {\n opacity: 1;\n transform: translateY(0);\n }\n 20% {\n opacity: 0;\n transform: translateY(-10px);\n }\n 50% {\n transform: translateY(10px);\n }\n 80% {\n transform: translateY(10px);\n opacity: 0;\n }\n 100% {\n opacity: 1;\n transform: translateY(0); \n }\n}\n\n@keyframes hide-then-show-inverse {\n 0% {\n opacity: 1;\n transform: translateY(0);\n }\n 20% {\n opacity: 0;\n transform: translateY(10px);\n }\n 50% {\n transform: translateY(-10px);\n }\n 80% {\n transform: translateY(-10px);\n opacity: 0;\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n}\n"]);return d=function(){return t},t}function p(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function v(t,e,n,r,i,o,s){try{var a=t[o](s),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,i)}function y(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function s(t){v(o,r,i,s,a,"next",t)}function a(t){v(o,r,i,s,a,"throw",t)}s(void 0)}))}}
|
15
|
-
/*! *****************************************************************************
|
16
|
-
Copyright (c) Microsoft Corporation.
|
17
|
-
|
18
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
19
|
-
purpose with or without fee is hereby granted.
|
20
|
-
|
21
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
22
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
23
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
24
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
25
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
26
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
27
|
-
PERFORMANCE OF THIS SOFTWARE.
|
28
|
-
***************************************************************************** */function g(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function m(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function w(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function b(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}n.d(e,"ClapButton",(function(){return Ge})),n.d(e,"ClapConfig",(function(){return He})),n.d(e,"ClapText",(function(){return $e})),function(t){var e=[];function n(n){var r=this,i="$BroadcastChannel$"+(n=String(n))+"$";e[i]=e[i]||[],e[i].push(this),this._name=n,this._id=i,this._closed=!1,this._mc=new MessageChannel,this._mc.port1.start(),this._mc.port2.start(),t.addEventListener("storage",(function(e){if(e.storageArea===t.localStorage&&null!=e.newValue&&""!==e.newValue&&e.key.substring(0,i.length)===i){var n=JSON.parse(e.newValue);r._mc.port2.postMessage(n)}}))}n.prototype={get name(){return this._name},postMessage:function(n){var r=this;if(this._closed){var i=new Error;throw i.name="InvalidStateError",i}var o=JSON.stringify(n),s=this._id+String(Date.now())+"$"+String(Math.random());t.localStorage.setItem(s,o),setTimeout((function(){t.localStorage.removeItem(s)}),500),e[this._id].forEach((function(t){t!==r&&t._mc.port2.postMessage(JSON.parse(o))}))},close:function(){if(!this._closed){this._closed=!0,this._mc.port1.close(),this._mc.port2.close();var t=e[this._id].indexOf(this);e[this._id].splice(t,1)}},get onmessage(){return this._mc.port1.onmessage},set onmessage(t){this._mc.port1.onmessage=t},addEventListener:function(){return this._mc.port1.addEventListener.apply(this._mc.port1,arguments)},removeEventListener:function(){return this._mc.port1.removeEventListener.apply(this._mc.port1,arguments)},dispatchEvent:function(){return this._mc.port1.dispatchEvent.apply(this._mc.port1,arguments)}},t.BroadcastChannel=t.BroadcastChannel||n}(self),function(t){function e(){}function n(t,e){if(t=void 0===t?"utf-8":t,e=void 0===e?{fatal:!1}:e,-1===o.indexOf(t.toLowerCase()))throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+t+"') is invalid.");if(e.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}function i(t){for(var e=0,n=Math.min(65536,t.length+1),r=new Uint16Array(n),i=[],o=0;;){var s=e<t.length;if(!s||o>=n-1){if(i.push(String.fromCharCode.apply(null,r.subarray(0,o))),!s)return i.join("");t=t.subarray(e),o=e=0}if(0==(128&(s=t[e++])))r[o++]=s;else if(192==(224&s)){var a=63&t[e++];r[o++]=(31&s)<<6|a}else if(224==(240&s)){a=63&t[e++];var u=63&t[e++];r[o++]=(31&s)<<12|a<<6|u}else 240==(248&s)&&(65535<(s=(7&s)<<18|(a=63&t[e++])<<12|(u=63&t[e++])<<6|63&t[e++])&&(s-=65536,r[o++]=s>>>10&1023|55296,s=56320|1023&s),r[o++]=s)}}if(t.TextEncoder&&t.TextDecoder)return!1;var o=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(e.prototype,"encoding",{value:"utf-8"}),e.prototype.encode=function(t,e){if((e=void 0===e?{stream:!1}:e).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");e=0;for(var n=t.length,r=0,i=Math.max(32,n+(n>>>1)+7),o=new Uint8Array(i>>>3<<3);e<n;){var s=t.charCodeAt(e++);if(55296<=s&&56319>=s){if(e<n){var a=t.charCodeAt(e);56320==(64512&a)&&(++e,s=((1023&s)<<10)+(1023&a)+65536)}if(55296<=s&&56319>=s)continue}if(r+4>o.length&&(i+=8,i=(i*=1+e/t.length*2)>>>3<<3,(a=new Uint8Array(i)).set(o),o=a),0==(4294967168&s))o[r++]=s;else{if(0==(4294965248&s))o[r++]=s>>>6&31|192;else if(0==(4294901760&s))o[r++]=s>>>12&15|224,o[r++]=s>>>6&63|128;else{if(0!=(4292870144&s))continue;o[r++]=s>>>18&7|240,o[r++]=s>>>12&63|128,o[r++]=s>>>6&63|128}o[r++]=63&s|128}}return o.slice?o.slice(0,r):o.subarray(0,r)},Object.defineProperty(n.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(n.prototype,"fatal",{value:!1}),Object.defineProperty(n.prototype,"ignoreBOM",{value:!1});var s=i;"function"==typeof r&&r.from?s=function(t){return r.from(t.buffer,t.byteOffset,t.byteLength).toString("utf-8")}:"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&(s=function(t){var e=URL.createObjectURL(new Blob([t],{type:"text/plain;charset=UTF-8"}));try{var n=new XMLHttpRequest;return n.open("GET",e,!1),n.send(),n.responseText}catch(e){return i(t)}finally{URL.revokeObjectURL(e)}}),n.prototype.decode=function(t,e){if((e=void 0===e?{stream:!1}:e).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");return t=t instanceof Uint8Array?t:t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer):new Uint8Array(t),s(t)},t.TextEncoder=e,t.TextDecoder=n}("undefined"!=typeof window?window:void 0!==t?t:void 0);var _=function(){function t(){}return t.prototype.then=function(e,n){var r=new t,i=this.s;if(i){var o=1&i?e:n;if(o){try{S(r,1,o(this.v))}catch(t){S(r,2,t)}return r}return this}return this.o=function(t){try{var i=t.v;1&t.s?S(r,1,e?e(i):i):n?S(r,1,n(i)):S(r,2,i)}catch(t){S(r,2,t)}},r},t}();function S(t,e,n){if(!t.s){if(n instanceof _){if(!n.s)return void(n.o=S.bind(null,t,e));1&e&&(e=n.s),n=n.v}if(n&&n.then)return void n.then(S.bind(null,t,e),S.bind(null,t,2));t.s=e,t.v=n;var r=t.o;r&&r(t)}}var C=0,A="function"==typeof WeakMap?WeakMap:function(){var t="function"==typeof Symbol?Symbol(0):"__weak$"+ ++C;this.set=function(e,n){e[t]=n},this.get=function(e){return e[t]}};function P(t,e){return new Promise((function(n,r){t.onsuccess=function(){var r=t.result;e&&(r=e(r)),n(r)},t.onerror=function(){r(t.error)}}))}function E(t,e){return P(t.openCursor(e),(function(t){return t?[t.key,t.value]:[]}))}function x(t){return new Promise((function(e,n){t.oncomplete=function(){e()},t.onabort=function(){n(t.error)},t.onerror=function(){n(t.error)}}))}function T(t){if(!function(t){if("number"==typeof t||"string"==typeof t)return!0;if("object"==typeof t&&t){if(Array.isArray(t))return!0;if("setUTCFullYear"in t)return!0;if("function"==typeof ArrayBuffer&&ArrayBuffer.isView(t))return!0;if("byteLength"in t&&"length"in t)return!0}return!1}(t))throw Error("kv-storage: The given value is not allowed as a key")}var k={};function R(t,e){return E(t,U(e))}function U(t){return t===k?IDBKeyRange.lowerBound(-1/0):IDBKeyRange.lowerBound(t,!0)}var L=new A,M=new A,N=new A,B=new A,O=function(){};function I(t,e){return e((function(e,n){try{function r(){return M.set(t,o),N.set(t,void 0),{value:a,done:void 0===o}}var i=M.get(t);if(void 0===i)return Promise.resolve({value:void 0,done:!0});var o,s,a,u=function(t,e){var n,r=-1;t:{for(var i=0;i<e.length;i++){var o=e[i][0];if(o){var s=o();if(s&&s.then)break t;if(s===t){r=i;break}}else r=i}if(-1!==r){do{for(var a=e[r][1];!a;)a=e[++r][1];var u=a();if(u&&u.then){n=!0;break t}var l=e[r][2];r++}while(l&&!l());return u}}var c=new _,h=S.bind(null,c,2);return(n?u.then(f):s.then((function n(s){for(;;){if(s===t){r=i;break}if(++i===e.length){if(-1!==r)break;return void S(c,1,u)}if(o=e[i][0]){if((s=o())&&s.then)return void s.then(n).then(void 0,h)}else r=i}do{for(var a=e[r][1];!a;)a=e[++r][1];var u=a();if(u&&u.then)return void u.then(f).then(void 0,h);var l=e[r][2];r++}while(l&&!l());S(c,1,u)}))).then(void 0,h),c;function f(t){for(;;){var n=e[r][2];if(!n||n())break;for(var i=e[++r][1];!i;)i=e[++r][1];if((t=i())&&t.then)return void t.then(f).then(void 0,h)}S(c,1,t)}}(B.get(t),[[function(){return"keys"},function(){return Promise.resolve(function(t,e){return E(t,U(e)).then((function(t){return t[0]}))}(n,i)).then((function(t){a=o=t}))}],[function(){return"values"},function(){return Promise.resolve(R(n,i)).then((function(t){var e;o=(e=t)[0],a=s=e[1]}))}],[function(){return"entries"},function(){return Promise.resolve(R(n,i)).then((function(t){var e;s=(e=t)[1],a=void 0===(o=e[0])?void 0:[o,s]}))}]]);return Promise.resolve(u&&u.then?u.then(r):r())}catch(t){return Promise.reject(t)}}))}function j(t,e){var n=new O;return B.set(n,t),L.set(n,e),M.set(n,k),N.set(n,void 0),n}O.prototype.return=function(){M.set(this,void 0)},O.prototype.next=function(){var t=this,e=L.get(this);if(!e)return Promise.reject(new TypeError("Invalid this value"));var n,r=N.get(this);return n=void 0!==r?r.then((function(){return I(t,e)})):I(this,e),N.set(this,n),n},"function"==typeof Symbol&&Symbol.asyncIterator&&(O.prototype[Symbol.asyncIterator]=function(){return this});var D=function(t,e,n){try{return null===V.get(t)&&function(t){var e=Y.get(t);V.set(t,new Promise((function(n,r){var i=self.indexedDB.open(e,1);i.onsuccess=function(){var o=i.result;(function(t,e,n){if(1!==t.objectStoreNames.length)return n(W(e)),!1;if(t.objectStoreNames[0]!==z)return n(W(e)),!1;var r=t.transaction(z,"readonly").objectStore(z);return!(r.autoIncrement||r.keyPath||r.indexNames.length)||(n(W(e)),!1)})(o,e,r)&&(o.onclose=function(){V.set(t,null)},o.onversionchange=function(){o.close(),V.set(t,null)},n(o))},i.onerror=function(){return r(i.error)},i.onupgradeneeded=function(){try{i.result.createObjectStore(z)}catch(t){r(t)}}})))}(t),Promise.resolve(V.get(t)).then((function(t){var r=t.transaction(z,e),i=r.objectStore(z);return n(r,i)}))}catch(t){return Promise.reject(t)}},Y=new A,V=new A,z="store",q=function(t){var e="kv-storage:"+t;V.set(this,null),Y.set(this,e),this.backingStore={database:e,store:z,version:1}};function W(t){return new Error('kv-storage: database "'+t+'" corrupted')}q.prototype.set=function(t,e){try{return T(t),D(this,"readwrite",(function(n,r){return void 0===e?r.delete(t):r.put(e,t),x(n)}))}catch(t){return Promise.reject(t)}},q.prototype.get=function(t){try{return T(t),D(this,"readonly",(function(e,n){return P(n.get(t))}))}catch(t){return Promise.reject(t)}},q.prototype.delete=function(t){try{return T(t),D(this,"readwrite",(function(e,n){return n.delete(t),x(e)}))}catch(t){return Promise.reject(t)}},q.prototype.clear=function(){try{var t=this;function e(){function e(){return P(self.indexedDB.deleteDatabase(Y.get(t)))}var r=function(){if(n){try{n.close()}catch(t){}return Promise.resolve(new Promise(setTimeout)).then((function(){}))}}();return r&&r.then?r.then(e):e()}var n,r=V.get(t),i=function(){if(null!==r){function e(){V.set(t,null)}var i=function(t,e){try{var i=Promise.resolve(r).then((function(t){n=t}))}catch(t){return}return i&&i.then?i.then(void 0,(function(){})):i}();return i&&i.then?i.then(e):e()}}();return i&&i.then?i.then(e):e()}catch(t){return Promise.reject(t)}},q.prototype.keys=function(){var t=this;return j("keys",(function(e){return D(t,"readonly",e)}))},q.prototype.values=function(){var t=this;return j("values",(function(e){return D(t,"readonly",e)}))},q.prototype.entries=function(){var t=this;return j("entries",(function(e){return D(t,"readonly",e)}))},"function"==typeof Symbol&&Symbol.asyncIterator&&(q.prototype[Symbol.asyncIterator]=q.prototype.entries),new q("default");
|
29
|
-
/**
|
30
|
-
* @license
|
31
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
32
|
-
* This code may only be used under the BSD style license found at
|
33
|
-
* http://polymer.github.io/LICENSE.txt
|
34
|
-
* The complete set of authors may be found at
|
35
|
-
* http://polymer.github.io/AUTHORS.txt
|
36
|
-
* The complete set of contributors may be found at
|
37
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
38
|
-
* Code distributed by Google as part of the polymer project is also
|
39
|
-
* subject to an additional IP rights grant found at
|
40
|
-
* http://polymer.github.io/PATENTS.txt
|
41
|
-
*/
|
42
|
-
var F="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,H=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e!==n;){var i=e.nextSibling;t.insertBefore(e,r),e=i}},$=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e!==n;){var r=e.nextSibling;t.removeChild(e),e=r}},J="{{lit-".concat(String(Math.random()).slice(2),"}}"),G="\x3c!--".concat(J,"--\x3e"),X=new RegExp("".concat(J,"|").concat(G));class K{constructor(t,e){this.parts=[],this.element=e;for(var n=[],r=[],i=document.createTreeWalker(e.content,133,null,!1),o=0,s=-1,a=0,{strings:u,values:{length:l}}=t;a<l;){var c=i.nextNode();if(null!==c){if(s++,1===c.nodeType){if(c.hasAttributes()){for(var h=c.attributes,{length:f}=h,d=0,p=0;p<f;p++)Z(h[p].name,"$lit$")&&d++;for(;d-- >0;){var v=u[a],y=et.exec(v)[2],g=y.toLowerCase()+"$lit$",m=c.getAttribute(g);c.removeAttribute(g);var w=m.split(X);this.parts.push({type:"attribute",index:s,name:y,strings:w}),a+=w.length-1}}"TEMPLATE"===c.tagName&&(r.push(c),i.currentNode=c.content)}else if(3===c.nodeType){var b=c.data;if(b.indexOf(J)>=0){for(var _=c.parentNode,S=b.split(X),C=S.length-1,A=0;A<C;A++){var P=void 0,E=S[A];if(""===E)P=tt();else{var x=et.exec(E);null!==x&&Z(x[2],"$lit$")&&(E=E.slice(0,x.index)+x[1]+x[2].slice(0,-"$lit$".length)+x[3]),P=document.createTextNode(E)}_.insertBefore(P,c),this.parts.push({type:"node",index:++s})}""===S[C]?(_.insertBefore(tt(),c),n.push(c)):c.data=S[C],a+=C}}else if(8===c.nodeType)if(c.data===J){var T=c.parentNode;null!==c.previousSibling&&s!==o||(s++,T.insertBefore(tt(),c)),o=s,this.parts.push({type:"node",index:s}),null===c.nextSibling?c.data="":(n.push(c),s--),a++}else for(var k=-1;-1!==(k=c.data.indexOf(J,k+1));)this.parts.push({type:"node",index:-1}),a++}else i.currentNode=r.pop()}for(var R of n)R.parentNode.removeChild(R)}}var Z=(t,e)=>{var n=t.length-e.length;return n>=0&&t.slice(n)===e},Q=t=>-1!==t.index,tt=()=>document.createComment(""),et=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function nt(t,e){for(var{element:{content:n},parts:r}=t,i=document.createTreeWalker(n,133,null,!1),o=it(r),s=r[o],a=-1,u=0,l=[],c=null;i.nextNode();){a++;var h=i.currentNode;for(h.previousSibling===c&&(c=null),e.has(h)&&(l.push(h),null===c&&(c=h)),null!==c&&u++;void 0!==s&&s.index===a;)s.index=null!==c?-1:s.index-u,s=r[o=it(r,o)]}l.forEach(t=>t.parentNode.removeChild(t))}var rt=t=>{for(var e=11===t.nodeType?0:1,n=document.createTreeWalker(t,133,null,!1);n.nextNode();)e++;return e},it=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=e+1;n<t.length;n++){var r=t[n];if(Q(r))return n}return-1},ot=new WeakMap,st=t=>function(){var e=t(...arguments);return ot.set(e,!0),e},at=t=>"function"==typeof t&&ot.has(t),ut={},lt={};
|
43
|
-
/**
|
44
|
-
* @license
|
45
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
46
|
-
* This code may only be used under the BSD style license found at
|
47
|
-
* http://polymer.github.io/LICENSE.txt
|
48
|
-
* The complete set of authors may be found at
|
49
|
-
* http://polymer.github.io/AUTHORS.txt
|
50
|
-
* The complete set of contributors may be found at
|
51
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
52
|
-
* Code distributed by Google as part of the polymer project is also
|
53
|
-
* subject to an additional IP rights grant found at
|
54
|
-
* http://polymer.github.io/PATENTS.txt
|
55
|
-
*/
|
56
|
-
/**
|
57
|
-
* @license
|
58
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
59
|
-
* This code may only be used under the BSD style license found at
|
60
|
-
* http://polymer.github.io/LICENSE.txt
|
61
|
-
* The complete set of authors may be found at
|
62
|
-
* http://polymer.github.io/AUTHORS.txt
|
63
|
-
* The complete set of contributors may be found at
|
64
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
65
|
-
* Code distributed by Google as part of the polymer project is also
|
66
|
-
* subject to an additional IP rights grant found at
|
67
|
-
* http://polymer.github.io/PATENTS.txt
|
68
|
-
*/
|
69
|
-
class ct{constructor(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}update(t){var e=0;for(var n of this.__parts)void 0!==n&&n.setValue(t[e]),e++;for(var r of this.__parts)void 0!==r&&r.commit()}_clone(){for(var t,e=F?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],r=this.template.parts,i=document.createTreeWalker(e,133,null,!1),o=0,s=0,a=i.nextNode();o<r.length;)if(t=r[o],Q(t)){for(;s<t.index;)s++,"TEMPLATE"===a.nodeName&&(n.push(a),i.currentNode=a.content),null===(a=i.nextNode())&&(i.currentNode=n.pop(),a=i.nextNode());if("node"===t.type){var u=this.processor.handleTextExpression(this.options);u.insertAfterNode(a.previousSibling),this.__parts.push(u)}else this.__parts.push(...this.processor.handleAttributeExpressions(a,t.name,t.strings,this.options));o++}else this.__parts.push(void 0),o++;return F&&(document.adoptNode(e),customElements.upgrade(e)),e}}
|
70
|
-
/**
|
71
|
-
* @license
|
72
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
73
|
-
* This code may only be used under the BSD style license found at
|
74
|
-
* http://polymer.github.io/LICENSE.txt
|
75
|
-
* The complete set of authors may be found at
|
76
|
-
* http://polymer.github.io/AUTHORS.txt
|
77
|
-
* The complete set of contributors may be found at
|
78
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
79
|
-
* Code distributed by Google as part of the polymer project is also
|
80
|
-
* subject to an additional IP rights grant found at
|
81
|
-
* http://polymer.github.io/PATENTS.txt
|
82
|
-
*/var ht=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:t=>t}),ft=" ".concat(J," ");class dt{constructor(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}getHTML(){for(var t=this.strings.length-1,e="",n=!1,r=0;r<t;r++){var i=this.strings[r],o=i.lastIndexOf("\x3c!--");n=(o>-1||n)&&-1===i.indexOf("--\x3e",o+1);var s=et.exec(i);e+=null===s?i+(n?ft:G):i.substr(0,s.index)+s[1]+s[2]+"$lit$"+s[3]+J}return e+=this.strings[t]}getTemplateElement(){var t=document.createElement("template"),e=this.getHTML();return void 0!==ht&&(e=ht.createHTML(e)),t.innerHTML=e,t}}class pt extends dt{getHTML(){return"<svg>".concat(super.getHTML(),"</svg>")}getTemplateElement(){var t=super.getTemplateElement(),e=t.content,n=e.firstChild;return e.removeChild(n),H(e,n.firstChild),t}}
|
83
|
-
/**
|
84
|
-
* @license
|
85
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
86
|
-
* This code may only be used under the BSD style license found at
|
87
|
-
* http://polymer.github.io/LICENSE.txt
|
88
|
-
* The complete set of authors may be found at
|
89
|
-
* http://polymer.github.io/AUTHORS.txt
|
90
|
-
* The complete set of contributors may be found at
|
91
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
92
|
-
* Code distributed by Google as part of the polymer project is also
|
93
|
-
* subject to an additional IP rights grant found at
|
94
|
-
* http://polymer.github.io/PATENTS.txt
|
95
|
-
*/var vt=t=>null===t||!("object"==typeof t||"function"==typeof t),yt=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class gt{constructor(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(var r=0;r<n.length-1;r++)this.parts[r]=this._createPart()}_createPart(){return new mt(this)}_getValue(){var t=this.strings,e=t.length-1,n=this.parts;if(1===e&&""===t[0]&&""===t[1]){var r=n[0].value;if("symbol"==typeof r)return String(r);if("string"==typeof r||!yt(r))return r}for(var i="",o=0;o<e;o++){i+=t[o];var s=n[o];if(void 0!==s){var a=s.value;if(vt(a)||!yt(a))i+="string"==typeof a?a:String(a);else for(var u of a)i+="string"==typeof u?u:String(u)}}return i+=t[e]}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class mt{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===ut||vt(t)&&t===this.value||(this.value=t,at(t)||(this.committer.dirty=!0))}commit(){for(;at(this.value);){var t=this.value;this.value=ut,t(this)}this.value!==ut&&this.committer.commit()}}class wt{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(tt()),this.endNode=t.appendChild(tt())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=tt()),t.__insert(this.endNode=tt())}insertAfterPart(t){t.__insert(this.startNode=tt()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){if(null!==this.startNode.parentNode){for(;at(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=ut,t(this)}var e=this.__pendingValue;e!==ut&&(vt(e)?e!==this.value&&this.__commitText(e):e instanceof dt?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):yt(e)?this.__commitIterable(e):e===lt?(this.value=lt,this.clear()):this.__commitText(e))}}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){var e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}__commitTemplateResult(t){var e=this.options.templateFactory(t);if(this.value instanceof ct&&this.value.template===e)this.value.update(t.values);else{var n=new ct(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());var e,n=this.value,r=0;for(var i of t)void 0===(e=n[r])&&(e=new wt(this.options),n.push(e),0===r?e.appendIntoPart(this):e.insertAfterPart(n[r-1])),e.setValue(i),e.commit(),r++;r<n.length&&(n.length=r,this.clear(e&&e.endNode))}clear(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.startNode;$(this.startNode.parentNode,t.nextSibling,this.endNode)}}class bt{constructor(t,e,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}setValue(t){this.__pendingValue=t}commit(){for(;at(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=ut,t(this)}if(this.__pendingValue!==ut){var e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=ut}}}class _t extends gt{constructor(t,e,n){super(t,e,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new St(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class St extends mt{}var Ct=!1;(()=>{try{var t={get capture(){return Ct=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}})();class At{constructor(t,e,n){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this.__pendingValue=t}commit(){for(;at(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=ut,t(this)}if(this.__pendingValue!==ut){var e=this.__pendingValue,n=this.value,r=null==e||null!=n&&(e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive),i=null!=e&&(null==n||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),i&&(this.__options=Pt(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=ut}}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}var Pt=t=>t&&(Ct?{capture:t.capture,passive:t.passive,once:t.once}:t.capture
|
96
|
-
/**
|
97
|
-
* @license
|
98
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
99
|
-
* This code may only be used under the BSD style license found at
|
100
|
-
* http://polymer.github.io/LICENSE.txt
|
101
|
-
* The complete set of authors may be found at
|
102
|
-
* http://polymer.github.io/AUTHORS.txt
|
103
|
-
* The complete set of contributors may be found at
|
104
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
105
|
-
* Code distributed by Google as part of the polymer project is also
|
106
|
-
* subject to an additional IP rights grant found at
|
107
|
-
* http://polymer.github.io/PATENTS.txt
|
108
|
-
*/);function Et(t){var e=xt.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},xt.set(t.type,e));var n=e.stringsArray.get(t.strings);if(void 0!==n)return n;var r=t.strings.join(J);return void 0===(n=e.keyString.get(r))&&(n=new K(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}var xt=new Map,Tt=new WeakMap,kt=new
|
109
|
-
/**
|
110
|
-
* @license
|
111
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
112
|
-
* This code may only be used under the BSD style license found at
|
113
|
-
* http://polymer.github.io/LICENSE.txt
|
114
|
-
* The complete set of authors may be found at
|
115
|
-
* http://polymer.github.io/AUTHORS.txt
|
116
|
-
* The complete set of contributors may be found at
|
117
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
118
|
-
* Code distributed by Google as part of the polymer project is also
|
119
|
-
* subject to an additional IP rights grant found at
|
120
|
-
* http://polymer.github.io/PATENTS.txt
|
121
|
-
*/
|
122
|
-
class{handleAttributeExpressions(t,e,n,r){var i=e[0];return"."===i?new _t(t,e.slice(1),n).parts:"@"===i?[new At(t,e.slice(1),r.eventContext)]:"?"===i?[new bt(t,e.slice(1),n)]:new gt(t,e,n).parts}handleTextExpression(t){return new wt(t)}};
|
123
|
-
/**
|
124
|
-
* @license
|
125
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
126
|
-
* This code may only be used under the BSD style license found at
|
127
|
-
* http://polymer.github.io/LICENSE.txt
|
128
|
-
* The complete set of authors may be found at
|
129
|
-
* http://polymer.github.io/AUTHORS.txt
|
130
|
-
* The complete set of contributors may be found at
|
131
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
132
|
-
* Code distributed by Google as part of the polymer project is also
|
133
|
-
* subject to an additional IP rights grant found at
|
134
|
-
* http://polymer.github.io/PATENTS.txt
|
135
|
-
*/
|
136
|
-
/**
|
137
|
-
* @license
|
138
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
139
|
-
* This code may only be used under the BSD style license found at
|
140
|
-
* http://polymer.github.io/LICENSE.txt
|
141
|
-
* The complete set of authors may be found at
|
142
|
-
* http://polymer.github.io/AUTHORS.txt
|
143
|
-
* The complete set of contributors may be found at
|
144
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
145
|
-
* Code distributed by Google as part of the polymer project is also
|
146
|
-
* subject to an additional IP rights grant found at
|
147
|
-
* http://polymer.github.io/PATENTS.txt
|
148
|
-
*/
|
149
|
-
"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.3.0");var Rt=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new dt(t,n,"html",kt)},Ut=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new pt(t,n,"svg",kt)}
|
150
|
-
/**
|
151
|
-
* @license
|
152
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
153
|
-
* This code may only be used under the BSD style license found at
|
154
|
-
* http://polymer.github.io/LICENSE.txt
|
155
|
-
* The complete set of authors may be found at
|
156
|
-
* http://polymer.github.io/AUTHORS.txt
|
157
|
-
* The complete set of contributors may be found at
|
158
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
159
|
-
* Code distributed by Google as part of the polymer project is also
|
160
|
-
* subject to an additional IP rights grant found at
|
161
|
-
* http://polymer.github.io/PATENTS.txt
|
162
|
-
*/,Lt=(t,e)=>"".concat(t,"--").concat(e),Mt=!0;void 0===window.ShadyCSS?Mt=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),Mt=!1);var Nt=t=>e=>{var n=Lt(e.type,t),r=xt.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},xt.set(n,r));var i=r.stringsArray.get(e.strings);if(void 0!==i)return i;var o=e.strings.join(J);if(void 0===(i=r.keyString.get(o))){var s=e.getTemplateElement();Mt&&window.ShadyCSS.prepareTemplateDom(s,t),i=new K(e,s),r.keyString.set(o,i)}return r.stringsArray.set(e.strings,i),i},Bt=["html","svg"],Ot=new Set;window.JSCompiler_renameProperty=(t,e)=>t;var It={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},jt=(t,e)=>e!==t&&(e==e||t==t),Dt={attribute:!0,type:String,converter:It,reflect:!1,hasChanged:jt};class Yt extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();var t=[];return this._classProperties.forEach((e,n)=>{var r=this._attributeNameForProperty(n,e);void 0!==r&&(this._attributeToPropertyMap.set(r,n),t.push(r))}),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;var t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((t,e)=>this._classProperties.set(e,t))}}static createProperty(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dt;if(this._ensureClassProperties(),this._classProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){var n="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){var i=this[t];this[e]=r,this.requestUpdateInternal(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this._classProperties&&this._classProperties.get(t)||Dt}static finalize(){var t=Object.getPrototypeOf(this);if(t.hasOwnProperty("finalized")||t.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){var e=this.properties,n=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(var r of n)this.createProperty(r,e[r])}}static _attributeNameForProperty(t,e){var n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:jt)(t,e)}static _propertyValueFromAttribute(t,e){var n=e.type,r=e.converter||It,i="function"==typeof r?r:r.fromAttribute;return i?i(t,n):t}static _propertyValueToAttribute(t,e){if(void 0!==e.reflect){var n=e.type,r=e.converter;return(r&&r.toAttribute||It.toAttribute)(t,n)}}initialize(){this._updateState=0,this._updatePromise=new Promise(t=>this._enableUpdatingResolver=t),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach((t,e)=>{if(this.hasOwnProperty(e)){var n=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,n)}})}_applyInstanceProperties(){this._instanceProperties.forEach((t,e)=>this[e]=t),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(t,e,n){e!==n&&this._attributeToProperty(t,n)}_propertyToAttribute(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dt,r=this.constructor,i=r._attributeNameForProperty(t,n);if(void 0!==i){var o=r._propertyValueToAttribute(e,n);if(void 0===o)return;this._updateState=8|this._updateState,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._updateState=-9&this._updateState}}_attributeToProperty(t,e){if(!(8&this._updateState)){var n=this.constructor,r=n._attributeToPropertyMap.get(t);if(void 0!==r){var i=n.getPropertyOptions(r);this._updateState=16|this._updateState,this[r]=n._propertyValueFromAttribute(e,i),this._updateState=-17&this._updateState}}}requestUpdateInternal(t,e,n){var r=!0;if(void 0!==t){var i=this.constructor;n=n||i.getPropertyOptions(t),i._valueHasChanged(this[t],e,n.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==n.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,n))):r=!1}!this._hasRequestedUpdate&&r&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(t,e){return this.requestUpdateInternal(t,e),this.updateComplete}_enqueueUpdate(){var t=this;return y((function*(){t._updateState=4|t._updateState;try{yield t._updatePromise}catch(e){}var e=t.performUpdate();return null!=e&&(yield e),!t._hasRequestedUpdate}))()}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(this._hasRequestedUpdate){this._instanceProperties&&this._applyInstanceProperties();var t=!1,e=this._changedProperties;try{(t=this.shouldUpdate(e))?this.update(e):this._markUpdated()}catch(e){throw t=!1,this._markUpdated(),e}t&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(e)),this.updated(e))}}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((t,e)=>this._propertyToAttribute(e,this[e],t)),this._reflectingProperties=void 0),this._markUpdated()}updated(t){}firstUpdated(t){}}Yt.finalized=!0;
|
163
|
-
/**
|
164
|
-
* @license
|
165
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
166
|
-
* This code may only be used under the BSD style license found at
|
167
|
-
* http://polymer.github.io/LICENSE.txt
|
168
|
-
* The complete set of authors may be found at
|
169
|
-
* http://polymer.github.io/AUTHORS.txt
|
170
|
-
* The complete set of contributors may be found at
|
171
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
172
|
-
* Code distributed by Google as part of the polymer project is also
|
173
|
-
* subject to an additional IP rights grant found at
|
174
|
-
* http://polymer.github.io/PATENTS.txt
|
175
|
-
*/
|
176
|
-
var Vt=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{var{kind:n,elements:r}=e;return{kind:n,elements:r,finisher(e){window.customElements.define(t,e)}}})(t,e),zt=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?Object.assign(Object.assign({},e),{finisher(n){n.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}};function qt(t){return(e,n)=>void 0!==n?((t,e,n)=>{e.constructor.createProperty(n,t)})(t,e,n):zt(t,e)}var Wt=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ft=Symbol();class Ht{constructor(t,e){if(e!==Ft)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return void 0===this._styleSheet&&(Wt?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}
|
177
|
-
/**
|
178
|
-
* @license
|
179
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
180
|
-
* This code may only be used under the BSD style license found at
|
181
|
-
* http://polymer.github.io/LICENSE.txt
|
182
|
-
* The complete set of authors may be found at
|
183
|
-
* http://polymer.github.io/AUTHORS.txt
|
184
|
-
* The complete set of contributors may be found at
|
185
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
186
|
-
* Code distributed by Google as part of the polymer project is also
|
187
|
-
* subject to an additional IP rights grant found at
|
188
|
-
* http://polymer.github.io/PATENTS.txt
|
189
|
-
*/(window.litElementVersions||(window.litElementVersions=[])).push("2.4.0");var $t={};class Jt extends Yt{static getStyles(){return this.styles}static _getUniqueStyles(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_styles",this))){var t=this.getStyles();if(Array.isArray(t)){var e=(t,n)=>t.reduceRight((t,n)=>Array.isArray(n)?e(n,t):(t.add(n),t),n),n=e(t,new Set),r=[];n.forEach(t=>r.unshift(t)),this._styles=r}else this._styles=void 0===t?[]:[t];this._styles=this._styles.map(t=>{if(t instanceof CSSStyleSheet&&!Wt){var e=Array.prototype.slice.call(t.cssRules).reduce((t,e)=>t+e.cssText,"");return new Ht(String(e),Ft)}return t})}}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){var t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?Wt?this.renderRoot.adoptedStyleSheets=t.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map(t=>t.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){var e=this.render();super.update(t),e!==$t&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(t=>{var e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)}))}render(){return $t}}Jt.finalized=!0,Jt.render=(t,e,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");var r=n.scopeName,i=Tt.has(e),o=Mt&&11===e.nodeType&&!!e.host,s=o&&!Ot.has(r),a=s?document.createDocumentFragment():e;if(((t,e,n)=>{var r=Tt.get(e);void 0===r&&($(e,e.firstChild),Tt.set(e,r=new wt(Object.assign({templateFactory:Et},n))),r.appendInto(e)),r.setValue(t),r.commit()})(t,a,Object.assign({templateFactory:Nt(r)},n)),s){var u=Tt.get(a);Tt.delete(a),((t,e,n)=>{Ot.add(t);var r=n?n.element:document.createElement("template"),i=e.querySelectorAll("style"),{length:o}=i;if(0!==o){for(var s=document.createElement("style"),a=0;a<o;a++){var u=i[a];u.parentNode.removeChild(u),s.textContent+=u.textContent}(t=>{Bt.forEach(e=>{var n=xt.get(Lt(e,t));void 0!==n&&n.keyString.forEach(t=>{var{element:{content:e}}=t,n=new Set;Array.from(e.querySelectorAll("style")).forEach(t=>{n.add(t)}),nt(t,n)})})})(t);var l=r.content;n?function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,{element:{content:r},parts:i}=t;if(null!=n)for(var o=document.createTreeWalker(r,133,null,!1),s=it(i),a=0,u=-1;o.nextNode();)for(u++,o.currentNode===n&&(a=rt(e),n.parentNode.insertBefore(e,n));-1!==s&&i[s].index===u;){if(a>0){for(;-1!==s;)i[s].index+=a,s=it(i,s);return}s=it(i,s)}else r.appendChild(e)}(n,s,l.firstChild):l.insertBefore(s,l.firstChild),window.ShadyCSS.prepareTemplateStyles(r,t);var c=l.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==c)e.insertBefore(c.cloneNode(!0),e.firstChild);else if(n){l.insertBefore(s,l.firstChild);var h=new Set;h.add(s),nt(n,h)}}else window.ShadyCSS.prepareTemplateStyles(r,t)})(r,a,u.value instanceof ct?u.value.template:void 0),$(e,e.firstChild),e.appendChild(a),Tt.set(e,u)}!i&&o&&window.ShadyCSS.styleElement(e.host)};
|
190
|
-
/**
|
191
|
-
* @license
|
192
|
-
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
193
|
-
* This code may only be used under the BSD style license found at
|
194
|
-
* http://polymer.github.io/LICENSE.txt
|
195
|
-
* The complete set of authors may be found at
|
196
|
-
* http://polymer.github.io/AUTHORS.txt
|
197
|
-
* The complete set of contributors may be found at
|
198
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
199
|
-
* Code distributed by Google as part of the polymer project is also
|
200
|
-
* subject to an additional IP rights grant found at
|
201
|
-
* http://polymer.github.io/PATENTS.txt
|
202
|
-
*/
|
203
|
-
class Gt{constructor(t){this.classes=new Set,this.changed=!1,this.element=t;var e=(t.getAttribute("class")||"").split(/\s+/);for(var n of e)this.classes.add(n)}add(t){this.classes.add(t),this.changed=!0}remove(t){this.classes.delete(t),this.changed=!0}commit(){if(this.changed){var t="";this.classes.forEach(e=>t+=e+" "),this.element.setAttribute("class",t)}}}var Xt=new WeakMap,Kt=st(t=>e=>{if(!(e instanceof mt)||e instanceof St||"class"!==e.committer.name||e.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");var{committer:n}=e,{element:r}=n,i=Xt.get(e);void 0===i&&(r.setAttribute("class",n.strings.join(" ")),Xt.set(e,i=new Set));var o=r.classList||new Gt(r);for(var s in i.forEach(e=>{e in t||(o.remove(e),i.delete(e))}),t){var a=t[s];a!=i.has(s)&&(a?(o.add(s),i.add(s)):(o.remove(s),i.delete(s)))}"function"==typeof o.commit&&o.commit()}),Zt=new WeakMap,Qt=st(t=>e=>{if(!(e instanceof mt)||e instanceof St||"style"!==e.committer.name||e.committer.parts.length>1)throw new Error("The `styleMap` directive must be used in the style attribute and must be the only part in the attribute.");var{committer:n}=e,{style:r}=n.element,i=Zt.get(e);for(var o in void 0===i&&(r.cssText=n.strings.join(" "),Zt.set(e,i=new Set)),i.forEach(e=>{e in t||(i.delete(e),-1===e.indexOf("-")?r[e]=null:r.removeProperty(e))}),t)i.add(o),-1===o.indexOf("-")?r[o]=t[o]:r.setProperty(o,t[o])}),te=(t,e)=>{var n=t.startNode.parentNode,r=void 0===e?t.endNode:e.startNode,i=n.insertBefore(tt(),r);n.insertBefore(tt(),r);var o=new wt(t.options);return o.insertAfterNode(i),o},ee=(t,e)=>(t.setValue(e),t.commit(),t),ne=(t,e,n)=>{var r=t.startNode.parentNode,i=n?n.startNode:t.endNode,o=e.endNode.nextSibling;o!==i&&H(r,e.startNode,o,i)},re=t=>{$(t.startNode.parentNode,t.startNode,t.endNode.nextSibling)},ie=(t,e,n)=>{for(var r=new Map,i=e;i<=n;i++)r.set(t[i],i);return r},oe=new WeakMap,se=new WeakMap,ae=st((t,e,n)=>{var r;return void 0===n?n=e:void 0!==e&&(r=e),e=>{if(!(e instanceof wt))throw new Error("repeat can only be used in text bindings");var i,o,s=oe.get(e)||[],a=se.get(e)||[],u=[],l=[],c=[],h=0;for(var f of t)c[h]=r?r(f,h):h,l[h]=n(f,h),h++;for(var d=0,p=s.length-1,v=0,y=l.length-1;d<=p&&v<=y;)if(null===s[d])d++;else if(null===s[p])p--;else if(a[d]===c[v])u[v]=ee(s[d],l[v]),d++,v++;else if(a[p]===c[y])u[y]=ee(s[p],l[y]),p--,y--;else if(a[d]===c[y])u[y]=ee(s[d],l[y]),ne(e,s[d],u[y+1]),d++,y--;else if(a[p]===c[v])u[v]=ee(s[p],l[v]),ne(e,s[p],s[d]),p--,v++;else if(void 0===i&&(i=ie(c,v,y),o=ie(a,d,p)),i.has(a[d]))if(i.has(a[p])){var g=o.get(c[v]),m=void 0!==g?s[g]:null;if(null===m){var w=te(e,s[d]);ee(w,l[v]),u[v]=w}else u[v]=ee(m,l[v]),ne(e,m,s[d]),s[g]=null;v++}else re(s[p]),p--;else re(s[d]),d++;for(;v<=y;){var b=te(e,u[y+1]);ee(b,l[v]),u[v++]=b}for(;d<=p;){var _=s[d++];null!==_&&re(_)}oe.set(e,u),se.set(e,c)}}),ue=new WeakMap,le=st(t=>e=>{if(!(e instanceof wt))throw new Error("unsafeHTML can only be used in text bindings");var n=ue.get(e);if(void 0===n||!vt(t)||t!==n.value||e.value!==n.fragment){var r=document.createElement("template");r.innerHTML=t;var i=document.importNode(r.content,!0);e.setValue(i),ue.set(e,{value:t,fragment:i})}}),ce=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=n.reduce((e,n,r)=>e+(t=>{if(t instanceof Ht)return t.cssText;if("number"==typeof t)return t;throw new Error("Value passed to 'css' function must be a 'css' function result: ".concat(t,". Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security."))})(n)+t[r+1],t[0]);return new Ht(i,Ft)}(d()),he=t=>t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength),fe=he,de=t=>parseInt(t,16);function pe(t){var e,n=(e=t,Array.from(fe(e),t=>(t=>t.toString(16).padStart(2,"0"))(t)));return n.splice(4,0,"-"),n.splice(7,0,"-"),n.splice(10,0,"-"),n.splice(13,0,"-"),n.join("")}function ve(){var t=crypto.getRandomValues(new Uint8Array(16));return t[6]=15&t[6]|64,t[8]=63&t[8]|128,t.buffer}function ye(){return(ye=y((function*(t,e){var n,r="string"==typeof t?(n=t,n=unescape(encodeURIComponent(n)),(new TextEncoder).encode(n)):he(t),i="string"==typeof e?new ge(e):e,o=new Uint8Array(yield crypto.subtle.digest("SHA-1",function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.reduce((t,e)=>t+e.length,0),i=new Uint8Array(r),o=0;for(var s of e)i.set(s,o),o+=s.length;return i}(i,r)));return o[6]=15&o[6]|80,o[8]=63&o[8]|128,o.buffer.slice(0,16)}))).apply(this,arguments)}class ge extends Uint8Array{static v4(){return new ge(ve())}static v5(t,e){return y((function*(){return new ge(yield function(t,e){return ye.apply(this,arguments)}(t,e))}))()}constructor(t,e){if(null==t)super(ve());else if("string"==typeof t)super(function(t){var e,n=t.replace(/[^0-9a-f]/gi,"").slice(0,32);if(n.length<32)throw Error("UUID too short");return(e=n,new Uint8Array(e.match(/[0-9a-f]{1,2}/gi).map(de))).buffer}(t));else if(t instanceof ge)super(t.buffer.slice(0));else{var n=t instanceof ArrayBuffer||t instanceof SharedArrayBuffer?new Uint8Array(t,null!=e?e:0,16):new Uint8Array(t);if(n.length<16)throw Error("UUID too short");super(n.buffer.slice(0,16))}}get id(){return pe(this)}get uuid(){return pe(this)}toString(){return pe(this)}toJSON(){return pe(this)}static get[Symbol.species](){return Uint8Array}}var me=Symbol.for("nodejs.util.inspect.custom"),we="undefined"!=typeof Deno?"symbols"in Deno?Deno.symbols.customInspect:Deno.customInspect:Symbol();ge.prototype[me]=function(){return"UUID [ ".concat(this.uuid," ]")},ge.prototype[we]=function(){return"UUID [ ".concat(this.uuid," ]")};var be=t=>t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength);var _e=t=>crypto.subtle.digest("SHA-256",t);function Se(t){var{url:e,id:n,claps:r,nonce:i}=t;return m(this,void 0,void 0,(function*(){return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.reduce((t,e)=>t+e.length,0),i=new Uint8Array(r),o=0;for(var s of e)i.set(s,o),o+=s.length;return i}(...e.map(be))}(yield(t=e.toString(),_e((new TextEncoder).encode(t))),new ge(n.toString()),new Uint32Array([r]),new Uint32Array([i])).buffer;var t}))}function Ce(t,e){for(var n=new Uint8Array(t),r=Math.ceil(e/8),i=0;i<r;i++)for(var o=Math.min(8,e-8*i),s=0;s<o;s++)if(0!=(n[i]>>7-s&1))return!1;return!0}function Ae(t){var{url:e,claps:n,id:r}=t;return m(this,void 0,void 0,(function*(){for(var t=(t=>8+Math.round(Math.log2(15+t)))(n),i=0,o=new Uint32Array(yield Se({url:e,id:r,claps:n,nonce:i})),s=yield _e(o);!Ce(s,t);)i++,o[o.length-1]=i,s=yield _e(o);return i}))}var Pe=Reflect.get(window,"GET_CLAPS_API")||"https://worker.getclaps.dev";function Ee(t,e,n){var r=new URL(t,n);for(var[i,o]of Object.entries(e||{}))r.searchParams.append(i,o);return r.href}var xe,Te,ke,Re,Ue,Le,Me,Ne,Be,Oe,Ie,je,De=new Map,Ye=!1,Ve=new Map;class ze extends Jt{constructor(){super(...arguments),xe.set(this,void 0)}get connectedCountKey(){}allDisconnectedCallback(){}connectedCallback(){var t;super.connectedCallback(),b(this,xe,null!==(t=this.connectedCountKey)&&void 0!==t?t:this),Ve.set(w(this,xe),1+(Ve.get(w(this,xe))||0))}disconnectedCallback(){var t;super.disconnectedCallback();var e=((null==Ve?void 0:Ve.get(w(this,xe)))||0)-1;e>0?Ve.set(w(this,xe),e):(Ve.delete(w(this,xe)),null===(t=this.allDisconnectedCallback)||void 0===t||t.call(this))}}xe=new WeakMap,function(t){t.Top="top",t.Bottom="bottom"}(Ie||(Ie={})),function(t){t[t.PaymentRequired=1]="PaymentRequired",t[t.CryptoRequired=2]="CryptoRequired",t[t.Generic=3]="Generic"}(je||(je={}));var qe=new q("clap-button"),We=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];t.classList.remove(...n),t.offsetWidth,t.classList.add(...n)},Fe=t=>{var e=new URL(t);return e.hash="",e.search="",e.href},He=class extends Jt{};He=g([Vt("clap-config")],He);var $e=class extends Jt{constructor(){super(...arguments),this.at=1}};g([qt({type:Number,reflect:!0})],$e.prototype,"at",void 0),$e=g([Vt("clap-text")],$e);var Je,Ge=Oe=class extends ze{constructor(){super(...arguments),this.textPlacement=Ie.Bottom,this.noWave=!1,this.messages=!1,this.uiClaps=0,this.bufferedClaps=0,this.loading=!1,this.clapped=!1,this.clicking=!1,this.ready=!1,this.error=null,this.isIntersecting=!1,Te.set(this,void 0),ke.set(this,void 0),Re.set(this,void 0),Ue.set(this,new BroadcastChannel("clap-button")),Le.set(this,Math.trunc(1e9*Math.random())),Me.set(this,t=>{0===t.button&&(t.preventDefault(),this.clapped=!0,this.clicking=!0,this.bufferedClaps++,We(this.styleRoot,"clap","ticking"),w(this,Ne).call(this),this.uiClaps=this.bufferedClaps)}),Ne.set(this,((t,e)=>{var n;return function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];clearTimeout(n),n=setTimeout(()=>t(...r),3e3)}})(()=>m(this,void 0,void 0,(function*(){var t,e=this.bufferedClaps;this.bufferedClaps=0,this.loading=!0;var{href:n,id:r,nonce:i}=yield((t,e)=>m(void 0,void 0,void 0,(function*(){var n=new URL(e);n.search="";var r=new ge,i=yield Ae({url:n,claps:t,id:r});return{href:n.href,id:r,nonce:i}})))(e,this.canonical),{claps:o}=yield((t,e,n,r,i)=>m(void 0,void 0,void 0,(function*(){var o,s=Ee("/claps",{href:e},Pe),a=yield fetch(s,{method:"POST",body:JSON.stringify({claps:t,id:r,nonce:i}),mode:"cors",credentials:"include",headers:{accept:"application/json","content-type":"application/json;charset=UTF-8"}});if(a.ok&&(null===(o=a.headers.get("Content-Type"))||void 0===o?void 0:o.includes("json")))return De.delete(n),a.clone().json();throw Error()})))(e,n,this.parentHref,r,i);this.loading=!1,this.clicking=!1,this.styleRoot.classList.remove("ticking"),We(this.styleRoot,"clap"),w(this,Ue).postMessage({btnId:w(this,Le),claps:e,totalClaps:o,href:n}),setTimeout(()=>{this.uiClaps=o},250);var s=null!==(t=yield qe.get(n))&&void 0!==t?t:{claps:0};yield qe.set(n,Object.assign(Object.assign({},s),{claps:s.claps+e}))})))),Be.set(this,t=>{var{data:{href:e,claps:n,btnId:r}}=t;r!==w(this,Le)&&[e,Fe(e)].includes(this.canonical)&&(this.clapped=!0,this.uiClaps+=n,We(this.styleRoot,"clap"))})}get canonical(){return w(this,Te)||(()=>{var t=this.href||this.url||"",e=this.ownerDocument.head.querySelector("link[rel=canonical]"),n=null!=e?new URL(e.href):this.ownerDocument.location;return b(this,Te,new URL(t,n.href).href)})()}get parentHref(){return w(this,ke)||(()=>b(this,ke,Fe(this.canonical)))()}get referrer(){var t=new URLSearchParams(this.ownerDocument.location.search);return t.get("referrer")||t.get("referer")||this.ownerDocument.referrer}connectedCallback(){var t,e;if(super.connectedCallback(),"crypto"in window&&"subtle"in window.crypto&&"digest"in window.crypto.subtle){w(this,Ue).addEventListener("message",w(this,Be)),Oe.intersectionObserver.observe(this);var n=Array.from(null!==(e=null===(t=this.ownerDocument.querySelector("clap-config"))||void 0===t?void 0:t.querySelectorAll("clap-text"))&&void 0!==e?e:[]);b(this,Re,new Map(null==n?void 0:n.map(t=>[t.at,t.innerHTML]).sort((t,e)=>{var[n]=t,[r]=e;return r-n}))),(()=>{m(this,void 0,void 0,(function*(){this.loading=!0,this.clapped=null!=(yield qe.get(this.canonical));try{var{claps:t}=yield(e=this.canonical,n=this.parentHref,r=this.referrer,m(void 0,void 0,void 0,(function*(){var t=De.get(n);return t||De.set(n,t=De.get(n)||m(void 0,void 0,void 0,(function*(){var t,e=Ee("/views",Object.assign({href:n},r&&!Ye?{referrer:r}:{}),Pe),i=yield fetch(e,{method:"POST",body:null,mode:"cors",credentials:"include",headers:{accept:"application/json"}});if(Ye=!0,i.ok&&(null===(t=i.headers.get("Content-Type"))||void 0===t?void 0:t.includes("json")))return yield i.json();if(404===i.status)return{};throw 402===i.status?i:(De.delete(n),Error())}))),(yield t)[e]||{claps:0}})));this.loading=!1,this.ready=!0,this.uiClaps=t}catch(e){this.loading=!1,this.ready=!1,this.error=402===e.status?je.PaymentRequired:je.Generic}var e,n,r}))})()}else this.error=je.CryptoRequired}disconnectedCallback(){super.disconnectedCallback(),Oe.intersectionObserver.unobserve(this),w(this,Ue).removeEventListener("message",w(this,Be))}get connectedCountKey(){return this.parentHref}allDisconnectedCallback(){var t;t=this.parentHref,De.delete(t)}render(){var t,e,n,r=Ut(f()),d=Ut(h()),p=this.bufferedClaps,v=5+p,y=300*(1-Math.pow(Math.E,-p/15)),g=Ut(c(),ae([...new Array(v).keys()],t=>t,t=>Ut(l(),Qt({transform:"rotate(".concat(Math.floor(360/v*t),"deg) translateX(10px)")}),Qt({animationDelay:Math.floor(Math.random()*y)+"ms"}))));return Rt(u(),Kt({"style-root":!0,loading:this.loading,clapped:this.clapped,"no-shockwave":this.noWave||!this.ready,"no-animation":!this.isIntersecting}),Qt(Object.assign({},null!=this.error?{"--clap-button-color":"indianred"}:{})),Kt({"count-container":!0,"container-top":this.textPlacement===Ie.Top,"container-bottom":this.textPlacement===Ie.Bottom}),this.clicking?"+":"",this.ready?null!=(n=this.uiClaps)?n.toLocaleString("en"):"":"",this.error===je.PaymentRequired?Rt(a(),"https://getclaps.dev"):null,this.error===je.CryptoRequired?Rt(s()):null,this.error===je.Generic?Rt(o()):null,Kt({"count-container":!0,"container-top":this.textPlacement===Ie.Bottom,"container-bottom":this.textPlacement===Ie.Top}),this.messages?Rt(i(),this.clicking?le(null!==(e=null===(t=[...w(this,Re)].find(t=>{var[e]=t;return this.uiClaps>=e}))||void 0===t?void 0:t[1])&&void 0!==e?e:""):""):null,r,g,d,this.loading||!this.ready,this.loading||!this.ready?null:w(this,Me),this.loading||!this.ready?null:w(this,Me))}};Te=new WeakMap,ke=new WeakMap,Re=new WeakMap,Ue=new WeakMap,Le=new WeakMap,Me=new WeakMap,Ne=new WeakMap,Be=new WeakMap,Ge.styles=ce,Ge.intersectionObserver=new IntersectionObserver(t=>{t.forEach(t=>t.target.isIntersecting=t.isIntersecting)}),g([(Je=".style-root",(t,e)=>{var n={get(){return this.renderRoot.querySelector(Je)},enumerable:!0,configurable:!0};return void 0!==e?((t,e,n)=>{Object.defineProperty(e,n,t)})(n,t,e):((t,e)=>({kind:"method",placement:"prototype",key:e.key,descriptor:t}
|
204
|
-
/**
|
205
|
-
@license
|
206
|
-
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
|
207
|
-
This code may only be used under the BSD style license found at
|
208
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
209
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
210
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
211
|
-
part of the polymer project is also subject to an additional IP rights grant
|
212
|
-
found at http://polymer.github.io/PATENTS.txt
|
213
|
-
*/))(n,t)})],Ge.prototype,"styleRoot",void 0),g([qt({type:String,reflect:!0,attribute:"text-placement"})],Ge.prototype,"textPlacement",void 0),g([qt({type:Boolean,reflect:!0})],Ge.prototype,"noWave",void 0),g([qt({type:Boolean,reflect:!0})],Ge.prototype,"messages",void 0),g([qt({type:String,reflect:!1})],Ge.prototype,"href",void 0),g([qt({type:String,reflect:!1})],Ge.prototype,"url",void 0),g([qt()],Ge.prototype,"uiClaps",void 0),g([qt()],Ge.prototype,"bufferedClaps",void 0),g([qt()],Ge.prototype,"loading",void 0),g([qt()],Ge.prototype,"clapped",void 0),g([qt()],Ge.prototype,"clicking",void 0),g([qt()],Ge.prototype,"ready",void 0),g([qt()],Ge.prototype,"error",void 0),g([qt()],Ge.prototype,"isIntersecting",void 0),Ge=Oe=g([Vt("clap-button")],Ge)}.call(this,n(169),n(187).Buffer)},187:function(t,e,n){"use strict";(function(t){
|
214
|
-
/*!
|
215
|
-
* The buffer module from node.js, for the browser.
|
216
|
-
*
|
217
|
-
* @author Feross Aboukhadijeh <http://feross.org>
|
218
|
-
* @license MIT
|
219
|
-
*/
|
220
|
-
var r=n(188),i=n(189),o=n(190);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=f(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=a(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|d(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?a(t,0):f(t,e);if("Buffer"===e.type&&o(e.data))return f(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(c(e),t=a(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|d(e.length);t=a(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(t).length;default:if(r)return Y(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return x(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return P(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){var o,s=1,a=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var c=-1;for(o=n;o<a;o++)if(l(t,o)===l(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(l(t,o+f)!==l(e,f)){h=!1;break}if(h)return o}return-1}function w(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function b(t,e,n,r){return z(Y(e,t.length-n),t,n,r)}function _(t,e,n,r){return z(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function S(t,e,n,r){return _(t,e,n,r)}function C(t,e,n,r){return z(V(e),t,n,r)}function A(t,e,n,r){return z(function(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function P(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,s,a,u,l=t[i],c=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return l(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return c(e),e<=0?a(t,e):void 0!==n?"string"==typeof r?a(t,e).fill(n,r):a(t,e).fill(n):a(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?E(this,0,t):v.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(r,i),c=t.slice(e,n),h=0;h<a;++h)if(l[h]!==c[h]){o=l[h],s=c[h];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return S(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function x(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function k(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=D(t[o]);return i}function R(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function U(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function M(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function N(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function B(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(t,e,n,r,o){return o||B(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function I(t,e,n,r,o){return o||B(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||U(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||U(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||U(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||U(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||U(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||U(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||U(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||U(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||U(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||U(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||U(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||U(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||U(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||U(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return O(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return O(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return I(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return I(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=u.isBuffer(t)?t:Y(new u(t,r).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function D(t){return t<16?"0"+t.toString(16):t.toString(16)}function Y(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(169))},188:function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=l(t),s=r[0],a=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),c=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[c++]=255&e);1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(c(t,s,s+16383>a?a:s+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,o,s=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},189:function(t,e){
|
221
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
222
|
-
e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,l=u>>1,c=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+t[e+h],h+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+t[e+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=l}return(d?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,u,l=8*o-i-1,c=(1<<l)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[n+d]=255&s,d+=p,s/=256,l-=8);t[n+d-p]|=128*v}},190:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}}}]);
|
@@ -1,48 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* __ __ __ __
|
3
|
-
* /\ \/\ \ /\ \ __ /\ \
|
4
|
-
* \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
|
5
|
-
* \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
|
6
|
-
* \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
|
7
|
-
* \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
|
8
|
-
* \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
|
9
|
-
* /\___/ \ \____/
|
10
|
-
* \/__/ \/___/
|
11
|
-
*
|
12
|
-
* Powered by Hydejack v9.1.1 <https://hydejack.com/>
|
13
|
-
*/
|
14
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{200:function(e,t,n){"use strict";n.r(t),n.d(t,"HyDrawer",(function(){return ie}));var i=n(1),r=n(179),a=n(166);
|
15
|
-
/**
|
16
|
-
* @license
|
17
|
-
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
18
|
-
* This code may only be used under the BSD style license found at
|
19
|
-
* http://polymer.github.io/LICENSE.txt
|
20
|
-
* The complete set of authors may be found at
|
21
|
-
* http://polymer.github.io/AUTHORS.txt
|
22
|
-
* The complete set of contributors may be found at
|
23
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
24
|
-
* Code distributed by Google as part of the polymer project is also
|
25
|
-
* subject to an additional IP rights grant found at
|
26
|
-
* http://polymer.github.io/PATENTS.txt
|
27
|
-
*/
|
28
|
-
class s{constructor(e){this.classes=new Set,this.changed=!1,this.element=e;var t=(e.getAttribute("class")||"").split(/\s+/);for(var n of t)this.classes.add(n)}add(e){this.classes.add(e),this.changed=!0}remove(e){this.classes.delete(e),this.changed=!0}commit(){if(this.changed){var e="";this.classes.forEach(t=>e+=t+" "),this.element.setAttribute("class",e)}}}var c=new WeakMap,o=Object(a.c)(e=>t=>{if(!(t instanceof a.a)||t instanceof a.b||"class"!==t.committer.name||t.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");var{committer:n}=t,{element:i}=n,r=c.get(t);void 0===r&&(i.setAttribute("class",n.strings.join(" ")),c.set(t,r=new Set));var o=i.classList||new s(i);for(var l in r.forEach(t=>{t in e||(o.remove(t),r.delete(t))}),e){var b=e[l];b!=r.has(l)&&(b?(o.add(l),r.add(l)):(o.remove(l),r.delete(l)))}"function"==typeof o.commit&&o.commit()}),l=new WeakMap,b=Object(a.c)(e=>t=>{if(!(t instanceof a.a)||t instanceof a.b||"style"!==t.committer.name||t.committer.parts.length>1)throw new Error("The `styleMap` directive must be used in the style attribute and must be the only part in the attribute.");var{committer:n}=t,{style:i}=n.element,r=l.get(t);for(var s in void 0===r&&(i.cssText=n.strings.join(" "),l.set(t,r=new Set)),r.forEach(t=>{t in e||(r.delete(t),-1===t.indexOf("-")?i[t]=null:i.removeProperty(t))}),e)r.add(s),-1===s.indexOf("-")?i[s]=e[s]:i.setProperty(s,e[s])}),h=n(205),p=n(215),u=n(184),d=n(162),v=n(97),O=n(208),j=n(174),f=n(25),g=n(202),m=n(98),w=n(99),y=n(4),E=n(16),x=n(3);var k=n(90);var S=n(185),C=n(95),M=n(183),z=n(96),X=n(206),$=n(207);var D=n(164),I=n(70);function T(e,t,n,i){return n*Math.sin(e/i*(Math.PI/2))+t}function W(e){return("ResizeObserver"in window?Object(D.e)(e):Object(I.a)({contentRect:{width:e.clientWidth}})).pipe(Object(f.a)(e=>{var{contentRect:{width:t}}=e;return t}))}var A={fromAttribute:e=>(null!=e?e:"").replace(/[\[\]]/g,"").split(",").map(Number),toAttribute:e=>e.join(",")};var P=n(182),Y=n(204);var R=Math.abs.bind(Math);class B{getStartObservable(){return Object(p.a)([this.$.mouseEvents]).pipe(Object(z.a)(e=>{var[t]=e,n=Object(d.a)(document,"touchstart",{passive:!0}).pipe(Object(C.a)(e=>{var{touches:t}=e;return 1===t.length}),Object(f.a)(e=>{var{touches:t}=e;return t[0]})),i=t?Object(d.a)(document,"mousedown").pipe(Object(f.a)(e=>(e.event=e,e))):v.a;return Object(u.a)(n,i)}))}getMoveObservable(e,t){return Object(p.a)([this.$.mouseEvents,this.$.preventDefault]).pipe(Object(z.a)(n=>{var[i,r]=n,a=Object(d.a)(document,"touchmove",{passive:!r}).pipe(Object(f.a)(e=>(e.touches[0].event=e,e.touches[0]))),s=i?Object(d.a)(document,"mousemove",{passive:!r}).pipe(Object(D.l)(Object(u.a)(e.pipe(Object(P.a)(!0)),t.pipe(Object(P.a)(!1)))),Object(f.a)(e=>(e.event=e,e))):v.a;return Object(u.a)(a,s)}))}getEndObservable(){return Object(p.a)([this.$.mouseEvents]).pipe(Object(z.a)(e=>{var[t]=e,n=Object(d.a)(document,"touchend",{passive:!0}).pipe(Object(C.a)(e=>{var{touches:t}=e;return 0===t.length}),Object(f.a)(e=>e.changedTouches[0])),i=t?Object(d.a)(document,"mouseup",{passive:!0}).pipe(Object(f.a)(e=>(e.event=e,e))):v.a;return Object(u.a)(n,i)}))}getIsSlidingObservable(e,t,n){return this.getIsSlidingObservableInner(e,t).pipe(Object(Y.a)(1),Object(M.a)(void 0),(i=()=>n,Object(y.b)((function(e,t){var n,r,a=!1,s=!1,c=!1,o=function(){return c&&s&&(t.complete(),!0)},l=function(){return r||(r=new j.a,i(r).subscribe(new x.a(t,(function(){n?b():a=!0}),void 0,(function(){s=!0,o()})))),r},b=function i(){c=!1,n=e.subscribe(new x.a(t,void 0,void 0,(function(){c=!0,!o()&&l().next()}))),a&&(n.unsubscribe(),n=null,a=!1,i())};b()}))));var i}getIsSlidingObservableInner(e,t){return this.threshold?e.pipe(Object(m.a)(t),(n=e=>{var[{clientX:t,clientY:n},{clientX:i,clientY:r}]=e;return R(r-n)<this.threshold&&R(i-t)<this.threshold},Object(y.b)((function(e,t){var i=!1,r=0;e.subscribe(new x.a(t,(function(e){return(i||(i=!n(e,r++)))&&t.next(e)})))}))),Object(f.a)(e=>{var[{clientX:t,clientY:n},{clientX:i,clientY:r}]=e;return R(i-t)>=R(r-n)})):e.pipe(Object(m.a)(t),Object(f.a)(e=>{var[{clientX:t,clientY:n,event:i},{clientX:r,clientY:a}]=e,s=R(r-t)>=R(a-n);return this.noScroll&&s&&i&&i.preventDefault(),s}));var n}}var _=Math.min.bind(Math),F=Math.max.bind(Math);class J{calcIsInRange(e,t){var{clientX:n}=e;switch(this.side){case"left":var[i,r]=this.range;return n>i&&(t||n<r);case"right":var a=window.innerWidth-this.range[0],s=window.innerWidth-this.range[1];return n<a&&(t||n>s);default:throw Error()}}calcIsSwipe(e,t,n,i,r){var{clientX:a}=e,{clientX:s}=t;return s!==a||n>0&&n<i}calcWillOpen(e,t,n,i,r){switch(this.side){case"left":return r>.15||!(r<-.15)&&n>=i/2;case"right":return-r>.15||!(-r<-.15)&&n<=-i/2;default:throw Error()}}calcTranslateX(e,t,n,i){var{clientX:r}=e,{clientX:a}=t;switch(this.side){case"left":return F(0,_(i,n+(r-a)));case"right":return _(0,F(-i,n+(r-a)));default:throw Error()}}}class N{updateDOM(e,t){var n=e/t*("left"===this.side?1:-1)||0;this.translateX=e,this.opacity=n,this.updater.updateDOM(e,n)}}class U{constructor(e){this.parent=e}static getUpdaterForPlatform(e){return"attributeStyleMap"in Element.prototype&&"CSS"in window&&"number"in CSS?new L(e):new H(e)}get contentEl(){return this.parent.contentEl}get scrimEl(){return this.parent.scrimEl}}class H extends U{constructor(e){super(e)}updateDOM(e,t){this.contentEl.style.transform="translate(".concat(e,"px, 0px)"),this.scrimEl.style.opacity="".concat(t)}}class L extends U{constructor(e){super(e),this.tvalue=new CSSTransformValue([new CSSTranslate(CSS.px(0),CSS.px(0))]),this.ovalue=CSS.number(1)}updateDOM(e,t){this.tvalue[0].x.value=e,this.ovalue.value=t,this.contentEl.attributeStyleMap.set("transform",this.tvalue),this.scrimEl.attributeStyleMap.set("opacity",this.ovalue)}}function V(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n @media screen {\n :host {\n touch-action: pan-x;\n }\n\n .full-screen {\n position: fixed;\n top: 0;\n left: 0;\n height: 100vh;\n width: 100vw;\n }\n\n .full-height {\n position: fixed;\n top: 0;\n height: 100vh;\n }\n\n .peek {\n left: 0;\n width: var(--hy-drawer-peek-width, 0px);\n visibility: hidden;\n z-index: calc(var(--hy-drawer-z-index, 100) - 1);\n }\n\n .scrim {\n position: fixed;\n top: 0;\n left: 0;\n height: 10vh;\n width: 10vw;\n transform: scale(10);\n transform-origin: top left;\n opacity: 0;\n pointer-events: none;\n background: var(--hy-drawer-scrim-background, rgba(0, 0, 0, 0.5));\n z-index: var(--hy-drawer-z-index, 100);\n -webkit-tap-highlight-color: transparent;\n }\n\n .range {\n position: fixed;\n top: 0;\n height: 100vh;\n z-index: calc(var(--hy-drawer-z-index, 100) + 1);\n }\n\n .grabbing-screen {\n cursor: grabbing;\n z-index: calc(var(--hy-drawer-z-index, 100) + 2);\n }\n\n .wrapper {\n width: var(--hy-drawer-width, 300px);\n background: var(--hy-drawer-background, inherit);\n box-shadow: var(--hy-drawer-box-shadow, 0 0 15px rgba(0, 0, 0, 0.25));\n z-index: calc(var(--hy-drawer-z-index, 100) + 3);\n contain: strict;\n }\n\n .wrapper.left {\n left: calc(-1 * var(--hy-drawer-width, 300px) + var(--hy-drawer-peek-width, 0px));\n }\n\n .wrapper.right {\n right: calc(-1 * var(--hy-drawer-width, 300px) + var(--hy-drawer-peek-width, 0px));\n }\n\n .wrapper > .overflow {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow-x: hidden;\n overflow-y: auto;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n }\n\n .grab {\n cursor: move;\n cursor: grab;\n }\n\n .grabbing {\n cursor: grabbing;\n }\n }\n\n @media print {\n .scrim {\n display: none !important;\n }\n\n .wrapper {\n transform: none !important;\n }\n }\n"]);return V=function(){return e},e}var q,G,K,Q,Z=Object(r.b)(V());function ee(){var e=ne(['<div class="grabbing-screen full-screen"></div>']);return ee=function(){return e},e}function te(){var e=ne(['\n <div class="peek full-height"></div>\n <div\n class="scrim"\n style=',">\n </div>\n ","\n <div\n class=","\n style=",'\n >\n <div class="overflow">\n <slot></slot>\n </div>\n </div>\n ']);return te=function(){return e},e}function ne(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}
|
29
|
-
/**
|
30
|
-
* Copyright (c) 2020 Florian Klampfer <https://qwtel.com/>
|
31
|
-
*
|
32
|
-
* This program is free software: you can redistribute it and/or modify
|
33
|
-
* it under the terms of the GNU General Public License as published by
|
34
|
-
* the Free Software Foundation, either version 3 of the License, or
|
35
|
-
* (at your option) any later version.
|
36
|
-
*
|
37
|
-
* This program is distributed in the hope that it will be useful,
|
38
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
39
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
40
|
-
* GNU General Public License for more details.
|
41
|
-
*
|
42
|
-
* You should have received a copy of the GNU General Public License
|
43
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
44
|
-
*
|
45
|
-
* @license
|
46
|
-
* @nocompile
|
47
|
-
*/
|
48
|
-
var ie=class extends(Object(D.b)(D.a,[B,N,J])){constructor(){super(...arguments),this.opened=!1,this.side="left",this.persistent=!1,this.threshold=10,this.noScroll=!1,this.mouseEvents=!1,this.range=[0,100],this.willChange=!1,q.set(this,Object(D.f)()),G.set(this,void 0),K.set(this,void 0),Q.set(this,void 0),this.upgrade=()=>{var e,t=this.getDrawerWidth(),n=this.$.persistent.pipe(Object(f.a)(e=>!e)),r=this.getStartObservable().pipe(Object(D.h)(n),Object(g.a)()),a=Object(h.a)(()=>Object(i.c)(this,G).pipe(Object(f.a)(e=>0!==e))),s=r.pipe(Object(m.a)(a),Object(f.a)(e=>this.calcIsInRange(...e)),Object(w.a)(e=>{e&&(this.willChange=!0,this.fireEvent("prepare"))}),Object(g.a)()),c=this.getEndObservable().pipe(Object(D.h)(n,s),Object(w.a)(()=>{this.mouseEvents&&(this.grabbing=!1)}),Object(g.a)()),o=this.getMoveObservable(r,c).pipe(Object(D.h)(n,s),Object(g.a)()),l=this.getIsSlidingObservable(o,r,c).pipe(Object(w.a)(e=>{this.isSliding=e,e&&this.mouseEvents&&(this.grabbing=!0)})),b=Object(i.d)(this,G,Object(h.a)(()=>{var e=Object(p.a)([this.$.opened,this.$.side,t]).pipe(Object(f.a)(e=>{var[t,n,i]=e;return t?i*("left"===n?1:-1):0})),n=o.pipe(Object(D.h)(l),Object(w.a)(()=>this.scrimClickable=!1),Object(w.a)(e=>{var{event:t}=e;return t&&this.noScroll&&t.preventDefault()}),Object(m.a)(r,Object(i.c)(this,K),t),Object(f.a)(e=>this.calcTranslateX(...e)));return Object(u.a)(Object(i.c)(this,Q),e,n)}).pipe(Object(g.a)()));Object(i.d)(this,K,b.pipe((e=r,Object(y.b)((function(t,n){var i=!1,r=null;t.subscribe(new x.a(n,(function(e){i=!0,r=e}))),e.subscribe(new x.a(n,(function(){if(i){i=!1;var e=r;r=null,n.next(e)}}),void 0,E.a))})))));var O,j=b.pipe((void 0===O&&(O=k.a),Object(f.a)((function(e){return{value:e,timestamp:O.now()}}))),Object(S.a)(),Object(C.a)(e=>{var[{timestamp:t},{timestamp:n}]=e;return n-t>0}),Object(f.a)(e=>{var[{value:t,timestamp:n},{value:i,timestamp:r}]=e;return(i-t)/(r-n)}),Object(M.a)(0)),I=c.pipe(Object(m.a)(r,b,t,j),Object(C.a)(e=>this.calcIsSwipe(...e)),Object(f.a)(e=>this.calcWillOpen(...e))),W=this.animateTo$.pipe(Object(w.a)(()=>{this.willChange=!0,this.fireEvent("prepare")}));Object(i.d)(this,Q,Object(u.a)(I,W).pipe(Object(m.a)(b,t),Object(z.a)(e=>{var t,[n,i,a]=e,s="left"===this.side?1:-1,c=(n?a*s:0)-i,o=Math.ceil(200+.15*a);return Object(D.m)(T,i,c,o).pipe(Object(X.a)(()=>{this.transitioned(n)}),Object($.a)(r),Object($.a)(this.$.side.pipe((t=1,Object(C.a)((function(e,n){return t<=n}))))),Object(g.a)())}))),b.pipe(Object(m.a)(t),Object(w.a)(e=>{this.updateDOM(...e);var{translateX:t,opacity:n}=this;this.fireEvent("move",{detail:{translateX:t,opacity:n},bubbles:!1})})).subscribe(),Object(d.a)(this.scrimEl,"click").pipe(Object(w.a)(()=>this.close())).subscribe(),n.pipe(Object(w.a)(e=>{this.scrimEl.style.display=e?"block":"none"})).subscribe(),this.$.mouseEvents.pipe(Object(z.a)(e=>e?r.pipe(Object(m.a)(s)):v.a),Object(C.a)(e=>{var[t,n]=e;return n&&null!=t.event}),Object(w.a)(e=>{var[{event:t}]=e;return t&&t.preventDefault()})).subscribe(),this.fireEvent("init",{detail:this.opened}),Object(i.c)(this,q).resolve(this)},this.transitioned=e=>{this.opened=this.scrimClickable=e,this.willChange=!1,this.fireEvent("transitioned",{detail:e})}}get initialized(){return Object(i.c)(this,q)}getDrawerWidth(){var e=W(this.contentEl).pipe(Object(w.a)(e=>this.fireEvent("content-width-change",{detail:e}))),t=W(this.peekEl).pipe(Object(w.a)(e=>this.fireEvent("peek-width-change",{detail:e})));return Object(p.a)([e,t]).pipe(Object(f.a)(e=>{var[t,n]=e;return t-n}),Object(g.a)())}connectedCallback(){super.connectedCallback(),this.$={opened:new O.a(this.opened),side:new O.a(this.side),persistent:new O.a(this.persistent),preventDefault:new O.a(this.noScroll),mouseEvents:new O.a(this.mouseEvents)},this.scrimClickable=this.opened,this.animateTo$=new j.a,this.updater=U.getUpdaterForPlatform(this),this.updateComplete.then(this.upgrade)}render(){return Object(r.d)(te(),b({willChange:this.willChange?"opacity":"",pointerEvents:this.scrimClickable?"all":""}),this.mouseEvents&&this.grabbing&&!this.scrimClickable?Object(r.d)(ee()):null,o({wrapper:!0,"full-height":!0,[this.side]:!0,grab:this.mouseEvents,grabbing:this.mouseEvents&&this.grabbing}),b({willChange:this.willChange?"transform":""}))}open(){this.animateTo$.next(!0)}close(){this.animateTo$.next(!1)}toggle(){this.animateTo$.next(!this.opened)}};q=new WeakMap,G=new WeakMap,K=new WeakMap,Q=new WeakMap,ie.styles=Z,Object(i.e)([Object(r.f)(".scrim")],ie.prototype,"scrimEl",void 0),Object(i.e)([Object(r.f)(".wrapper")],ie.prototype,"contentEl",void 0),Object(i.e)([Object(r.f)(".peek")],ie.prototype,"peekEl",void 0),Object(i.e)([Object(r.e)({type:Boolean,reflect:!0})],ie.prototype,"opened",void 0),Object(i.e)([Object(r.e)({type:String,reflect:!0})],ie.prototype,"side",void 0),Object(i.e)([Object(r.e)({type:Boolean,reflect:!0})],ie.prototype,"persistent",void 0),Object(i.e)([Object(r.e)({type:Number,reflect:!0})],ie.prototype,"threshold",void 0),Object(i.e)([Object(r.e)({type:Boolean,reflect:!0})],ie.prototype,"noScroll",void 0),Object(i.e)([Object(r.e)({type:Boolean,reflect:!0})],ie.prototype,"mouseEvents",void 0),Object(i.e)([Object(r.e)({reflect:!0,converter:A,hasChanged:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>e!==t[n])}})],ie.prototype,"range",void 0),Object(i.e)([Object(r.e)()],ie.prototype,"scrimClickable",void 0),Object(i.e)([Object(r.e)()],ie.prototype,"grabbing",void 0),Object(i.e)([Object(r.e)()],ie.prototype,"willChange",void 0),Object(i.e)([Object(r.e)()],ie.prototype,"open",null),Object(i.e)([Object(r.e)()],ie.prototype,"close",null),Object(i.e)([Object(r.e)()],ie.prototype,"toggle",null),ie=Object(i.e)([Object(r.c)("hy-drawer")],ie)},215:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var i=n(1),r=n(2),a=Array.isArray,s=Object.getPrototypeOf,c=Object.prototype,o=Object.keys;function l(e){if(1===e.length){var t=e[0];if(a(t))return{args:t,keys:null};if((i=t)&&"object"==typeof i&&s(i)===c){var n=o(t);return{args:n.map((function(e){return t[e]})),keys:n}}}var i;return{args:e,keys:null}}var b=n(40),h=n(11),p=n(20),u=n(91),d=n(27);function v(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(d.c)(e),i=Object(d.b)(e),a=l(e),s=a.args,c=a.keys,o=new r.a(j(s,n,c?function(e){for(var t={},n=0;n<e.length;n++)t[c[n]]=e[n];return t}:p.a));return i?o.pipe(Object(u.a)(i)):o}var O=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r._next=n,r.shouldComplete=i,r}return Object(i.f)(t,e),t.prototype._complete=function(){this.shouldComplete()?e.prototype._complete.call(this):this.unsubscribe()},t}(b.b);function j(e,t,n){return void 0===n&&(n=p.a),function(i){f(t,(function(){for(var r=e.length,a=new Array(r),s=r,c=e.map((function(){return!1})),o=!0,l=function(r){f(t,(function(){Object(h.a)(e[r],t).subscribe(new O(i,(function(e){a[r]=e,o&&(c[r]=!0,o=!c.every(p.a)),o||i.next(n(a.slice()))}),(function(){return 0==--s})))}),i)},b=0;b<r;b++)l(b)}),i)}}function f(e,t,n){e?n.add(e.schedule(t)):t()}},216:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(53),r=n(4),a=n(3),s=n(11),c={leading:!0,trailing:!1};var o=n(93);function l(e,t,n){void 0===t&&(t=i.b),void 0===n&&(n=c);var l,b,h,p,u,d=Object(o.a)(e,t);return l=function(){return d},p=(h=void 0===(b=n)?c:b).leading,u=h.trailing,Object(r.b)((function(e,t){var n=!1,i=null,r=null,c=!1,o=function(){null==r||r.unsubscribe(),r=null,u&&(d(),c&&t.complete())},b=function(){r=null,c&&t.complete()},h=function(e){return r=Object(s.c)(l(e)).subscribe(new a.a(t,o,void 0,b))},d=function(){n&&(t.next(i),!c&&h(i)),n=!1,i=null};e.subscribe(new a.a(t,(function(e){n=!0,i=e,(!r||r.closed)&&(p?d():h(e))}),void 0,(function(){c=!0,(!(u&&n&&r)||r.closed)&&t.complete()})))}))}}}]);
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* __ __ __ __
|
3
|
-
* /\ \/\ \ /\ \ __ /\ \
|
4
|
-
* \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
|
5
|
-
* \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
|
6
|
-
* \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
|
7
|
-
* \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
|
8
|
-
* \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
|
9
|
-
* /\___/ \ \____/
|
10
|
-
* \/__/ \/___/
|
11
|
-
*
|
12
|
-
* Powered by Hydejack v9.1.1 <https://hydejack.com/>
|
13
|
-
*/
|
14
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{169:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},196:function(t,e,r){"use strict";var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n&&n,o="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,s="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),a="FormData"in n,u="ArrayBuffer"in n;if(u)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(t){return t&&c.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function y(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function d(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function b(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function v(t){var e=new FileReader,r=b(e);return e.readAsArrayBuffer(t),r}function w(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:s&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():u&&s&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=w(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(t)||f(t))?this._bodyArrayBuffer=w(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=d(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(v)}),this.text=function(){var t,e,r,n=d(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=b(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(t,e){t=l(t),e=h(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},p.prototype.delete=function(t){delete this.map[l(t)]},p.prototype.get=function(t){return t=l(t),this.has(t)?this.map[t]:null},p.prototype.has=function(t){return this.map.hasOwnProperty(l(t))},p.prototype.set=function(t,e){this.map[l(t)]=h(e)},p.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},p.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),y(t)},p.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),y(t)},p.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),y(t)},i&&(p.prototype[Symbol.iterator]=p.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(t,e){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(e=e||{}).body;if(t instanceof O){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new p(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new p(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),g.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function _(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function E(t,e){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new p(e.headers),this.url=e.url||"",this._initBody(t)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},m.call(O.prototype),m.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},E.error=function(){var t=new E(null,{status:0,statusText:""});return t.type="error",t};var A=[301,302,303,307,308];E.redirect=function(t,e){if(-1===A.indexOf(e))throw new RangeError("Invalid status code");return new E(null,{status:e,headers:{location:t}})};var T=n.DOMException;try{new T}catch(t){(T=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),T.prototype.constructor=T}function P(t,e){return new Promise((function(r,o){var i=new O(t,e);if(i.signal&&i.signal.aborted)return o(new T("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,n={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new p,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;setTimeout((function(){r(new E(o,n))}),0)},a.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){o(new T("Aborted","AbortError"))}),0)},a.open(i.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&(s?a.responseType="blob":u&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof p?i.headers.forEach((function(t,e){a.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){a.setRequestHeader(t,h(e.headers[t]))})),i.signal&&(i.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",c)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}P.polyfill=!0,n.fetch||(n.fetch=P,n.Headers=p,n.Request=O,n.Response=E)},197:function(t,e,r){(function(n){var o,i;void 0===(i="function"==typeof(o=function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(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,n.key,n)}}function r(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?s(t):e}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=o(t);if(e){var i=o(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return a(this,r)}}function c(t,e,r){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=o(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(r):i.value}})(t,e,r||t)}var f=function(){function e(){t(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(e,[{key:"addEventListener",value:function(t,e,r){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push({callback:e,options:r})}},{key:"removeEventListener",value:function(t,e){if(t in this.listeners)for(var r=this.listeners[t],n=0,o=r.length;n<o;n++)if(r[n].callback===e)return void r.splice(n,1)}},{key:"dispatchEvent",value:function(t){if(t.type in this.listeners){for(var e=this.listeners[t.type].slice(),r=0,n=e.length;r<n;r++){var o=e[r];try{o.callback.call(this,t)}catch(t){Promise.resolve().then((function(){throw t}))}o.options&&o.options.once&&this.removeEventListener(t.type,o.callback)}return!t.defaultPrevented}}}]),e}(),l=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(a,e);var n=u(a);function a(){var e;return t(this,a),(e=n.call(this)).listeners||f.call(s(e)),Object.defineProperty(s(e),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(s(e),"onabort",{value:null,writable:!0,configurable:!0}),e}return r(a,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(t){"abort"===t.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,t)),c(o(a.prototype),"dispatchEvent",this).call(this,t)}}]),a}(f),h=function(){function e(){t(this,e),Object.defineProperty(this,"signal",{value:new l,writable:!0,configurable:!0})}return r(e,[{key:"abort",value:function(){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),e}();function y(t){return t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof t.Request&&!t.Request.prototype.hasOwnProperty("signal")||!t.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(h.prototype[Symbol.toStringTag]="AbortController",l.prototype[Symbol.toStringTag]="AbortSignal"),function(t){if(y(t))if(t.fetch){var e=function(t){"function"==typeof t&&(t={fetch:t});var e=t,r=e.fetch,n=e.Request,o=void 0===n?r.Request:n,i=e.AbortController,s=e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,a=void 0!==s&&s;if(!y({fetch:r,Request:o,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:a}))return{fetch:r,Request:u};var u=o;(u&&!u.prototype.hasOwnProperty("signal")||a)&&((u=function(t,e){var r;e&&e.signal&&(r=e.signal,delete e.signal);var n=new o(t,e);return r&&Object.defineProperty(n,"signal",{writable:!1,enumerable:!1,configurable:!0,value:r}),n}).prototype=o.prototype);var c=r;return{fetch:function(t,e){var r=u&&u.prototype.isPrototypeOf(t)?t.signal:e?e.signal:void 0;if(r){var n;try{n=new DOMException("Aborted","AbortError")}catch(t){(n=new Error("Aborted")).name="AbortError"}if(r.aborted)return Promise.reject(n);var o=new Promise((function(t,e){r.addEventListener("abort",(function(){return e(n)}),{once:!0})}));return e&&e.signal&&delete e.signal,Promise.race([o,c(t,e)])}return c(t,e)},Request:u}}(t),r=e.fetch,n=e.Request;t.fetch=r,t.Request=n,Object.defineProperty(t,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:h}),Object.defineProperty(t,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:l})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:n)})?o.call(e,r,e,t):o)||(t.exports=i)}).call(this,r(169))}}]);
|