summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-03-02 14:28:32 -0300
committerSebastian <sebasjm@gmail.com>2023-03-02 14:28:32 -0300
commit88f8e6f0775784b957f21a125b54cca15b207635 (patch)
tree10118178d942ec18e97e139ccd8c5425504abcb5 /backend
parent9e3cb2fb58889a6dd2ce2da8e25fd994640c4832 (diff)
downloadwallet-core-88f8e6f0775784b957f21a125b54cca15b207635.tar.gz
wallet-core-88f8e6f0775784b957f21a125b54cca15b207635.tar.bz2
wallet-core-88f8e6f0775784b957f21a125b54cca15b207635.zip
built from 36956f404cbf1ecc0f2fb320d4f3ab89a313c830
Diffstat (limited to 'backend')
-rw-r--r--backend/depleted_tip.en.html1332
-rw-r--r--backend/offer_refund.en.html3746
-rw-r--r--backend/offer_tip.en.html4975
-rw-r--r--backend/request_payment.en.html3789
-rw-r--r--backend/show_order_details.en.html4914
5 files changed, 156 insertions, 18600 deletions
diff --git a/backend/depleted_tip.en.html b/backend/depleted_tip.en.html
index 943ceb26c..59f6de7d6 100644
--- a/backend/depleted_tip.en.html
+++ b/backend/depleted_tip.en.html
@@ -1,9 +1,10 @@
-<!doctype html>
-<html>
- <head>
- <title>Status of your tip</title>
- <style>/*!
+ <!doctype html>
+ <html>
+ <head>
+ <title>Status of your tip</title>
+ <style>.q1ma0zxq{margin:auto;text-align:center;width:340px}.fef0x5t{text-align:center;background-color:#033;color:#fff;padding:1em;overflow:auto}.fef0x5t>p>a:link,.fef0x5t>p>a:visited,.fef0x5t>p>a:hover,.fef0x5t>p>a:active{color:#fff}.p1b3vqup{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:100vh;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.p1b3vqup a:link,.p1b3vqup a:visited,.p1b3vqup a:hover,.p1b3vqup a:active{color:#000}.p1b3vqup section{text-align:center;width:600px;margin-bottom:auto}.p1b3vqup section:not(:first-of-type){margin-top:2em}.p1b3vqup>header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:center}.p1b3vqup>footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;width:100%;margin-bottom:0}.c1gnd3xp{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.wpwjmk{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;text-transform:var(--wpwjmk-0);font-family:inherit;font-size:100%;padding:.5em 1em;color:#444;color:#000c;border:1px solid #999;border:none rgba(0,0,0,0);background-color:"#e6e6e6";-webkit-text-decoration:none;text-decoration:none;background-color:#e6e6e6;border-radius:4px;text-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.wpwjmk:focus{outline:0}.wpwjmk:disabled{border:none;background-image:none;-webkit-filter:alpha(opacity=40);filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.wpwjmk:hover{-webkit-filter:alpha(opacity=90);filter:alpha(opacity=90);background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.i1pkgksb{border-radius:.25em;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:1em;border:solid 1px #b8daff;background-color:#cce5ff;color:#004085}.t2c81u8{text-align:left}.t2c81u8 dt{font-weight:700;margin-top:1em}.t2c81u8 dd{margin-inline-start:0px}.t1mav7fx{text-align:left}.t1mav7fx dt{font-weight:700;display:inline-block;width:30%}.t1mav7fx dd{margin-inline-start:0px;display:inline-block;width:70%}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html{font-family:sans-serif}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}.pure-g{letter-spacing:-.31em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,Droid Sans,Helvetica,Arial,sans-serif;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-line-pack:start;align-content:flex-start}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-g [class*=pure-u]{font-family:sans-serif}.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}.pure-button{display:inline-block;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#000c;border:none transparent;background-color:#e6e6e6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{background-image:-webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(40%,rgba(0,0,0,.05)),to(rgba(0,0,0,.1)));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;opacity:.4;cursor:not-allowed;-webkit-box-shadow:none;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{margin:0;border-radius:0;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 3px #ddd;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 3px #ddd;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input[type=color]:focus,.pure-form input[type=date]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=email]:focus,.pure-form input[type=month]:focus,.pure-form input[type=number]:focus,.pure-form input[type=password]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=text]:focus,.pure-form input[type=time]:focus,.pure-form input[type=url]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129fea}.pure-form input:not([type]):focus{outline:0;border-color:#129fea}.pure-form input[type=checkbox]:focus,.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus{outline:thin solid #129fea;outline:1px auto #129fea}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input[type=color][disabled],.pure-form input[type=date][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=email][disabled],.pure-form input[type=month][disabled],.pure-form input[type=number][disabled],.pure-form input[type=password][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=text][disabled],.pure-form input[type=time][disabled],.pure-form input[type=url][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input:not([type])[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input[type=color],.pure-form-stacked input[type=date],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=email],.pure-form-stacked input[type=file],.pure-form-stacked input[type=month],.pure-form-stacked input[type=number],.pure-form-stacked input[type=password],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=text],.pure-form-stacked input[type=time],.pure-form-stacked input[type=url],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-stacked input:not([type]){display:block;margin:.25em 0}.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width: 480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=color],.pure-group input[type=date],.pure-group input[type=datetime-local],.pure-group input[type=datetime],.pure-group input[type=email],.pure-group input[type=month],.pure-group input[type=number],.pure-group input[type=password],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=text],.pure-group input[type=time],.pure-group input[type=url],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.pure-menu{-webkit-box-sizing:border-box;box-sizing:border-box}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;vertical-align:middle}.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25b8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25be"}.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;padding:.5em 0}.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected>.pure-menu-link,.pure-menu-selected>.pure-menu-link:visited{color:#000}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td{background-color:#f2f2f2}.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}.talerbar{text-align:center}.tt{font-family:Lucida Console,Monaco,monospace}.content{overflow-x:auto;padding-left:15%;padding-right:15%}.qr{margin:auto;text-align:center}.qrtext{width:max-content;margin:auto;transition:font-size .2s;font-family:Lucida Console,Monaco,monospace;font-size:.5em}.qrtext:hover{font-size:1em}.talerbar{margin:0;bottom:0;background-color:#033;color:#fff;width:100%;padding:1em;overflow:auto}body{overflow-y:scroll}@media (min-width: 500px){.content{padding-bottom:2em;overflow-y:auto}}#main a:link,#main a:visited,#main a:hover,#main a:active{color:#000}
+/*!
Pure v2.0.3
Copyright 2013 Yahoo!
Licensed under the BSD License.
@@ -14,968 +15,6 @@
Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
/*! normalize.cs s v8.0.1 | MIT License | github.com/necolas/normalize.cs s */
-
-.talerbar {
- text-align: center;
-}
-
-html {
- line-height: 1.15;
- -webkit-text-size-adjust: 100%;
-}
-body {
- margin: 0;
-}
-main {
- display: block;
-}
-h1 {
- font-size: 2em;
- margin: 0.67em 0;
-}
-hr {
- -webkit-box-sizing: content-box;
- box-sizing: content-box;
- height: 0;
- overflow: visible;
-}
-pre {
- font-family: monospace, monospace;
- font-size: 1em;
-}
-a {
- background-color: transparent;
-}
-abbr[title] {
- border-bottom: none;
- text-decoration: underline;
- -webkit-text-decoration: underline dotted;
- text-decoration: underline dotted;
-}
-b,
-strong {
- font-weight: bolder;
-}
-code,
-kbd,
-samp {
- font-family: monospace, monospace;
- font-size: 1em;
-}
-small {
- font-size: 80%;
-}
-sub,
-sup {
- font-size: 75%;
- line-height: 0;
- position: relative;
- vertical-align: baseline;
-}
-sub {
- bottom: -0.25em;
-}
-sup {
- top: -0.5em;
-}
-img {
- border-style: none;
-}
-button,
-input,
-optgroup,
-select,
-textarea {
- font-family: inherit;
- font-size: 100%;
- line-height: 1.15;
- margin: 0;
-}
-button,
-input {
- overflow: visible;
-}
-button,
-select {
- text-transform: none;
-}
-[type="button"],
-[type="reset"],
-[type="submit"],
-button {
- -webkit-appearance: button;
-}
-[type="button"]::-moz-focus-inner,
-[type="reset"]::-moz-focus-inner,
-[type="submit"]::-moz-focus-inner,
-button::-moz-focus-inner {
- border-style: none;
- padding: 0;
-}
-[type="button"]:-moz-focusring,
-[type="reset"]:-moz-focusring,
-[type="submit"]:-moz-focusring,
-button:-moz-focusring {
- outline: 1px dotted ButtonText;
-}
-fieldset {
- padding: 0.35em 0.75em 0.625em;
-}
-legend {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- color: inherit;
- display: table;
- max-width: 100%;
- padding: 0;
- white-space: normal;
-}
-progress {
- vertical-align: baseline;
-}
-textarea {
- overflow: auto;
-}
-[type="checkbox"],
-[type="radio"] {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- padding: 0;
-}
-[type="number"]::-webkit-inner-spin-button,
-[type="number"]::-webkit-outer-spin-button {
- height: auto;
-}
-[type="search"] {
- -webkit-appearance: textfield;
- outline-offset: -2px;
-}
-[type="search"]::-webkit-search-decoration {
- -webkit-appearance: none;
-}
-::-webkit-file-upload-button {
- -webkit-appearance: button;
- font: inherit;
-}
-details {
- display: block;
-}
-summary {
- display: list-item;
-}
-template {
- display: none;
-}
-[hidden] {
- display: none;
-}
-html {
- font-family: sans-serif;
-}
-.hidden,
-[hidden] {
- display: none !important;
-}
-.pure-img {
- max-width: 100%;
- height: auto;
- display: block;
-}
-.pure-g {
- letter-spacing: -0.31em;
- text-rendering: optimizespeed;
- font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-orient: horizontal;
- -webkit-box-direction: normal;
- -ms-flex-flow: row wrap;
- flex-flow: row wrap;
- -ms-flex-line-pack: start;
- align-content: flex-start;
-}
-@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
- table .pure-g {
- display: block;
- }
-}
-.opera-only :-o-prefocus,
-.pure-g {
- word-spacing: -0.43em;
-}
-.pure-u {
- display: inline-block;
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-g [class*="pure-u"] {
- font-family: sans-serif;
-}
-.pure-u-1,
-.pure-u-1-1,
-.pure-u-1-12,
-.pure-u-1-2,
-.pure-u-1-24,
-.pure-u-1-3,
-.pure-u-1-4,
-.pure-u-1-5,
-.pure-u-1-6,
-.pure-u-1-8,
-.pure-u-10-24,
-.pure-u-11-12,
-.pure-u-11-24,
-.pure-u-12-24,
-.pure-u-13-24,
-.pure-u-14-24,
-.pure-u-15-24,
-.pure-u-16-24,
-.pure-u-17-24,
-.pure-u-18-24,
-.pure-u-19-24,
-.pure-u-2-24,
-.pure-u-2-3,
-.pure-u-2-5,
-.pure-u-20-24,
-.pure-u-21-24,
-.pure-u-22-24,
-.pure-u-23-24,
-.pure-u-24-24,
-.pure-u-3-24,
-.pure-u-3-4,
-.pure-u-3-5,
-.pure-u-3-8,
-.pure-u-4-24,
-.pure-u-4-5,
-.pure-u-5-12,
-.pure-u-5-24,
-.pure-u-5-5,
-.pure-u-5-6,
-.pure-u-5-8,
-.pure-u-6-24,
-.pure-u-7-12,
-.pure-u-7-24,
-.pure-u-7-8,
-.pure-u-8-24,
-.pure-u-9-24 {
- display: inline-block;
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-u-1-24 {
- width: 4.1667%;
-}
-.pure-u-1-12,
-.pure-u-2-24 {
- width: 8.3333%;
-}
-.pure-u-1-8,
-.pure-u-3-24 {
- width: 12.5%;
-}
-.pure-u-1-6,
-.pure-u-4-24 {
- width: 16.6667%;
-}
-.pure-u-1-5 {
- width: 20%;
-}
-.pure-u-5-24 {
- width: 20.8333%;
-}
-.pure-u-1-4,
-.pure-u-6-24 {
- width: 25%;
-}
-.pure-u-7-24 {
- width: 29.1667%;
-}
-.pure-u-1-3,
-.pure-u-8-24 {
- width: 33.3333%;
-}
-.pure-u-3-8,
-.pure-u-9-24 {
- width: 37.5%;
-}
-.pure-u-2-5 {
- width: 40%;
-}
-.pure-u-10-24,
-.pure-u-5-12 {
- width: 41.6667%;
-}
-.pure-u-11-24 {
- width: 45.8333%;
-}
-.pure-u-1-2,
-.pure-u-12-24 {
- width: 50%;
-}
-.pure-u-13-24 {
- width: 54.1667%;
-}
-.pure-u-14-24,
-.pure-u-7-12 {
- width: 58.3333%;
-}
-.pure-u-3-5 {
- width: 60%;
-}
-.pure-u-15-24,
-.pure-u-5-8 {
- width: 62.5%;
-}
-.pure-u-16-24,
-.pure-u-2-3 {
- width: 66.6667%;
-}
-.pure-u-17-24 {
- width: 70.8333%;
-}
-.pure-u-18-24,
-.pure-u-3-4 {
- width: 75%;
-}
-.pure-u-19-24 {
- width: 79.1667%;
-}
-.pure-u-4-5 {
- width: 80%;
-}
-.pure-u-20-24,
-.pure-u-5-6 {
- width: 83.3333%;
-}
-.pure-u-21-24,
-.pure-u-7-8 {
- width: 87.5%;
-}
-.pure-u-11-12,
-.pure-u-22-24 {
- width: 91.6667%;
-}
-.pure-u-23-24 {
- width: 95.8333%;
-}
-.pure-u-1,
-.pure-u-1-1,
-.pure-u-24-24,
-.pure-u-5-5 {
- width: 100%;
-}
-.pure-button {
- display: inline-block;
- line-height: normal;
- white-space: nowrap;
- vertical-align: middle;
- text-align: center;
- cursor: pointer;
- -webkit-user-drag: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-button::-moz-focus-inner {
- padding: 0;
- border: 0;
-}
-.pure-button-group {
- letter-spacing: -0.31em;
- text-rendering: optimizespeed;
-}
-.opera-only :-o-prefocus,
-.pure-button-group {
- word-spacing: -0.43em;
-}
-.pure-button-group .pure-button {
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-button {
- font-family: inherit;
- font-size: 100%;
- padding: 0.5em 1em;
- color: rgba(0, 0, 0, 0.8);
- border: none transparent;
- background-color: #e6e6e6;
- text-decoration: none;
- border-radius: 2px;
-}
-.pure-button-hover,
-.pure-button:focus,
-.pure-button:hover {
- background-image: -webkit-gradient(
- linear,
- left top,
- left bottom,
- from(transparent),
- color-stop(40%, rgba(0, 0, 0, 0.05)),
- to(rgba(0, 0, 0, 0.1))
- );
- background-image: linear-gradient(
- transparent,
- rgba(0, 0, 0, 0.05) 40%,
- rgba(0, 0, 0, 0.1)
- );
-}
-.pure-button:focus {
- outline: 0;
-}
-.pure-button-active,
-.pure-button:active {
- -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset,
- 0 0 6px rgba(0, 0, 0, 0.2) inset;
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset,
- 0 0 6px rgba(0, 0, 0, 0.2) inset;
- border-color: #000;
-}
-.pure-button-disabled,
-.pure-button-disabled:active,
-.pure-button-disabled:focus,
-.pure-button-disabled:hover,
-.pure-button[disabled] {
- border: none;
- background-image: none;
- opacity: 0.4;
- cursor: not-allowed;
- -webkit-box-shadow: none;
- box-shadow: none;
- pointer-events: none;
-}
-.pure-button-hidden {
- display: none;
-}
-.pure-button-primary,
-.pure-button-selected,
-a.pure-button-primary,
-a.pure-button-selected {
- background-color: #0078e7;
- color: #fff;
-}
-.pure-button-group .pure-button {
- margin: 0;
- border-radius: 0;
- border-right: 1px solid rgba(0, 0, 0, 0.2);
-}
-.pure-button-group .pure-button:first-child {
- border-top-left-radius: 2px;
- border-bottom-left-radius: 2px;
-}
-.pure-button-group .pure-button:last-child {
- border-top-right-radius: 2px;
- border-bottom-right-radius: 2px;
- border-right: none;
-}
-.pure-form input[type="color"],
-.pure-form input[type="date"],
-.pure-form input[type="datetime-local"],
-.pure-form input[type="datetime"],
-.pure-form input[type="email"],
-.pure-form input[type="month"],
-.pure-form input[type="number"],
-.pure-form input[type="password"],
-.pure-form input[type="search"],
-.pure-form input[type="tel"],
-.pure-form input[type="text"],
-.pure-form input[type="time"],
-.pure-form input[type="url"],
-.pure-form input[type="week"],
-.pure-form select,
-.pure-form textarea {
- padding: 0.5em 0.6em;
- display: inline-block;
- border: 1px solid #ccc;
- -webkit-box-shadow: inset 0 1px 3px #ddd;
- box-shadow: inset 0 1px 3px #ddd;
- border-radius: 4px;
- vertical-align: middle;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-form input:not([type]) {
- padding: 0.5em 0.6em;
- display: inline-block;
- border: 1px solid #ccc;
- -webkit-box-shadow: inset 0 1px 3px #ddd;
- box-shadow: inset 0 1px 3px #ddd;
- border-radius: 4px;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-form input[type="color"] {
- padding: 0.2em 0.5em;
-}
-.pure-form input[type="color"]:focus,
-.pure-form input[type="date"]:focus,
-.pure-form input[type="datetime-local"]:focus,
-.pure-form input[type="datetime"]:focus,
-.pure-form input[type="email"]:focus,
-.pure-form input[type="month"]:focus,
-.pure-form input[type="number"]:focus,
-.pure-form input[type="password"]:focus,
-.pure-form input[type="search"]:focus,
-.pure-form input[type="tel"]:focus,
-.pure-form input[type="text"]:focus,
-.pure-form input[type="time"]:focus,
-.pure-form input[type="url"]:focus,
-.pure-form input[type="week"]:focus,
-.pure-form select:focus,
-.pure-form textarea:focus {
- outline: 0;
- border-color: #129fea;
-}
-.pure-form input:not([type]):focus {
- outline: 0;
- border-color: #129fea;
-}
-.pure-form input[type="checkbox"]:focus,
-.pure-form input[type="file"]:focus,
-.pure-form input[type="radio"]:focus {
- outline: thin solid #129fea;
- outline: 1px auto #129fea;
-}
-.pure-form .pure-checkbox,
-.pure-form .pure-radio {
- margin: 0.5em 0;
- display: block;
-}
-.pure-form input[type="color"][disabled],
-.pure-form input[type="date"][disabled],
-.pure-form input[type="datetime-local"][disabled],
-.pure-form input[type="datetime"][disabled],
-.pure-form input[type="email"][disabled],
-.pure-form input[type="month"][disabled],
-.pure-form input[type="number"][disabled],
-.pure-form input[type="password"][disabled],
-.pure-form input[type="search"][disabled],
-.pure-form input[type="tel"][disabled],
-.pure-form input[type="text"][disabled],
-.pure-form input[type="time"][disabled],
-.pure-form input[type="url"][disabled],
-.pure-form input[type="week"][disabled],
-.pure-form select[disabled],
-.pure-form textarea[disabled] {
- cursor: not-allowed;
- background-color: #eaeded;
- color: #cad2d3;
-}
-.pure-form input:not([type])[disabled] {
- cursor: not-allowed;
- background-color: #eaeded;
- color: #cad2d3;
-}
-.pure-form input[readonly],
-.pure-form select[readonly],
-.pure-form textarea[readonly] {
- background-color: #eee;
- color: #777;
- border-color: #ccc;
-}
-.pure-form input:focus:invalid,
-.pure-form select:focus:invalid,
-.pure-form textarea:focus:invalid {
- color: #b94a48;
- border-color: #e9322d;
-}
-.pure-form input[type="checkbox"]:focus:invalid:focus,
-.pure-form input[type="file"]:focus:invalid:focus,
-.pure-form input[type="radio"]:focus:invalid:focus {
- outline-color: #e9322d;
-}
-.pure-form select {
- height: 2.25em;
- border: 1px solid #ccc;
- background-color: #fff;
-}
-.pure-form select[multiple] {
- height: auto;
-}
-.pure-form label {
- margin: 0.5em 0 0.2em;
-}
-.pure-form fieldset {
- margin: 0;
- padding: 0.35em 0 0.75em;
- border: 0;
-}
-.pure-form legend {
- display: block;
- width: 100%;
- padding: 0.3em 0;
- margin-bottom: 0.3em;
- color: #333;
- border-bottom: 1px solid #e5e5e5;
-}
-.pure-form-stacked input[type="color"],
-.pure-form-stacked input[type="date"],
-.pure-form-stacked input[type="datetime-local"],
-.pure-form-stacked input[type="datetime"],
-.pure-form-stacked input[type="email"],
-.pure-form-stacked input[type="file"],
-.pure-form-stacked input[type="month"],
-.pure-form-stacked input[type="number"],
-.pure-form-stacked input[type="password"],
-.pure-form-stacked input[type="search"],
-.pure-form-stacked input[type="tel"],
-.pure-form-stacked input[type="text"],
-.pure-form-stacked input[type="time"],
-.pure-form-stacked input[type="url"],
-.pure-form-stacked input[type="week"],
-.pure-form-stacked label,
-.pure-form-stacked select,
-.pure-form-stacked textarea {
- display: block;
- margin: 0.25em 0;
-}
-.pure-form-stacked input:not([type]) {
- display: block;
- margin: 0.25em 0;
-}
-.pure-form-aligned input,
-.pure-form-aligned select,
-.pure-form-aligned textarea,
-.pure-form-message-inline {
- display: inline-block;
- vertical-align: middle;
-}
-.pure-form-aligned textarea {
- vertical-align: top;
-}
-.pure-form-aligned .pure-control-group {
- margin-bottom: 0.5em;
-}
-.pure-form-aligned .pure-control-group label {
- text-align: right;
- display: inline-block;
- vertical-align: middle;
- width: 10em;
- margin: 0 1em 0 0;
-}
-.pure-form-aligned .pure-controls {
- margin: 1.5em 0 0 11em;
-}
-.pure-form .pure-input-rounded,
-.pure-form input.pure-input-rounded {
- border-radius: 2em;
- padding: 0.5em 1em;
-}
-.pure-form .pure-group fieldset {
- margin-bottom: 10px;
-}
-.pure-form .pure-group input,
-.pure-form .pure-group textarea {
- display: block;
- padding: 10px;
- margin: 0 0 -1px;
- border-radius: 0;
- position: relative;
- top: -1px;
-}
-.pure-form .pure-group input:focus,
-.pure-form .pure-group textarea:focus {
- z-index: 3;
-}
-.pure-form .pure-group input:first-child,
-.pure-form .pure-group textarea:first-child {
- top: 1px;
- border-radius: 4px 4px 0 0;
- margin: 0;
-}
-.pure-form .pure-group input:first-child:last-child,
-.pure-form .pure-group textarea:first-child:last-child {
- top: 1px;
- border-radius: 4px;
- margin: 0;
-}
-.pure-form .pure-group input:last-child,
-.pure-form .pure-group textarea:last-child {
- top: -2px;
- border-radius: 0 0 4px 4px;
- margin: 0;
-}
-.pure-form .pure-group button {
- margin: 0.35em 0;
-}
-.pure-form .pure-input-1 {
- width: 100%;
-}
-.pure-form .pure-input-3-4 {
- width: 75%;
-}
-.pure-form .pure-input-2-3 {
- width: 66%;
-}
-.pure-form .pure-input-1-2 {
- width: 50%;
-}
-.pure-form .pure-input-1-3 {
- width: 33%;
-}
-.pure-form .pure-input-1-4 {
- width: 25%;
-}
-.pure-form-message-inline {
- display: inline-block;
- padding-left: 0.3em;
- color: #666;
- vertical-align: middle;
- font-size: 0.875em;
-}
-.pure-form-message {
- display: block;
- color: #666;
- font-size: 0.875em;
-}
-@media only screen and (max-width: 480px) {
- .pure-form button[type="submit"] {
- margin: 0.7em 0 0;
- }
- .pure-form input:not([type]),
- .pure-form input[type="color"],
- .pure-form input[type="date"],
- .pure-form input[type="datetime-local"],
- .pure-form input[type="datetime"],
- .pure-form input[type="email"],
- .pure-form input[type="month"],
- .pure-form input[type="number"],
- .pure-form input[type="password"],
- .pure-form input[type="search"],
- .pure-form input[type="tel"],
- .pure-form input[type="text"],
- .pure-form input[type="time"],
- .pure-form input[type="url"],
- .pure-form input[type="week"],
- .pure-form label {
- margin-bottom: 0.3em;
- display: block;
- }
- .pure-group input:not([type]),
- .pure-group input[type="color"],
- .pure-group input[type="date"],
- .pure-group input[type="datetime-local"],
- .pure-group input[type="datetime"],
- .pure-group input[type="email"],
- .pure-group input[type="month"],
- .pure-group input[type="number"],
- .pure-group input[type="password"],
- .pure-group input[type="search"],
- .pure-group input[type="tel"],
- .pure-group input[type="text"],
- .pure-group input[type="time"],
- .pure-group input[type="url"],
- .pure-group input[type="week"] {
- margin-bottom: 0;
- }
- .pure-form-aligned .pure-control-group label {
- margin-bottom: 0.3em;
- text-align: left;
- display: block;
- width: 100%;
- }
- .pure-form-aligned .pure-controls {
- margin: 1.5em 0 0 0;
- }
- .pure-form-message,
- .pure-form-message-inline {
- display: block;
- font-size: 0.75em;
- padding: 0.2em 0 0.8em;
- }
-}
-.pure-menu {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-menu-fixed {
- position: fixed;
- left: 0;
- top: 0;
- z-index: 3;
-}
-.pure-menu-item,
-.pure-menu-list {
- position: relative;
-}
-.pure-menu-list {
- list-style: none;
- margin: 0;
- padding: 0;
-}
-.pure-menu-item {
- padding: 0;
- margin: 0;
- height: 100%;
-}
-.pure-menu-heading,
-.pure-menu-link {
- display: block;
- text-decoration: none;
- white-space: nowrap;
-}
-.pure-menu-horizontal {
- width: 100%;
- white-space: nowrap;
-}
-.pure-menu-horizontal .pure-menu-list {
- display: inline-block;
-}
-.pure-menu-horizontal .pure-menu-heading,
-.pure-menu-horizontal .pure-menu-item,
-.pure-menu-horizontal .pure-menu-separator {
- display: inline-block;
- vertical-align: middle;
-}
-.pure-menu-item .pure-menu-item {
- display: block;
-}
-.pure-menu-children {
- display: none;
- position: absolute;
- left: 100%;
- top: 0;
- margin: 0;
- padding: 0;
- z-index: 3;
-}
-.pure-menu-horizontal .pure-menu-children {
- left: 0;
- top: auto;
- width: inherit;
-}
-.pure-menu-active > .pure-menu-children,
-.pure-menu-allow-hover:hover > .pure-menu-children {
- display: block;
- position: absolute;
-}
-.pure-menu-has-children > .pure-menu-link:after {
- padding-left: 0.5em;
- content: "\25B8";
- font-size: small;
-}
-.pure-menu-horizontal .pure-menu-has-children > .pure-menu-link:after {
- content: "\25BE";
-}
-.pure-menu-scrollable {
- overflow-y: scroll;
- overflow-x: hidden;
-}
-.pure-menu-scrollable .pure-menu-list {
- display: block;
-}
-.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list {
- display: inline-block;
-}
-.pure-menu-horizontal.pure-menu-scrollable {
- white-space: nowrap;
- overflow-y: hidden;
- overflow-x: auto;
- padding: 0.5em 0;
-}
-.pure-menu-horizontal .pure-menu-children .pure-menu-separator,
-.pure-menu-separator {
- background-color: #ccc;
- height: 1px;
- margin: 0.3em 0;
-}
-.pure-menu-horizontal .pure-menu-separator {
- width: 1px;
- height: 1.3em;
- margin: 0 0.3em;
-}
-.pure-menu-horizontal .pure-menu-children .pure-menu-separator {
- display: block;
- width: auto;
-}
-.pure-menu-heading {
- text-transform: uppercase;
- color: #565d64;
-}
-.pure-menu-link {
- color: #777;
-}
-.pure-menu-children {
- background-color: #fff;
-}
-.pure-menu-disabled,
-.pure-menu-heading,
-.pure-menu-link {
- padding: 0.5em 1em;
-}
-.pure-menu-disabled {
- opacity: 0.5;
-}
-.pure-menu-disabled .pure-menu-link:hover {
- background-color: transparent;
-}
-.pure-menu-active > .pure-menu-link,
-.pure-menu-link:focus,
-.pure-menu-link:hover {
- background-color: #eee;
-}
-.pure-menu-selected > .pure-menu-link,
-.pure-menu-selected > .pure-menu-link:visited {
- color: #000;
-}
-.pure-table {
- border-collapse: collapse;
- border-spacing: 0;
- empty-cells: show;
- border: 1px solid #cbcbcb;
-}
-.pure-table caption {
- color: #000;
- font: italic 85%/1 arial, sans-serif;
- padding: 1em 0;
- text-align: center;
-}
-.pure-table td,
-.pure-table th {
- border-left: 1px solid #cbcbcb;
- border-width: 0 0 0 1px;
- font-size: inherit;
- margin: 0;
- overflow: visible;
- padding: 0.5em 1em;
-}
-.pure-table thead {
- background-color: #e0e0e0;
- color: #000;
- text-align: left;
- vertical-align: bottom;
-}
-.pure-table td {
- background-color: transparent;
-}
-.pure-table-odd td {
- background-color: #f2f2f2;
-}
-.pure-table-striped tr:nth-child(2n-1) td {
- background-color: #f2f2f2;
-}
-.pure-table-bordered td {
- border-bottom: 1px solid #cbcbcb;
-}
-.pure-table-bordered tbody > tr:last-child > td {
- border-bottom-width: 0;
-}
-.pure-table-horizontal td,
-.pure-table-horizontal th {
- border-width: 0 0 1px 0;
- border-bottom: 1px solid #cbcbcb;
-}
-.pure-table-horizontal tbody > tr:last-child > td {
- border-bottom-width: 0;
-}
/*!
Pure v2.0.3
Copyright 2013 Yahoo!
@@ -987,343 +26,24 @@ a.pure-button-selected {
Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
/*! normalize.ss v8.0.1 | MIT License | github.com/necolas/normalize.cs */
-
-.talerbar {
- text-align: center;
-}
-.tt {
- font-family: "Lucida Console", Monaco, monospace;
-}
-.content {
- overflow-x: auto;
- padding-left: 15%;
- padding-right: 15%;
-}
-.qr {
- margin: auto;
- text-align: center;
-}
-.qrtext {
- width: max-content;
- margin: auto;
- transition: font-size 0.2s;
- font-family: "Lucida Console", Monaco, monospace;
- font-size: 0.5em;
-}
-.qrtext:hover {
- font-size: 1em;
-}
-.talerbar {
- margin: 0;
- bottom: 0;
- background-color: #033;
- color: white;
- width: 100%;
- padding: 1em;
- overflow: auto;
-}
-body {
- overflow-y: scroll;
-}
-@media (min-width: 500px) {
- .content {
- padding-bottom: 2em;
- overflow-y: auto;
- }
-}
-#main a:link,
-#main a:visited,
-#main a:hover,
-#main a:active {
- color: black;
-}.q1ma0zxq{margin:auto;text-align:center;width:340px;}
-.fef0x5t{text-align:center;background-color:#033;color:white;padding:1em;overflow:auto;}.fef0x5t > p > a:link,.fef0x5t > p > a:visited,.fef0x5t > p > a:hover,.fef0x5t > p > a:active{color:white;}
-.p1b3vqup{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:100vh;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.p1b3vqup a:link,.p1b3vqup a:visited,.p1b3vqup a:hover,.p1b3vqup a:active{color:black;}.p1b3vqup section{text-align:center;width:600px;margin-bottom:auto;}.p1b3vqup section:not(:first-of-type){margin-top:2em;}.p1b3vqup > header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:center;}.p1b3vqup > footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;width:100%;margin-bottom:0px;}
-.c1gnd3xp{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
-.wpwjmk{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;text-transform:var(--wpwjmk-0);font-family:inherit;font-size:100%;padding:0.5em 1em;color:#444;color:rgba(0,0,0,0.8);border:1px solid #999;border:none rgba(0,0,0,0);background-color:'#e6e6e6';-webkit-text-decoration:none;text-decoration:none;border-radius:2px;background-color:#e6e6e6;border-radius:4px;text-shadow:0 1px 1px rgba(0,0,0,0.2);box-shadow:0 0 0 1px rgba(0,0,0,0.15) inset, 0 0 6px rgba(0,0,0,0.2) inset;border-color:#000;}.wpwjmk:focus{outline:0;}.wpwjmk:disabled{border:none;background-image:none;-webkit-filter:alpha(opacity=40);filter:alpha(opacity=40);opacity:0.4;cursor:not-allowed;box-shadow:none;pointer-events:none;}.wpwjmk:hover{-webkit-filter:alpha(opacity=90);filter:alpha(opacity=90);background-image:linear-gradient( transparent, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.1) );}
-.i1pkgksb{border-radius:0.25em;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:1em;border:solid 1px #b8daff;background-color:#cce5ff;color:#004085;}
-.t2c81u8{text-align:left;}.t2c81u8 dt{font-weight:bold;margin-top:1em;}.t2c81u8 dd{margin-inline-start:0px;}
-.t1mav7fx{text-align:left;}.t1mav7fx dt{font-weight:bold;display:inline-block;width:30%;}.t1mav7fx dd{margin-inline-start:0px;display:inline-block;width:70%;}
-/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3NlYmFzam0vV29yay90YWxlci93YWxsZXQtY29yZS9wYWNrYWdlcy9tZXJjaGFudC1iYWNrZW5kLXVpL3NyYy9zdHlsZWQvaW5kZXgudHN4Il0sIm5hbWVzIjpbIi5xMW1hMHp4cSIsIi5mZWYweDV0IiwiLnAxYjN2cXVwIiwiLmMxZ25kM3hwIiwiLndwd2ptayIsIi5pMXBrZ2tzYiIsIi50MmM4MXU4IiwiLnQxbWF2N2Z4Il0sIm1hcHBpbmdzIjoiQUFvQmFBO0FBS0FDO0FBY0FDO0FBdUNBQztBQUlBQztBQXVEQUM7QUFVQUM7QUFVQUMiLCJmaWxlIjoiL2hvbWUvc2ViYXNqbS9Xb3JrL3RhbGVyL3dhbGxldC1jb3JlL3BhY2thZ2VzL21lcmNoYW50LWJhY2tlbmQtdWkvc3JjL3N0eWxlZC9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgZmlsZSBpcyBwYXJ0IG9mIEdOVSBUYWxlclxuIChDKSAyMDIxIFRhbGVyIFN5c3RlbXMgUy5BLlxuXG4gR05VIFRhbGVyIGlzIGZyZWUgc29mdHdhcmU7IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnkgaXQgdW5kZXIgdGhlXG4gdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieSB0aGUgRnJlZSBTb2Z0d2FyZVxuIEZvdW5kYXRpb247IGVpdGhlciB2ZXJzaW9uIDMsIG9yIChhdCB5b3VyIG9wdGlvbikgYW55IGxhdGVyIHZlcnNpb24uXG5cbiBHTlUgVGFsZXIgaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCwgYnV0IFdJVEhPVVQgQU5ZXG4gV0FSUkFOVFk7IHdpdGhvdXQgZXZlbiB0aGUgaW1wbGllZCB3YXJyYW50eSBvZiBNRVJDSEFOVEFCSUxJVFkgb3IgRklUTkVTUyBGT1JcbiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4gIFNlZSB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0YWlscy5cblxuIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFsb25nIHdpdGhcbiBHTlUgVGFsZXI7IHNlZSB0aGUgZmlsZSBDT1BZSU5HLiAgSWYgbm90LCBzZWUgPGh0dHA6Ly93d3cuZ251Lm9yZy9saWNlbnNlcy8+XG4gKi9cbi8qKlxuKlxuKiBAYXV0aG9yIFNlYmFzdGlhbiBKYXZpZXIgTWFyY2hhbm8gKHNlYmFzam0pXG4qL1xuaW1wb3J0IHsgc3R5bGVkIH0gZnJvbSAnQGxpbmFyaWEvcmVhY3QnO1xuZXhwb3J0IGNvbnN0IFFSUGxhY2Vob2xkZXIgPSBzdHlsZWQuZGl2IGBcbiAgbWFyZ2luOiBhdXRvO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHdpZHRoOiAzNDBweDsgXG5gO1xuZXhwb3J0IGNvbnN0IEZvb3RlckJhciA9IHN0eWxlZC5mb290ZXIgYFxuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGJhY2tncm91bmQtY29sb3I6ICMwMzM7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgcGFkZGluZzogMWVtO1xuICBvdmVyZmxvdzogYXV0bztcblxuICAmID4gcCA+IGE6bGluayxcbiAgJiA+IHAgPiBhOnZpc2l0ZWQsXG4gICYgPiBwID4gYTpob3ZlcixcbiAgJiA+IHAgPiBhOmFjdGl2ZSB7XG4gICAgY29sb3I6IHdoaXRlO1xuICB9XG5gO1xuZXhwb3J0IGNvbnN0IFBhZ2UgPSBzdHlsZWQuZGl2IGBcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICBtaW4taGVpZ2h0OiAxMDB2aDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgXG4gIGE6bGluayxcbiAgYTp2aXNpdGVkLFxuICBhOmhvdmVyLFxuICBhOmFjdGl2ZSB7XG4gICAgY29sb3I6IGJsYWNrO1xuICB9XG4gIFxuICBzZWN0aW9uIHtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgd2lkdGg6IDYwMHB4O1xuICAgIC8qIG1hcmdpbjogYXV0bzsgKi9cbiAgICAvKiBtYXJnaW4tdG9wOiAwcHg7ICovXG4gICAgbWFyZ2luLWJvdHRvbTogYXV0bztcbiAgICAvKiBvdmVyZmxvdzogYXV0bzsgKi9cbiAgfVxuICBzZWN0aW9uOm5vdCg6Zmlyc3Qtb2YtdHlwZSkge1xuICAgIG1hcmdpbi10b3A6IDJlbTtcbiAgfVxuICAmID4gaGVhZGVyIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgfVxuICAmID4gZm9vdGVyIHtcbiAgICBkaXNwbGF5OiBmbGV4OyAgICBcbiAgICBmbGV4LWRpcmVjdGlvbjogcm93O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIG1hcmdpbi1ib3R0b206IDBweDtcbiAgfVxuYDtcbmV4cG9ydCBjb25zdCBDZW50ZXIgPSBzdHlsZWQuZGl2IGBcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5gO1xuZXhwb3J0IGNvbnN0IFdhbGxldExpbmsgPSBzdHlsZWQuYSBgXG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgem9vbTogMTtcbiAgbGluZS1oZWlnaHQ6IG5vcm1hbDtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgdmVydGljYWwtYWxpZ246IG1pZGRsZTtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIHVzZXItc2VsZWN0OiBub25lO1xuICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICB0ZXh0LXRyYW5zZm9ybTogJHsoeyB1cHBlckNhc2VkIH0pID0+IHVwcGVyQ2FzZWQgPyAndXBwZXJjYXNlJyA6ICdub25lJ307XG5cbiAgZm9udC1mYW1pbHk6IGluaGVyaXQ7XG4gIGZvbnQtc2l6ZTogMTAwJTtcbiAgcGFkZGluZzogMC41ZW0gMWVtO1xuICBjb2xvcjogIzQ0NDsgLyogcmdiYSBub3Qgc3VwcG9ydGVkIChJRSA4KSAqL1xuICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjgpOyAvKiByZ2JhIHN1cHBvcnRlZCAqL1xuICBib3JkZXI6IDFweCBzb2xpZCAjOTk5OyAvKklFIDYvNy84Ki9cbiAgYm9yZGVyOiBub25lIHJnYmEoMCwgMCwgMCwgMCk7IC8qSUU5ICsgZXZlcnl0aGluZyBlbHNlKi9cbiAgYmFja2dyb3VuZC1jb2xvcjogJyNlNmU2ZTYnO1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIGJvcmRlci1yYWRpdXM6IDJweDtcblxuICA6Zm9jdXMge1xuICAgIG91dGxpbmU6IDA7XG4gIH1cblxuICAmOmRpc2FibGVkIHtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogbm9uZTtcbiAgICAvKiBjc3NsaW50IGlnbm9yZTpzdGFydCAqL1xuICAgIGZpbHRlcjogYWxwaGEob3BhY2l0eT00MCk7XG4gICAgLyogY3NzbGludCBpZ25vcmU6ZW5kICovXG4gICAgb3BhY2l0eTogMC40O1xuICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgYm94LXNoYWRvdzogbm9uZTtcbiAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcbiAgfVxuXG4gIDpob3ZlciB7XG4gICAgZmlsdGVyOiBhbHBoYShvcGFjaXR5PTkwKTtcbiAgICBiYWNrZ3JvdW5kLWltYWdlOiBsaW5lYXItZ3JhZGllbnQoXG4gICAgICB0cmFuc3BhcmVudCxcbiAgICAgIHJnYmEoMCwgMCwgMCwgMC4wNSkgNDAlLFxuICAgICAgcmdiYSgwLCAwLCAwLCAwLjEpXG4gICAgKTtcbiAgfVxuXG4gIGJhY2tncm91bmQtY29sb3I6ICNlNmU2ZTY7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgdGV4dC1zaGFkb3c6IDAgMXB4IDFweCByZ2JhKDAsIDAsIDAsIDAuMik7XG4gIGJveC1zaGFkb3c6IDAgMCAwIDFweCByZ2JhKDAsIDAsIDAsIDAuMTUpIGluc2V0LFxuICAgIDAgMCA2cHggcmdiYSgwLCAwLCAwLCAwLjIpIGluc2V0O1xuICBib3JkZXItY29sb3I6ICMwMDA7XG5gO1xuZXhwb3J0IGNvbnN0IEluZm9Cb3ggPSBzdHlsZWQuZGl2IGBcbiAgYm9yZGVyLXJhZGl1czogMC4yNWVtO1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAvKiBtYXJnaW46IDAuNWVtOyAqL1xuICBwYWRkaW5nOiAxZW07XG4gIC8qIHdpZHRoOiAxMDAlOyAqL1xuICBib3JkZXI6c29saWQgMXB4ICNiOGRhZmY7XG4gIGJhY2tncm91bmQtY29sb3I6I2NjZTVmZjtcbiAgY29sb3I6IzAwNDA4NTtcbmA7XG5leHBvcnQgY29uc3QgVGFibGVFeHBhbmRlZCA9IHN0eWxlZC5kbCBgXG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIGR0IHtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICBtYXJnaW4tdG9wOiAxZW07XG4gIH1cbiAgZGQge1xuICAgIG1hcmdpbi1pbmxpbmUtc3RhcnQ6IDBweDtcbiAgfVxuYDtcbmV4cG9ydCBjb25zdCBUYWJsZVNpbXBsZSA9IHN0eWxlZC5kbCBgXG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIGR0IHtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgd2lkdGg6MzAlO1xuICB9XG4gIGRkIHtcbiAgICBtYXJnaW4taW5saW5lLXN0YXJ0OiAwcHg7XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIHdpZHRoOjcwJTtcbiAgfVxuYDtcbiJdfQ==*/</style>
- </head>
- <script id="built_time_data">
- </script>
- <body>
- <div class="p1b3vqup"><section><h1>Tip already collected</h1><div>You have already collected this tip.</div></section><footer class="fef0x5t"><p><a href="https://taler.net/">Learn more about GNU Taler on our website.</a><p>Copyright © 2014—2021 Taler Systems SA</p></p></footer></div>
- <script>var page = (function (exports) {
- 'use strict';
-
- var n$1,l$2,u$2,t$1,o$2,r$1,f$2={},e$1=[],c$2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s$2(n,l){for(var u in l)n[u]=l[u];return n}function a$2(n){var l=n.parentNode;l&&l.removeChild(n);}function h$2(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v$2(l,f,t,o,null)}function v$2(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$2:r};return null==r&&null!=l$2.vnode&&l$2.vnode(f),f}function y$2(){return {current:null}}function p$2(n){return n.children}function d$2(n,l){this.props=n,this.context=l;}function _$2(n,l){if(null==l)return n.__?_$2(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?_$2(n):null}function k$3(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k$3(n)}}function b$2(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$3.__r++||o$2!==l$2.debounceRendering)&&((o$2=l$2.debounceRendering)||setTimeout)(g$3);}function g$3(){for(var n;g$3.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s$2({},t)).__v=t.__v+1,j$3(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_$2(t):o,t.__h),z$2(u,t),t.__e!=o&&k$3(t)));});}function w$3(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e$1,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$2(null,k,null,null,k):Array.isArray(k)?v$2(p$2,{children:k},null,null,null):k.__b>0?v$2(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j$3(n,k,d=d||f$2,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m$2(k,s,n):s=A$3(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_$2(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&N$1(x[h],x[h]);if(w)for(h=0;h<w.length;h++)M$1(w[h],w[++h],w[++h]);}function m$2(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m$2(i,l,u):A$3(u,i,i,t,i.__e,l));return l}function x$3(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){x$3(n,l);}):l.push(n)),l}function A$3(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C$2(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H$1(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H$1(n,o,l[o],u[o],i);}function $$1(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c$2.test(l)?u:u+"px";}function H$1(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$$1(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$$1(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$2:I$1,o):n.removeEventListener(l,o?T$2:I$1,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function I$1(n){this.l[n.type+!1](l$2.event?l$2.event(n):n);}function T$2(n){this.l[n.type+!0](l$2.event?l$2.event(n):n);}function j$3(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H,I,T=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l$2.__b)&&a(u);try{n:if("function"==typeof T){if(g=u.props,m=(a=T.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in T&&T.prototype.render?u.__c=h=new T(g,x):(u.__c=h=new d$2(g,x),h.constructor=T,h.render=O$2),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s$2({},h.__s)),s$2(h.__s,T.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==T.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){for(h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,C=l$2.__r,$=0,"prototype"in T&&T.prototype.render){for(h.state=h.__s,h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(t=s$2(s$2({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),I=null!=a&&a.type===p$2&&null==a.key?a.props.children:a,w$3(n,Array.isArray(I)?I:[I],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L$1(i.__e,u,i,t,o,r,f,c);(a=l$2.diffed)&&a(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$2.__e(n,u,i);}}function z$2(n,u){l$2.__c&&l$2.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$2.__e(n,u.__v);}});}function L$1(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n$1.call(l.childNodes),h=(y=i.props||f$2).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C$2(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w$3(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_$2(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a$2(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H$1(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H$1(l,"checked",k,y.checked,!1));}return l}function M$1(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$2.__e(n,i);}}function N$1(n,u,i){var t,o;if(l$2.unmount&&l$2.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M$1(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$2.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N$1(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||a$2(n.__e),n.__=n.__e=n.__d=void 0;}function O$2(n,l,u){return this.constructor(n,u)}function P$1(u,i,t){var o,r,e;l$2.__&&l$2.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j$3(i,u=(!o&&t||i).__k=h$2(p$2,null,[u]),r||f$2,f$2,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n$1.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z$2(e,u);}function S$1(n,l){P$1(n,l,S$1);}function q$2(l,u,i){var t,o,r,f=s$2({},l.props);for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];return arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):i),v$2(l.type,f,t||l.key,o||l.ref,null)}function B$2(n,l){var u={__c:l="__cC"+r$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(b$2);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n$1=e$1.slice,l$2={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$2=0,d$2.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s$2({},this.state),"function"==typeof n&&(n=n(s$2({},u),this.props)),n&&s$2(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),b$2(this));},d$2.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b$2(this));},d$2.prototype.render=p$2,t$1=[],g$3.__r=0,r$1=0;
-
- var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,o$1=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,i$1=/[\s\n\\/='"\0<>]/,l$1=/^xlink:?./,a$1=/["&<]/;function s$1(e){if(!1===a$1.test(e+=""))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1;}return r!==t&&(n+=e.slice(t,r)),n}var f$1=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},u$1=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},c$1={},_$1=/([A-Z])/g;function p$1(e){var t="";for(var r in e){var o=e[r];null!=o&&""!==o&&(t&&(t+=" "),t+="-"==r[0]?r:c$1[r]||(c$1[r]=r.replace(_$1,"-$1").toLowerCase()),t="number"==typeof o&&!1===n.test(r)?t+": "+o+"px;":t+": "+o+";");}return t||void 0}function d$1(e,t){return Array.isArray(t)?t.reduce(d$1,e):null!=t&&!1!==t&&e.push(t),e}function v$1(){this.__d=!0;}function h$1(e,t){return {__v:e,context:t,props:e.props,setState:v$1,forceUpdate:v$1,__d:!0,__h:[]}}function g$2(e,t){var r=e.contextType,n=r&&t[r.__c];return null!=r?n?n.props.value:r.__:t}var y$1=[];function m$1(r,n,a,c,_,v){if(null==r||"boolean"==typeof r)return "";if("object"!=typeof r)return "function"==typeof r?"":s$1(r);var b=a.pretty,x=b&&"string"==typeof b?b:"\t";if(Array.isArray(r)){for(var k="",S=0;S<r.length;S++)b&&S>0&&(k+="\n"),k+=m$1(r[S],n,a,c,_,v);return k}if(void 0!==r.constructor)return "";var w,C=r.type,O=r.props,j=!1;if("function"==typeof C){if(j=!0,!a.shallow||!c&&!1!==a.renderRootComponent){if(C===p$2){var A=[];return d$1(A,r.props.children),m$1(A,n,a,!1!==a.shallowHighOrder,_,v)}var F,H=r.__c=h$1(r,n);l$2.__b&&l$2.__b(r);var M=l$2.__r;if(C.prototype&&"function"==typeof C.prototype.render){var L=g$2(C,n);(H=r.__c=new C(O,L)).__v=r,H._dirty=H.__d=!0,H.props=O,null==H.state&&(H.state={}),null==H._nextState&&null==H.__s&&(H._nextState=H.__s=H.state),H.context=L,C.getDerivedStateFromProps?H.state=Object.assign({},H.state,C.getDerivedStateFromProps(H.props,H.state)):H.componentWillMount&&(H.componentWillMount(),H.state=H._nextState!==H.state?H._nextState:H.__s!==H.state?H.__s:H.state),M&&M(r),F=H.render(H.props,H.state,H.context);}else for(var T=g$2(C,n),E=0;H.__d&&E++<25;)H.__d=!1,M&&M(r),F=C.call(r.__c,O,T);return H.getChildContext&&(n=Object.assign({},n,H.getChildContext())),l$2.diffed&&l$2.diffed(r),m$1(F,n,a,!1!==a.shallowHighOrder,_,v)}C=(w=C).displayName||w!==Function&&w.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=y$1.length;n--;)if(y$1[n]===e){r=n;break}r<0&&(r=y$1.push(e)-1),t="UnnamedComponent"+r;}return t}(w);}var $,D,N="<"+C;if(O){var P=Object.keys(O);a&&!0===a.sortAttributes&&P.sort();for(var W=0;W<P.length;W++){var I=P[W],R=O[I];if("children"!==I){if(!i$1.test(I)&&(a&&a.allAttributes||"key"!==I&&"ref"!==I&&"__self"!==I&&"__source"!==I)){if("defaultValue"===I)I="value";else if("defaultChecked"===I)I="checked";else if("defaultSelected"===I)I="selected";else if("className"===I){if(void 0!==O.class)continue;I="class";}else _&&l$1.test(I)&&(I=I.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===I){if(O.for)continue;I="for";}"style"===I&&R&&"object"==typeof R&&(R=p$1(R)),"a"===I[0]&&"r"===I[1]&&"boolean"==typeof R&&(R=String(R));var U=a.attributeHook&&a.attributeHook(I,R,n,a,j);if(U||""===U)N+=U;else if("dangerouslySetInnerHTML"===I)D=R&&R.__html;else if("textarea"===C&&"value"===I)$=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=I,a&&a.xml))){N=N+" "+I;continue}if("value"===I){if("select"===C){v=R;continue}"option"===C&&v==R&&void 0===O.selected&&(N+=" selected");}N=N+" "+I+'="'+s$1(R)+'"';}}}else $=R;}}if(b){var V=N.replace(/\n\s*/," ");V===N||~V.indexOf("\n")?b&&~N.indexOf("\n")&&(N+="\n"):N=V;}if(N+=">",i$1.test(C))throw new Error(C+" is not a valid HTML tag name in "+N);var q,z=o$1.test(C)||a.voidElements&&a.voidElements.test(C),Z=[];if(D)b&&u$1(D)&&(D="\n"+x+f$1(D,x)),N+=D;else if(null!=$&&d$1(q=[],$).length){for(var B=b&&~N.indexOf("\n"),G=!1,J=0;J<q.length;J++){var K=q[J];if(null!=K&&!1!==K){var Q=m$1(K,n,a,!0,"svg"===C||"foreignObject"!==C&&_,v);if(b&&!B&&u$1(Q)&&(B=!0),Q)if(b){var X=Q.length>0&&"<"!=Q[0];G&&X?Z[Z.length-1]+=Q:Z.push(Q),G=X;}else Z.push(Q);}}if(b&&B)for(var Y=Z.length;Y--;)Z[Y]="\n"+x+f$1(Z[Y],x);}if(Z.length||D)N+=Z.join("");else if(a&&a.xml)return N.substring(0,N.length-1)+" />";return !z||q||D?(b&&~N.indexOf("\n")&&(N+="\n"),N=N+"</"+C+">"):N=N.replace(/>$/," />"),N}var b$1={shallow:!0};S.render=S;var x$2=function(e,t){return S(e,t,b$1)},k$2=[];function S(n,o,i){o=o||{};var l=l$2.__s;l$2.__s=!0;var a,s=h$2(p$2,null);return s.__k=[n],a=i&&(i.pretty||i.voidElements||i.sortAttributes||i.shallow||i.allAttributes||i.xml||i.attributeHook)?m$1(n,o,i):F$2(n,o,!1,void 0,s),l$2.__c&&l$2.__c(n,k$2),l$2.__s=l,k$2.length=0,a}function w$2(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?h$2(null,null,e):e}function C$1(e,t){return "className"===e?"class":"htmlFor"===e?"for":"defaultValue"===e?"value":"defaultChecked"===e?"checked":"defaultSelected"===e?"selected":t&&l$1.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function O$1(e,t){return "style"===e&&null!=t&&"object"==typeof t?p$1(t):"a"===e[0]&&"r"===e[1]&&"boolean"==typeof t?String(t):t}var j$2=Array.isArray,A$2=Object.assign;function F$2(r,n,l,a,f){if(null==r||!0===r||!1===r||""===r)return "";if("object"!=typeof r)return "function"==typeof r?"":s$1(r);if(j$2(r)){var u="";f.__k=r;for(var c=0;c<r.length;c++)u+=F$2(r[c],n,l,a,f),r[c]=w$2(r[c]);return u}if(void 0!==r.constructor)return "";r.__=f,l$2.__b&&l$2.__b(r);var _=r.type,p=r.props;if("function"==typeof _){var d;if(_===p$2)d=p.children;else {d=_.prototype&&"function"==typeof _.prototype.render?function(e,r){var n=e.type,o=g$2(n,r),i=new n(e.props,o);e.__c=i,i.__v=e,i.__d=!0,i.props=e.props,null==i.state&&(i.state={}),null==i.__s&&(i.__s=i.state),i.context=o,n.getDerivedStateFromProps?i.state=A$2({},i.state,n.getDerivedStateFromProps(i.props,i.state)):i.componentWillMount&&(i.componentWillMount(),i.state=i.__s!==i.state?i.__s:i.state);var l=l$2.__r;return l&&l(e),i.render(i.props,i.state,i.context)}(r,n):function(e,r){var n,o=h$1(e,r),i=g$2(e.type,r);e.__c=o;for(var l=l$2.__r,a=0;o.__d&&a++<25;)o.__d=!1,l&&l(e),n=e.type.call(o,e.props,i);return n}(r,n);var v=r.__c;v.getChildContext&&(n=A$2({},n,v.getChildContext()));}var y=F$2(d=null!=d&&d.type===p$2&&null==d.key?d.props.children:d,n,l,a,r);return l$2.diffed&&l$2.diffed(r),r.__=void 0,l$2.unmount&&l$2.unmount(r),y}var m,b,x="<";if(x+=_,p)for(var k in m=p.children,p){var S=p[k];if(!("key"===k||"ref"===k||"__self"===k||"__source"===k||"children"===k||"className"===k&&"class"in p||"htmlFor"===k&&"for"in p||i$1.test(k)))if(S=O$1(k=C$1(k,l),S),"dangerouslySetInnerHTML"===k)b=S&&S.__html;else if("textarea"===_&&"value"===k)m=S;else if((S||0===S||""===S)&&"function"!=typeof S){if(!0===S||""===S){S=k,x=x+" "+k;continue}if("value"===k){if("select"===_){a=S;continue}"option"!==_||a!=S||"selected"in p||(x+=" selected");}x=x+" "+k+'="'+s$1(S)+'"';}}var H=x;if(x+=">",i$1.test(_))throw new Error(_+" is not a valid HTML tag name in "+x);var M="",L=!1;if(b)M+=b,L=!0;else if("string"==typeof m)M+=s$1(m),L=!0;else if(j$2(m)){r.__k=m;for(var T=0;T<m.length;T++){var E=m[T];if(m[T]=w$2(E),null!=E&&!1!==E){var $=F$2(E,n,"svg"===_||"foreignObject"!==_&&l,a,r);$&&(M+=$,L=!0);}}}else if(null!=m&&!1!==m&&!0!==m){r.__k=[w$2(m)];var D=F$2(m,n,"svg"===_||"foreignObject"!==_&&l,a,r);D&&(M+=D,L=!0);}if(l$2.diffed&&l$2.diffed(r),r.__=void 0,l$2.unmount&&l$2.unmount(r),L)x+=M;else if(o$1.test(_))return H+" />";return x+"</"+_+">"}S.shallowRender=x$2;
-
- function memoize(fn) {
- var cache = {};
- return function (arg) {
- if (cache[arg] === undefined) cache[arg] = fn(arg);
- return cache[arg];
- };
- }
-
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
-
- var index = memoize(function (prop) {
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
- /* o */
- && prop.charCodeAt(1) === 110
- /* n */
- && prop.charCodeAt(2) < 91;
- }
- /* Z+1 */
- );
-
- var t,r,u,i,o=0,f=[],c=[],e=l$2.__b,a=l$2.__r,v=l$2.diffed,l=l$2.__c,m=l$2.unmount;function d(t,u){l$2.__h&&l$2.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function p(n){return o=1,y(B$1,n)}function y(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$1(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){r.u=!0;var f=r.shouldComponentUpdate;r.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!f||f.call(this,n,t,r))};}return o.__N||o.__}function h(u,i){var o=d(t++,3);!l$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function s(u,i){var o=d(t++,4);!l$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o));}function _(n){return o=5,F$1(function(){return {current:n}},[])}function A$1(n,t,r){o=6,s(function(){return "function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n));}function F$1(n,r){var u=d(t++,7);return z$1(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$1(n,t){return o=8,F$1(function(){return n},t)}function q$1(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x$1(t,r){l$2.useDebugValue&&l$2.useDebugValue(r?r(t):t);}function V$1(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++;}return n.__}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k$1),t.__H.__h.forEach(w$1),t.__H.__h=[];}catch(r){t.__H.__h=[],l$2.__e(r,t.__v);}}l$2.__b=function(n){r=null,e&&e(n);},l$2.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k$1),i.__h.forEach(w$1),i.__h=[])),u=r;},l$2.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$2.requestAnimationFrame||((i=l$2.requestAnimationFrame)||j$1)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},l$2.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$1),t.__h=t.__h.filter(function(n){return !n.__||w$1(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$2.__e(u,t.__v);}}),l&&l(t,r);},l$2.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k$1(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$2.__e(r,u.__v));};var g$1="function"==typeof requestAnimationFrame;function j$1(n){var t,r=function(){clearTimeout(u),g$1&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$1&&(t=requestAnimationFrame(r));}function k$1(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w$1(n){var t=r;n.__c=n.__(),r=t;}function z$1(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$1(n,t){return "function"==typeof t?t(n):t}
-
- function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n,t){return n===t&&(0!==n||1/n==1/t)||n!=n&&t!=t}function w(n){this.props=n;}function R(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return !r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C(this.props,n)}function u(e){return this.shouldComponentUpdate=r,h$2(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(w.prototype=new d$2).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var x=l$2.__b;l$2.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x&&x(n);};var N="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function k(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var A=function(n,t){return null==n?null:x$3(x$3(n).map(t))},O={map:A,forEach:A,count:function(n){return n?x$3(n).length:0},only:function(n){var t=x$3(n);if(1!==t.length)throw "Children.only";return t[0]},toArray:x$3},T=l$2.__e;l$2.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r);};var I=l$2.unmount;function L(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)})),n}function U(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null;}function F(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function M(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n;},function(n){u=n;}),u)throw u;if(!r)throw e;return h$2(r,o)}return o.displayName="Lazy",o.__f=!0,o}function V(){this.u=null,this.o=null;}l$2.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),I&&I(n);},(D.prototype=new d$2).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=F(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=U(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate();}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i);},D.prototype.componentWillUnmount=function(){this.t=[];},D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=L(this.__b,r,o.__O=o.__P);}this.__b=null;}var i=e.__a&&h$2(p$2,null,n.fallback);return i&&(i.__h=null),[h$2(p$2,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function P(n){return this.getChildContext=function(){return n.context},n.children}function $(n){var e=this,r=n.i;e.componentWillUnmount=function(){P$1(null,e.l),e.l=null,e.i=null;},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n);},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n);}}),P$1(h$2(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount();}function j(n,e){var r=h$2($,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new d$2).__a=function(n){var t=this,e=F(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u();};e?e(o):o();}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=x$3(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t);});};var z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H="undefined"!=typeof document,Z=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function Y(n,t,e){return null==t.__k&&(t.textContent=""),P$1(n,t),"function"==typeof e&&e(),n?n.__c:null}function q(n,t,e){return S$1(n,t),"function"==typeof e&&e(),n?n.__c:null}d$2.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(d$2.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});}});});var G=l$2.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}l$2.event=function(n){return G&&(n=G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var X,nn={configurable:!0,get:function(){return this.class}},tn=l$2.vnode;l$2.vnode=function(n){var t=n.type,e=n.props,u=e;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in u={},e){var l=e[i];H&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in e&&null==l||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Z(e.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&B.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i="oninputCapture")),u[i]=l);}"select"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=x$3(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),"select"==t&&null!=u.defaultValue&&(u.value=x$3(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;})),n.props=u,e.class!=e.className&&(nn.enumerable="className"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,"className",nn));}n.$$typeof=z,tn&&tn(n);};var en=l$2.__r;l$2.__r=function(n){en&&en(n),X=n.__c;};var rn={ReactCurrentDispatcher:{current:{readContext:function(n){return X.__n[n.__c].props.value}}}};function on(n){return h$2.bind(null,n)}function ln(n){return !!n&&n.$$typeof===z}function cn(n){return ln(n)?q$2.apply(null,arguments):n}function fn(n){return !!n.__k&&(P$1(null,n),!0)}function an(n){return n&&(n.base||1===n.nodeType&&n)||null}var sn=function(n,t){return n(t)},hn=function(n,t){return n(t)},vn=p$2;function dn(n){n();}function pn(n){return n}function mn(){return [!1,dn]}var yn=s;function _n(n,t){var e=t(),r=p({h:{__:e,v:t}}),u=r[0].h,o=r[1];return s(function(){u.__=e,u.v=t,E(u.__,t())||o({h:u});},[n,e,t]),h(function(){return E(u.__,u.v())||o({h:u}),n(function(){E(u.__,u.v())||o({h:u});})},[n]),e}var bn={useState:p,useId:V$1,useReducer:y,useEffect:h,useLayoutEffect:s,useInsertionEffect:yn,useTransition:mn,useDeferredValue:pn,useSyncExternalStore:_n,startTransition:dn,useRef:_,useImperativeHandle:A$1,useMemo:F$1,useCallback:T$1,useContext:q$1,useDebugValue:x$1,version:"17.0.2",Children:O,render:Y,hydrate:q,unmountComponentAtNode:fn,createPortal:j,createElement:h$2,createContext:B$2,createFactory:on,cloneElement:cn,createRef:y$2,Fragment:p$2,isValidElement:ln,findDOMNode:an,Component:d$2,PureComponent:w,memo:R,forwardRef:k,flushSync:hn,unstable_batchedUpdates:sn,StrictMode:vn,Suspense:D,SuspenseList:V,lazy:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:rn};
-
- /**
- * Takes a list of class names and filters for truthy ones, joining them into a single class name for convenience.
- * eg.
- * ```js
- * cx('red', isBig && 'big') // returns 'red big' if `isBig` is true, otherwise returns 'red'
- * ```
- * If space separated atomic styles are provided, they are deduplicated according to the first hashed valued:
- *
- * ```js
- * cx('atm_a_class1 atm_b_class2', 'atm_a_class3') // returns `atm_a_class3 atm_b_class2`
- * ```
- *
- * @returns the combined, space separated class names that can be applied directly to the class attribute
- */
- const cx = function cx() {
- const presentClassNames = Array.prototype.slice // eslint-disable-next-line prefer-rest-params
- .call(arguments).filter(Boolean);
- const atomicClasses = {};
- const nonAtomicClasses = [];
- presentClassNames.forEach(arg => {
- // className could be the output of a previous cx call, so split by ' ' first
- const individualClassNames = arg ? arg.split(' ') : [];
- individualClassNames.forEach(className => {
- if (className.startsWith('atm_')) {
- const [, keyHash] = className.split('_');
- atomicClasses[keyHash] = className;
- } else {
- nonAtomicClasses.push(className);
- }
- });
- });
- const result = []; // eslint-disable-next-line no-restricted-syntax
-
- for (const keyHash in atomicClasses) {
- if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
- result.push(atomicClasses[keyHash]);
- }
- }
-
- result.push(...nonAtomicClasses);
- return result.join(' ');
- };
-
- var cx$1 = cx;
-
- /* eslint-disable @typescript-eslint/no-explicit-any */
-
- const isCapital = ch => ch.toUpperCase() === ch;
-
- const filterKey = keys => key => keys.indexOf(key) === -1;
-
- const omit = (obj, keys) => {
- const res = {};
- Object.keys(obj).filter(filterKey(keys)).forEach(key => {
- res[key] = obj[key];
- });
- return res;
- };
-
- function filterProps(component, props, omitKeys) {
- const filteredProps = omit(props, omitKeys); // Check if it's an HTML tag and not a custom element
-
- if (typeof component === 'string' && component.indexOf('-') === -1 && !isCapital(component[0])) {
- Object.keys(filteredProps).forEach(key => {
- if (!index(key)) {
- // Don't pass through invalid attributes to HTML elements
- delete filteredProps[key];
- }
- });
- }
-
- return filteredProps;
- }
-
- const warnIfInvalid = (value, componentName) => {
- };
-
- function styled(tag) {
- return options => {
-
- const render = (props, ref) => {
- const {
- as: component = tag,
- class: className
- } = props;
- const filteredProps = filterProps(component, props, ['as', 'class']);
- filteredProps.ref = ref;
- filteredProps.className = options.atomic ? cx$1(options.class, filteredProps.className || className) : cx$1(filteredProps.className || className, options.class);
- const {
- vars
- } = options;
-
- if (vars) {
- const style = {}; // eslint-disable-next-line guard-for-in,no-restricted-syntax
-
- for (const name in vars) {
- const variable = vars[name];
- const result = variable[0];
- const unit = variable[1] || '';
- const value = typeof result === 'function' ? result(props) : result;
- warnIfInvalid(value, options.name);
- style[`--${name}`] = `${value}${unit}`;
- }
-
- const ownStyle = filteredProps.style || {};
- const keys = Object.keys(ownStyle);
-
- if (keys.length > 0) {
- keys.forEach(key => {
- style[key] = ownStyle[key];
- });
- }
-
- filteredProps.style = style;
- }
-
- if (tag.__linaria && tag !== component) {
- // If the underlying tag is a styled component, forward the `as` prop
- // Otherwise the styles from the underlying component will be ignored
- filteredProps.as = component;
- return /*#__PURE__*/bn.createElement(tag, filteredProps);
- }
-
- return /*#__PURE__*/bn.createElement(component, filteredProps);
- };
-
- const Result = bn.forwardRef ? /*#__PURE__*/bn.forwardRef(render) : // React.forwardRef won't available on older React versions and in Preact
- // Fallback to a innerRef prop in that case
- props => {
- const rest = omit(props, ['innerRef']);
- return render(rest, props.innerRef);
- };
- Result.displayName = options.name; // These properties will be read by the babel plugin for interpolation
-
- Result.__linaria = {
- className: options.class,
- extends: tag
- };
- return Result;
- };
- }
-
- var styled$1 = styled;
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- const FooterBar = /*#__PURE__*/styled$1('footer')({
- name: "FooterBar",
- class: "fef0x5t"
- });
- const Page = /*#__PURE__*/styled$1('div')({
- name: "Page",
- class: "p1b3vqup"
- });
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- function Footer() {
- return (h$2(FooterBar, null,
- h$2("p", null,
- h$2("a", { href: "https://taler.net/" }, "Learn more about GNU Taler on our website."),
- h$2("p", null, "Copyright \u00A9 2014\u20142021 Taler Systems SA"))));
- }
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- function Head() {
- return h$2("title", null, "Status of your tip");
- }
- function DepletedTip() {
- return (h$2(Page, null,
- h$2("section", null,
- h$2("h1", null, "Tip already collected"),
- h$2("div", null, "You have already collected this tip.")),
- h$2(Footer, null)));
- }
- function mount() {
- try {
- P$1(h$2(DepletedTip, null), document.body);
- }
- catch (e) {
- console.error("got error", e);
- if (e instanceof Error) {
- document.body.innerText = `Fatal error: "${e.message}". Please report this bug at https://bugs.gnunet.org/.`;
- }
- }
- }
- function buildTimeRendering() {
- return {
- head: S(h$2(Head, null)),
- body: S(h$2(DepletedTip, null)),
- };
- }
-
- exports.DepletedTip = DepletedTip;
- exports.buildTimeRendering = buildTimeRendering;
- exports.mount = mount;
-
- Object.defineProperty(exports, '__esModule', { value: true });
-
- return exports;
-
-})({});
+</style>
+ </head>
+ <script id="built_time_data">
+ </script>
+ <body>
+ <div class="p1b3vqup"><section><h1>Tip already collected</h1><div>You have already collected this tip.</div></section><footer class="fef0x5t"><p><a href="https://taler.net/">Learn more about GNU Taler on our website.</a><p>Copyright © 2014—2021 Taler Systems SA</p></p></footer></div>
+ <script>"use strict";var page=(()=>{var be=Object.defineProperty;var Jt=Object.getOwnPropertyDescriptor;var Qt=Object.getOwnPropertyNames;var en=Object.prototype.hasOwnProperty;var tn=(e,t)=>{for(var n in t)be(e,n,{get:t[n],enumerable:!0})},nn=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Qt(t))!en.call(e,i)&&i!==n&&be(e,i,{get:()=>t[i],enumerable:!(r=Jt(t,i))||r.enumerable});return e};var rn=e=>nn(be({},"__esModule",{value:!0}),e);var ar={};tn(ar,{DepletedTip:()=>Ve,buildTimeRendering:()=>ir,mount:()=>or});var X,s,qe,on,q,He,Ie,ne={},Ye=[],an=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function M(e,t){for(var n in t)e[n]=t[n];return e}function Xe(e){var t=e.parentNode;t&&t.removeChild(e)}function C(e,t,n){var r,i,o,l={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:l[o]=t[o];if(arguments.length>2&&(l.children=arguments.length>3?X.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)l[o]===void 0&&(l[o]=e.defaultProps[o]);return I(e,l,r,i,null)}function I(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++qe:i};return i==null&&s.vnode!=null&&s.vnode(o),o}function ke(){return{current:null}}function N(e){return e.children}function D(e,t){this.props=e,this.context=t}function Y(e,t){if(t==null)return e.__?Y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Y(e):null}function Ze(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ze(e)}}function xe(e){(!e.__d&&(e.__d=!0)&&q.push(e)&&!re.__r++||He!==s.debounceRendering)&&((He=s.debounceRendering)||setTimeout)(re)}function re(){for(var e;re.__r=q.length;)e=q.sort(function(t,n){return t.__v.__b-n.__v.__b}),q=[],e.some(function(t){var n,r,i,o,l,_;t.__d&&(l=(o=(n=t).__v).__e,(_=n.__P)&&(r=[],(i=M({},o)).__v=o.__v+1,Ce(_,o,i,n.__n,_.ownerSVGElement!==void 0,o.__h!=null?[l]:null,r,l==null?Y(o):l,o.__h),Qe(r,o),o.__e!=l&&Ze(o)))})}function Ge(e,t,n,r,i,o,l,_,p,m){var a,d,f,c,h,g,u,S=r&&r.__k||Ye,E=S.length;for(n.__k=[],a=0;a<t.length;a++)if((c=n.__k[a]=(c=t[a])==null||typeof c=="boolean"?null:typeof c=="string"||typeof c=="number"||typeof c=="bigint"?I(null,c,null,null,c):Array.isArray(c)?I(N,{children:c},null,null,null):c.__b>0?I(c.type,c.props,c.key,c.ref?c.ref:null,c.__v):c)!=null){if(c.__=n,c.__b=n.__b+1,(f=S[a])===null||f&&c.key==f.key&&c.type===f.type)S[a]=void 0;else for(d=0;d<E;d++){if((f=S[d])&&c.key==f.key&&c.type===f.type){S[d]=void 0;break}f=null}Ce(e,c,f=f||ne,i,o,l,_,p,m),h=c.__e,(d=c.ref)&&f.ref!=d&&(u||(u=[]),f.ref&&u.push(f.ref,null,c),u.push(d,c.__c||h,c)),h!=null?(g==null&&(g=h),typeof c.type=="function"&&c.__k===f.__k?c.__d=p=Ke(c,p,e):p=Je(e,c,f,S,h,p),typeof n.type=="function"&&(n.__d=p)):p&&f.__e==p&&p.parentNode!=e&&(p=Y(f))}for(n.__e=g,a=E;a--;)S[a]!=null&&tt(S[a],S[a]);if(u)for(a=0;a<u.length;a++)et(u[a],u[++a],u[++a])}function Ke(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t=typeof r.type=="function"?Ke(r,t,n):Je(n,r,r,i,r.__e,t));return t}function U(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){U(n,t)}):t.push(e)),t}function Je(e,t,n,r,i,o){var l,_,p;if(t.__d!==void 0)l=t.__d,t.__d=void 0;else if(n==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),l=null;else{for(_=o,p=0;(_=_.nextSibling)&&p<r.length;p+=1)if(_==i)break e;e.insertBefore(i,o),l=o}return l!==void 0?l:i.nextSibling}function ln(e,t,n,r,i){var o;for(o in n)o==="children"||o==="key"||o in t||oe(e,o,null,n[o],r);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||oe(e,o,t[o],n[o],r)}function $e(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||an.test(t)?n:n+"px"}function oe(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||$e(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||$e(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?Be:ze,o):e.removeEventListener(t,o?Be:ze,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n==null?"":n;break e}catch(l){}typeof n=="function"||(n==null||n===!1&&t.indexOf("-")==-1?e.removeAttribute(t):e.setAttribute(t,n))}}function ze(e){this.l[e.type+!1](s.event?s.event(e):e)}function Be(e){this.l[e.type+!0](s.event?s.event(e):e)}function Ce(e,t,n,r,i,o,l,_,p){var m,a,d,f,c,h,g,u,S,E,P,T,L,A,y,x=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(p=n.__h,_=t.__e=n.__e,t.__h=null,o=[_]),(m=s.__b)&&m(t);try{e:if(typeof x=="function"){if(u=t.props,S=(m=x.contextType)&&r[m.__c],E=m?S?S.props.value:m.__:r,n.__c?g=(a=t.__c=n.__c).__=a.__E:("prototype"in x&&x.prototype.render?t.__c=a=new x(u,E):(t.__c=a=new D(u,E),a.constructor=x,a.render=_n),S&&S.sub(a),a.props=u,a.state||(a.state={}),a.context=E,a.__n=r,d=a.__d=!0,a.__h=[],a._sb=[]),a.__s==null&&(a.__s=a.state),x.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=M({},a.__s)),M(a.__s,x.getDerivedStateFromProps(u,a.__s))),f=a.props,c=a.state,d)x.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(x.getDerivedStateFromProps==null&&u!==f&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(u,E),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(u,a.__s,E)===!1||t.__v===n.__v){for(a.props=u,a.state=a.__s,t.__v!==n.__v&&(a.__d=!1),a.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(O){O&&(O.__=t)}),P=0;P<a._sb.length;P++)a.__h.push(a._sb[P]);a._sb=[],a.__h.length&&l.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(u,a.__s,E),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(f,c,h)})}if(a.context=E,a.props=u,a.__v=t,a.__P=e,T=s.__r,L=0,"prototype"in x&&x.prototype.render){for(a.state=a.__s,a.__d=!1,T&&T(t),m=a.render(a.props,a.state,a.context),A=0;A<a._sb.length;A++)a.__h.push(a._sb[A]);a._sb=[]}else do a.__d=!1,T&&T(t),m=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++L<25);a.state=a.__s,a.getChildContext!=null&&(r=M(M({},r),a.getChildContext())),d||a.getSnapshotBeforeUpdate==null||(h=a.getSnapshotBeforeUpdate(f,c)),y=m!=null&&m.type===N&&m.key==null?m.props.children:m,Ge(e,Array.isArray(y)?y:[y],t,n,r,i,o,l,_,p),a.base=t.__e,t.__h=null,a.__h.length&&l.push(a),g&&(a.__E=a.__=null),a.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=sn(n.__e,t,n,r,i,o,l,p);(m=s.diffed)&&m(t)}catch(O){t.__v=null,(p||o!=null)&&(t.__e=_,t.__h=!!p,o[o.indexOf(_)]=null),s.__e(O,t,n)}}function Qe(e,t){s.__c&&s.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){s.__e(r,n.__v)}})}function sn(e,t,n,r,i,o,l,_){var p,m,a,d=n.props,f=t.props,c=t.type,h=0;if(c==="svg"&&(i=!0),o!=null){for(;h<o.length;h++)if((p=o[h])&&"setAttribute"in p==!!c&&(c?p.localName===c:p.nodeType===3)){e=p,o[h]=null;break}}if(e==null){if(c===null)return document.createTextNode(f);e=i?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c,f.is&&f),o=null,_=!1}if(c===null)d===f||_&&e.data===f||(e.data=f);else{if(o=o&&X.call(e.childNodes),m=(d=n.props||ne).dangerouslySetInnerHTML,a=f.dangerouslySetInnerHTML,!_){if(o!=null)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(a||m)&&(a&&(m&&a.__html==m.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(ln(e,f,d,i,_),a)t.__k=[];else if(h=t.props.children,Ge(e,Array.isArray(h)?h:[h],t,n,r,i&&c!=="foreignObject",o,l,o?o[0]:n.__k&&Y(n,0),_),o!=null)for(h=o.length;h--;)o[h]!=null&&Xe(o[h]);_||("value"in f&&(h=f.value)!==void 0&&(h!==e.value||c==="progress"&&!h||c==="option"&&h!==d.value)&&oe(e,"value",h,d.value,!1),"checked"in f&&(h=f.checked)!==void 0&&h!==e.checked&&oe(e,"checked",h,d.checked,!1))}return e}function et(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){s.__e(r,n)}}function tt(e,t,n){var r,i;if(s.unmount&&s.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||et(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){s.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&tt(r[i],t,n||typeof e.type!="function");n||e.__e==null||Xe(e.__e),e.__=e.__e=e.__d=void 0}function _n(e,t,n){return this.constructor(e,n)}function V(e,t,n){var r,i,o;s.__&&s.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],Ce(t,e=(!r&&n||t).__k=C(N,null,[e]),i||ne,ne,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?X.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r),Qe(o,e)}function Se(e,t){V(e,t,Se)}function nt(e,t,n){var r,i,o,l=M({},e.props);for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:l[o]=t[o];return arguments.length>2&&(l.children=arguments.length>3?X.call(arguments,2):n),I(e.type,l,r||e.key,i||e.ref,null)}function we(e,t){var n={__c:t="__cC"+Ie++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&i.some(xe)},this.sub=function(l){i.push(l);var _=l.componentWillUnmount;l.componentWillUnmount=function(){i.splice(i.indexOf(l),1),_&&_.call(l)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}X=Ye.slice,s={__e:function(e,t,n,r){for(var i,o,l;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),l=i.__d),l)return i.__E=i}catch(_){e=_}throw e}},qe=0,on=function(e){return e!=null&&e.constructor===void 0},D.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=M({},this.state),typeof e=="function"&&(e=e(M({},n),this.props)),e&&M(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),xe(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),xe(this))},D.prototype.render=N,q=[],re.__r=0,Ie=0;var un=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,ut=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,ie=/[\s\n\\/='"\0<>]/,ct=/^xlink:?./,cn=/["&<]/;function K(e){if(cn.test(e+="")===!1)return e;for(var t=0,n=0,r="",i="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 60:i="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=i,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var rt=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||" "))},ot=function(e,t,n){return String(e).length>(t||40)||!n&&String(e).indexOf(`
+`)!==-1||String(e).indexOf("<")!==-1},it={},fn=/([A-Z])/g;function ft(e){var t="";for(var n in e){var r=e[n];r!=null&&r!==""&&(t&&(t+=" "),t+=n[0]=="-"?n:it[n]||(it[n]=n.replace(fn,"-$1").toLowerCase()),t=typeof r=="number"&&un.test(n)===!1?t+": "+r+"px;":t+": "+r+";")}return t||void 0}function Ne(e,t){return Array.isArray(t)?t.reduce(Ne,e):t!=null&&t!==!1&&e.push(t),e}function at(){this.__d=!0}function pt(e,t){return{__v:e,context:t,props:e.props,setState:at,forceUpdate:at,__d:!0,__h:[]}}function ae(e,t){var n=e.contextType,r=n&&t[n.__c];return n!=null?r?r.props.value:n.__:t}var Ee=[];function Z(e,t,n,r,i,o){if(e==null||typeof e=="boolean")return"";if(typeof e!="object")return typeof e=="function"?"":K(e);var l=n.pretty,_=l&&typeof l=="string"?l:" ";if(Array.isArray(e)){for(var p="",m=0;m<e.length;m++)l&&m>0&&(p+=`
+`),p+=Z(e[m],t,n,r,i,o);return p}if(e.constructor!==void 0)return"";var a,d=e.type,f=e.props,c=!1;if(typeof d=="function"){if(c=!0,!n.shallow||!r&&n.renderRootComponent!==!1){if(d===N){var h=[];return Ne(h,e.props.children),Z(h,t,n,n.shallowHighOrder!==!1,i,o)}var g,u=e.__c=pt(e,t);s.__b&&s.__b(e);var S=s.__r;if(d.prototype&&typeof d.prototype.render=="function"){var E=ae(d,t);(u=e.__c=new d(f,E)).__v=e,u._dirty=u.__d=!0,u.props=f,u.state==null&&(u.state={}),u._nextState==null&&u.__s==null&&(u._nextState=u.__s=u.state),u.context=E,d.getDerivedStateFromProps?u.state=Object.assign({},u.state,d.getDerivedStateFromProps(u.props,u.state)):u.componentWillMount&&(u.componentWillMount(),u.state=u._nextState!==u.state?u._nextState:u.__s!==u.state?u.__s:u.state),S&&S(e),g=u.render(u.props,u.state,u.context)}else for(var P=ae(d,t),T=0;u.__d&&T++<25;)u.__d=!1,S&&S(e),g=d.call(e.__c,f,P);return u.getChildContext&&(t=Object.assign({},t,u.getChildContext())),s.diffed&&s.diffed(e),Z(g,t,n,n.shallowHighOrder!==!1,i,o)}d=(a=d).displayName||a!==Function&&a.name||function(ve){var ye=(Function.prototype.toString.call(ve).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!ye){for(var te=-1,ge=Ee.length;ge--;)if(Ee[ge]===ve){te=ge;break}te<0&&(te=Ee.push(ve)-1),ye="UnnamedComponent"+te}return ye}(a)}var L,A,y="<"+d;if(f){var x=Object.keys(f);n&&n.sortAttributes===!0&&x.sort();for(var O=0;O<x.length;O++){var v=x[O],k=f[v];if(v!=="children"){if(!ie.test(v)&&(n&&n.allAttributes||v!=="key"&&v!=="ref"&&v!=="__self"&&v!=="__source")){if(v==="defaultValue")v="value";else if(v==="defaultChecked")v="checked";else if(v==="defaultSelected")v="selected";else if(v==="className"){if(f.class!==void 0)continue;v="class"}else i&&ct.test(v)&&(v=v.toLowerCase().replace(/^xlink:?/,"xlink:"));if(v==="htmlFor"){if(f.for)continue;v="for"}v==="style"&&k&&typeof k=="object"&&(k=ft(k)),v[0]==="a"&&v[1]==="r"&&typeof k=="boolean"&&(k=String(k));var b=n.attributeHook&&n.attributeHook(v,k,t,n,c);if(b||b==="")y+=b;else if(v==="dangerouslySetInnerHTML")A=k&&k.__html;else if(d==="textarea"&&v==="value")L=k;else if((k||k===0||k==="")&&typeof k!="function"){if(!(k!==!0&&k!==""||(k=v,n&&n.xml))){y=y+" "+v;continue}if(v==="value"){if(d==="select"){o=k;continue}d==="option"&&o==k&&f.selected===void 0&&(y+=" selected")}y=y+" "+v+'="'+K(k)+'"'}}}else L=k}}if(l){var F=y.replace(/\n\s*/," ");F===y||~F.indexOf(`
+`)?l&&~y.indexOf(`
+`)&&(y+=`
+`):y=F}if(y+=">",ie.test(d))throw new Error(d+" is not a valid HTML tag name in "+y);var $,Kt=ut.test(d)||n.voidElements&&n.voidElements.test(d),R=[];if(A)l&&ot(A)&&(A=`
+`+_+rt(A,_)),y+=A;else if(L!=null&&Ne($=[],L).length){for(var pe=l&&~y.indexOf(`
+`),We=!1,de=0;de<$.length;de++){var he=$[de];if(he!=null&&he!==!1){var W=Z(he,t,n,!0,d==="svg"||d!=="foreignObject"&&i,o);if(l&&!pe&&ot(W)&&(pe=!0),W)if(l){var je=W.length>0&&W[0]!="<";We&&je?R[R.length-1]+=W:R.push(W),We=je}else R.push(W)}}if(l&&pe)for(var me=R.length;me--;)R[me]=`
+`+_+rt(R[me],_)}if(R.length||A)y+=R.join("");else if(n&&n.xml)return y.substring(0,y.length-1)+" />";return!Kt||$||A?(l&&~y.indexOf(`
+`)&&(y+=`
+`),y=y+"</"+d+">"):y=y.replace(/>$/," />"),y}var pn={shallow:!0};j.render=j;var dn=function(e,t){return j(e,t,pn)},lt=[];function j(e,t,n){t=t||{};var r=s.__s;s.__s=!0;var i,o=C(N,null);return o.__k=[e],i=n&&(n.pretty||n.voidElements||n.sortAttributes||n.shallow||n.allAttributes||n.xml||n.attributeHook)?Z(e,t,n):G(e,t,!1,void 0,o),s.__c&&s.__c(e,lt),s.__s=r,lt.length=0,i}function Ae(e){return e==null||typeof e=="boolean"?null:typeof e=="string"||typeof e=="number"||typeof e=="bigint"?C(null,null,e):e}function hn(e,t){return e==="className"?"class":e==="htmlFor"?"for":e==="defaultValue"?"value":e==="defaultChecked"?"checked":e==="defaultSelected"?"selected":t&&ct.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function mn(e,t){return e==="style"&&t!=null&&typeof t=="object"?ft(t):e[0]==="a"&&e[1]==="r"&&typeof t=="boolean"?String(t):t}var st=Array.isArray,_t=Object.assign;function G(e,t,n,r,i){if(e==null||e===!0||e===!1||e==="")return"";if(typeof e!="object")return typeof e=="function"?"":K(e);if(st(e)){var o="";i.__k=e;for(var l=0;l<e.length;l++)o+=G(e[l],t,n,r,i),e[l]=Ae(e[l]);return o}if(e.constructor!==void 0)return"";e.__=i,s.__b&&s.__b(e);var _=e.type,p=e.props;if(typeof _=="function"){var m;if(_===N)m=p.children;else{m=_.prototype&&typeof _.prototype.render=="function"?function(x,O){var v=x.type,k=ae(v,O),b=new v(x.props,k);x.__c=b,b.__v=x,b.__d=!0,b.props=x.props,b.state==null&&(b.state={}),b.__s==null&&(b.__s=b.state),b.context=k,v.getDerivedStateFromProps?b.state=_t({},b.state,v.getDerivedStateFromProps(b.props,b.state)):b.componentWillMount&&(b.componentWillMount(),b.state=b.__s!==b.state?b.__s:b.state);var F=s.__r;return F&&F(x),b.render(b.props,b.state,b.context)}(e,t):function(x,O){var v,k=pt(x,O),b=ae(x.type,O);x.__c=k;for(var F=s.__r,$=0;k.__d&&$++<25;)k.__d=!1,F&&F(x),v=x.type.call(k,x.props,b);return v}(e,t);var a=e.__c;a.getChildContext&&(t=_t({},t,a.getChildContext()))}var d=G(m=m!=null&&m.type===N&&m.key==null?m.props.children:m,t,n,r,e);return s.diffed&&s.diffed(e),e.__=void 0,s.unmount&&s.unmount(e),d}var f,c,h="<";if(h+=_,p)for(var g in f=p.children,p){var u=p[g];if(!(g==="key"||g==="ref"||g==="__self"||g==="__source"||g==="children"||g==="className"&&"class"in p||g==="htmlFor"&&"for"in p||ie.test(g))){if(u=mn(g=hn(g,n),u),g==="dangerouslySetInnerHTML")c=u&&u.__html;else if(_==="textarea"&&g==="value")f=u;else if((u||u===0||u==="")&&typeof u!="function"){if(u===!0||u===""){u=g,h=h+" "+g;continue}if(g==="value"){if(_==="select"){r=u;continue}_!=="option"||r!=u||"selected"in p||(h+=" selected")}h=h+" "+g+'="'+K(u)+'"'}}}var S=h;if(h+=">",ie.test(_))throw new Error(_+" is not a valid HTML tag name in "+h);var E="",P=!1;if(c)E+=c,P=!0;else if(typeof f=="string")E+=K(f),P=!0;else if(st(f)){e.__k=f;for(var T=0;T<f.length;T++){var L=f[T];if(f[T]=Ae(L),L!=null&&L!==!1){var A=G(L,t,_==="svg"||_!=="foreignObject"&&n,r,e);A&&(E+=A,P=!0)}}}else if(f!=null&&f!==!1&&f!==!0){e.__k=[Ae(f)];var y=G(f,t,_==="svg"||_!=="foreignObject"&&n,r,e);y&&(E+=y,P=!0)}if(s.diffed&&s.diffed(e),e.__=void 0,s.unmount&&s.unmount(e),P)h+=E;else if(ut.test(_))return S+" />";return h+"</"+_+">"}j.shallowRender=dn;function vn(e){var t={};return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var dt=vn;var yn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gn=dt(function(e){return yn.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ht=gn;var H,w,Oe,mt,z=0,Ct=[],le=[],vt=s.__b,yt=s.__r,gt=s.diffed,bt=s.__c,xt=s.unmount;function B(e,t){s.__h&&s.__h(w,e,z||t),z=0;var n=w.__H||(w.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:le}),n.__[e]}function Te(e){return z=1,Le(Pt,e)}function Le(e,t,n){var r=B(H++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Pt(void 0,t),function(o){var l=r.__N?r.__N[0]:r.__[0],_=r.t(l,o);l!==_&&(r.__N=[_,r.__[1]],r.__c.setState({}))}],r.__c=w,!w.u)){w.u=!0;var i=w.shouldComponentUpdate;w.shouldComponentUpdate=function(o,l,_){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(a){return a.__c});if(p.every(function(a){return!a.__N}))return!i||i.call(this,o,l,_);var m=!1;return p.forEach(function(a){if(a.__N){var d=a.__[0];a.__=a.__N,a.__N=void 0,d!==a.__[0]&&(m=!0)}}),!(!m&&r.__c.props===o)&&(!i||i.call(this,o,l,_))}}return r.__N||r.__}function De(e,t){var n=B(H++,3);!s.__s&&Ue(n.__H,t)&&(n.__=e,n.i=t,w.__H.__h.push(n))}function J(e,t){var n=B(H++,4);!s.__s&&Ue(n.__H,t)&&(n.__=e,n.i=t,w.__h.push(n))}function St(e){return z=5,_e(function(){return{current:e}},[])}function wt(e,t,n){z=6,J(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function _e(e,t){var n=B(H++,7);return Ue(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Et(e,t){return z=8,_e(function(){return e},t)}function At(e){var t=w.context[e.__c],n=B(H++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(w)),t.props.value):e.__}function Nt(e,t){s.useDebugValue&&s.useDebugValue(t?t(e):e)}function Ot(){var e=B(H++,11);if(!e.__){for(var t=w.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function bn(){for(var e;e=Ct.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(se),e.__H.__h.forEach(Pe),e.__H.__h=[]}catch(t){e.__H.__h=[],s.__e(t,e.__v)}}s.__b=function(e){w=null,vt&&vt(e)},s.__r=function(e){yt&&yt(e),H=0;var t=(w=e.__c).__H;t&&(Oe===w?(t.__h=[],w.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=le,n.__N=n.i=void 0})):(t.__h.forEach(se),t.__h.forEach(Pe),t.__h=[])),Oe=w},s.diffed=function(e){gt&&gt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ct.push(t)!==1&&mt===s.requestAnimationFrame||((mt=s.requestAnimationFrame)||xn)(bn)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==le&&(n.__=n.__V),n.i=void 0,n.__V=le})),Oe=w=null},s.__c=function(e,t){t.some(function(n){try{n.__h.forEach(se),n.__h=n.__h.filter(function(r){return!r.__||Pe(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],s.__e(r,n.__v)}}),bt&&bt(e,t)},s.unmount=function(e){xt&&xt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{se(r)}catch(i){t=i}}),n.__H=void 0,t&&s.__e(t,n.__v))};var kt=typeof requestAnimationFrame=="function";function xn(e){var t,n=function(){clearTimeout(r),kt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);kt&&(t=requestAnimationFrame(n))}function se(e){var t=w,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),w=t}function Pe(e){var t=w;e.__c=e.__(),w=t}function Ue(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Pt(e,t){return typeof t=="function"?t(e):t}function Wt(e,t){for(var n in t)e[n]=t[n];return e}function Re(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Fe(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function Me(e){this.props=e}function kn(e,t){function n(i){var o=this.props.ref,l=o==i.ref;return!l&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!l:Re(this.props,i)}function r(i){return this.shouldComponentUpdate=n,C(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Me.prototype=new D).isPureReactComponent=!0,Me.prototype.shouldComponentUpdate=function(e,t){return Re(this.props,e)||Re(this.state,t)};var Tt=s.__b;s.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Tt&&Tt(e)};var Cn=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Sn(e){function t(n){var r=Wt({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Cn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Lt=function(e,t){return e==null?null:U(U(e).map(t))},wn={map:Lt,forEach:Lt,count:function(e){return e?U(e).length:0},only:function(e){var t=U(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:U},En=s.__e;s.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}En(e,t,n,r)};var Dt=s.unmount;function jt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Wt({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return jt(r,t,n)})),e}function Ht(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ht(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function ue(){this.__u=0,this.t=null,this.__b=null}function $t(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function An(e){var t,n,r;function i(o){if(t||(t=e()).then(function(l){n=l.default||l},function(l){r=l}),r)throw r;if(!n)throw t;return C(n,o)}return i.displayName="Lazy",i.__f=!0,i}function Q(){this.u=null,this.o=null}s.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Dt&&Dt(e)},(ue.prototype=new D).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=$t(r.__v),o=!1,l=function(){o||(o=!0,n.__R=null,i?i(_):_())};n.__R=l;var _=function(){if(!--r.__u){if(r.state.__a){var m=r.state.__a;r.__v.__k[0]=Ht(m,m.__c.__P,m.__c.__O)}var a;for(r.setState({__a:r.__b=null});a=r.t.pop();)a.forceUpdate()}},p=t.__h===!0;r.__u++||p||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(l,l)},ue.prototype.componentWillUnmount=function(){this.t=[]},ue.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=jt(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&C(N,null,e.fallback);return i&&(i.__h=null),[C(N,null,t.__a?null:e.children),i]};var Ut=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Nn(e){return this.getChildContext=function(){return e.context},e.children}function On(e){var t=this,n=e.i;t.componentWillUnmount=function(){V(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),V(C(Nn,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Pn(e,t){var n=C(On,{__v:e,i:t});return n.containerInfo=t,n}(Q.prototype=new D).__a=function(e){var t=this,n=$t(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Ut(t,e,r)):i()};n?n(o):o()}},Q.prototype.render=function(e){this.u=null,this.o=new Map;var t=U(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Q.prototype.componentDidUpdate=Q.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ut(e,n,t)})};var zt=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Tn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ln=typeof document!="undefined",Dn=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};function Un(e,t,n){return t.__k==null&&(t.textContent=""),V(e,t),typeof n=="function"&&n(),e?e.__c:null}function Fn(e,t,n){return Se(e,t),typeof n=="function"&&n(),e?e.__c:null}D.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(D.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ft=s.event;function Rn(){}function Mn(){return this.cancelBubble}function Vn(){return this.defaultPrevented}s.event=function(e){return Ft&&(e=Ft(e)),e.persist=Rn,e.isPropagationStopped=Mn,e.isDefaultPrevented=Vn,e.nativeEvent=e};var Bt,Rt={configurable:!0,get:function(){return this.class}},Mt=s.vnode;s.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var o in r={},n){var l=n[o];Ln&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in n&&l==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&l===!0?l="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Dn(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&Tn.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():l===null&&(l=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o="oninputCapture")),r[o]=l)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=U(n.children).forEach(function(_){_.props.selected=r.value.indexOf(_.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=U(n.children).forEach(function(_){_.props.selected=r.multiple?r.defaultValue.indexOf(_.props.value)!=-1:r.defaultValue==_.props.value})),e.props=r,n.class!=n.className&&(Rt.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Rt))}e.$$typeof=zt,Mt&&Mt(e)};var Vt=s.__r;s.__r=function(e){Vt&&Vt(e),Bt=e.__c};var Wn={ReactCurrentDispatcher:{current:{readContext:function(e){return Bt.__n[e.__c].props.value}}}};function jn(e){return C.bind(null,e)}function qt(e){return!!e&&e.$$typeof===zt}function Hn(e){return qt(e)?nt.apply(null,arguments):e}function $n(e){return!!e.__k&&(V(null,e),!0)}function zn(e){return e&&(e.base||e.nodeType===1&&e)||null}var Bn=function(e,t){return e(t)},qn=function(e,t){return e(t)},In=N;function It(e){e()}function Yn(e){return e}function Xn(){return[!1,It]}var Zn=J;function Gn(e,t){var n=t(),r=Te({h:{__:n,v:t}}),i=r[0].h,o=r[1];return J(function(){i.__=n,i.v=t,Fe(i.__,t())||o({h:i})},[e,n,t]),De(function(){return Fe(i.__,i.v())||o({h:i}),e(function(){Fe(i.__,i.v())||o({h:i})})},[e]),n}var ee={useState:Te,useId:Ot,useReducer:Le,useEffect:De,useLayoutEffect:J,useInsertionEffect:Zn,useTransition:Xn,useDeferredValue:Yn,useSyncExternalStore:Gn,startTransition:It,useRef:St,useImperativeHandle:wt,useMemo:_e,useCallback:Et,useContext:At,useDebugValue:Nt,version:"17.0.2",Children:wn,render:Un,hydrate:Fn,unmountComponentAtNode:$n,createPortal:Pn,createElement:C,createContext:we,createFactory:jn,cloneElement:Hn,createRef:ke,Fragment:N,isValidElement:qt,findDOMNode:zn,Component:D,PureComponent:Me,memo:kn,forwardRef:Sn,flushSync:qn,unstable_batchedUpdates:Bn,StrictMode:In,Suspense:ue,SuspenseList:Q,lazy:An,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wn};var Kn=function(){let t=Array.prototype.slice.call(arguments).filter(Boolean),n={},r=[];t.forEach(o=>{(o?o.split(" "):[]).forEach(_=>{if(_.startsWith("atm_")){let[,p]=_.split("_");n[p]=_}else r.push(_)})});let i=[];for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.push(n[o]);return i.push(...r),i.join(" ")},ce=Kn;var Jn=e=>e.toUpperCase()===e,Qn=e=>t=>e.indexOf(t)===-1,Yt=(e,t)=>{let n={};return Object.keys(e).filter(Qn(t)).forEach(r=>{n[r]=e[r]}),n};function er(e,t,n){let r=Yt(t,n);return typeof e=="string"&&e.indexOf("-")===-1&&!Jn(e[0])&&Object.keys(r).forEach(i=>{ht(i)||delete r[i]}),r}var tr=(e,t)=>{};function nr(e){return t=>{let n=(i,o)=>{let{as:l=e,class:_}=i,p=er(l,i,["as","class"]);p.ref=o,p.className=t.atomic?ce(t.class,p.className||_):ce(p.className||_,t.class);let{vars:m}=t;if(m){let a={};for(let c in m){let h=m[c],g=h[0],u=h[1]||"",S=typeof g=="function"?g(i):g;tr(S,t.name),a[`--${c}`]=`${S}${u}`}let d=p.style||{},f=Object.keys(d);f.length>0&&f.forEach(c=>{a[c]=d[c]}),p.style=a}return e.__linaria&&e!==l?(p.as=l,ee.createElement(e,p)):ee.createElement(l,p)},r=ee.forwardRef?ee.forwardRef(n):i=>{let o=Yt(i,["innerRef"]);return n(o,i.innerRef)};return r.displayName=t.name,r.__linaria={className:t.class,extends:e},r}}var fe=nr;var Xt=fe("footer")({name:"FooterBar",class:"fef0x5t"}),Zt=fe("div")({name:"Page",class:"p1b3vqup"});function Gt(){return C(Xt,null,C("p",null,C("a",{href:"https://taler.net/"},"Learn more about GNU Taler on our website."),C("p",null,"Copyright \xA9 2014\u20142021 Taler Systems SA")))}function rr(){return C("title",null,"Status of your tip")}function Ve(){return C(Zt,null,C("section",null,C("h1",null,"Tip already collected"),C("div",null,"You have already collected this tip.")),C(Gt,null))}function or(){try{V(C(Ve,null),document.body)}catch(e){console.error("got error",e),e instanceof Error&&(document.body.innerText=`Fatal error: "${e.message}". Please report this bug at https://bugs.gnunet.org/.`)}}function ir(){return{head:j(C(rr,null)),body:j(C(Ve,null))}}return rn(ar);})();
</script>
- <script>page.mount()</script>
- </body>
-</html> \ No newline at end of file
+ <script>page.mount()</script>
+ </body>
+ </html> \ No newline at end of file
diff --git a/backend/offer_refund.en.html b/backend/offer_refund.en.html
index 528cf3ba9..4b1a9786f 100644
--- a/backend/offer_refund.en.html
+++ b/backend/offer_refund.en.html
@@ -1,9 +1,10 @@
-<!doctype html>
-<html>
- <head>
- <meta charSet="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><noscript><meta http-equiv="refresh" content="1" /></noscript><title>Refund available for {{ order_summary }}</title>
- <style>/*!
+ <!doctype html>
+ <html>
+ <head>
+ <meta charSet="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><noscript><meta http-equiv="refresh" content="1" /></noscript><title>Refund available for {{ order_summary }}</title>
+ <style>.q1ma0zxq{margin:auto;text-align:center;width:340px}.fef0x5t{text-align:center;background-color:#033;color:#fff;padding:1em;overflow:auto}.fef0x5t>p>a:link,.fef0x5t>p>a:visited,.fef0x5t>p>a:hover,.fef0x5t>p>a:active{color:#fff}.p1b3vqup{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:100vh;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.p1b3vqup a:link,.p1b3vqup a:visited,.p1b3vqup a:hover,.p1b3vqup a:active{color:#000}.p1b3vqup section{text-align:center;width:600px;margin-bottom:auto}.p1b3vqup section:not(:first-of-type){margin-top:2em}.p1b3vqup>header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:center}.p1b3vqup>footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;width:100%;margin-bottom:0}.c1gnd3xp{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.wpwjmk{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;text-transform:var(--wpwjmk-0);font-family:inherit;font-size:100%;padding:.5em 1em;color:#444;color:#000c;border:1px solid #999;border:none rgba(0,0,0,0);background-color:"#e6e6e6";-webkit-text-decoration:none;text-decoration:none;background-color:#e6e6e6;border-radius:4px;text-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.wpwjmk:focus{outline:0}.wpwjmk:disabled{border:none;background-image:none;-webkit-filter:alpha(opacity=40);filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.wpwjmk:hover{-webkit-filter:alpha(opacity=90);filter:alpha(opacity=90);background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.i1pkgksb{border-radius:.25em;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:1em;border:solid 1px #b8daff;background-color:#cce5ff;color:#004085}.t2c81u8{text-align:left}.t2c81u8 dt{font-weight:700;margin-top:1em}.t2c81u8 dd{margin-inline-start:0px}.t1mav7fx{text-align:left}.t1mav7fx dt{font-weight:700;display:inline-block;width:30%}.t1mav7fx dd{margin-inline-start:0px;display:inline-block;width:70%}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html{font-family:sans-serif}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}.pure-g{letter-spacing:-.31em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,Droid Sans,Helvetica,Arial,sans-serif;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-line-pack:start;align-content:flex-start}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-g [class*=pure-u]{font-family:sans-serif}.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}.pure-button{display:inline-block;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#000c;border:none transparent;background-color:#e6e6e6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{background-image:-webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(40%,rgba(0,0,0,.05)),to(rgba(0,0,0,.1)));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;opacity:.4;cursor:not-allowed;-webkit-box-shadow:none;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{margin:0;border-radius:0;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 3px #ddd;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 3px #ddd;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input[type=color]:focus,.pure-form input[type=date]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=email]:focus,.pure-form input[type=month]:focus,.pure-form input[type=number]:focus,.pure-form input[type=password]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=text]:focus,.pure-form input[type=time]:focus,.pure-form input[type=url]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129fea}.pure-form input:not([type]):focus{outline:0;border-color:#129fea}.pure-form input[type=checkbox]:focus,.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus{outline:thin solid #129fea;outline:1px auto #129fea}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input[type=color][disabled],.pure-form input[type=date][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=email][disabled],.pure-form input[type=month][disabled],.pure-form input[type=number][disabled],.pure-form input[type=password][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=text][disabled],.pure-form input[type=time][disabled],.pure-form input[type=url][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input:not([type])[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input[type=color],.pure-form-stacked input[type=date],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=email],.pure-form-stacked input[type=file],.pure-form-stacked input[type=month],.pure-form-stacked input[type=number],.pure-form-stacked input[type=password],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=text],.pure-form-stacked input[type=time],.pure-form-stacked input[type=url],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-stacked input:not([type]){display:block;margin:.25em 0}.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width: 480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=color],.pure-group input[type=date],.pure-group input[type=datetime-local],.pure-group input[type=datetime],.pure-group input[type=email],.pure-group input[type=month],.pure-group input[type=number],.pure-group input[type=password],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=text],.pure-group input[type=time],.pure-group input[type=url],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.pure-menu{-webkit-box-sizing:border-box;box-sizing:border-box}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;vertical-align:middle}.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25b8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25be"}.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;padding:.5em 0}.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected>.pure-menu-link,.pure-menu-selected>.pure-menu-link:visited{color:#000}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td{background-color:#f2f2f2}.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}.talerbar{text-align:center}.tt{font-family:Lucida Console,Monaco,monospace}.content{overflow-x:auto;padding-left:15%;padding-right:15%}.qr{margin:auto;text-align:center}.qrtext{width:max-content;margin:auto;transition:font-size .2s;font-family:Lucida Console,Monaco,monospace;font-size:.5em}.qrtext:hover{font-size:1em}.talerbar{margin:0;bottom:0;background-color:#033;color:#fff;width:100%;padding:1em;overflow:auto}body{overflow-y:scroll}@media (min-width: 500px){.content{padding-bottom:2em;overflow-y:auto}}#main a:link,#main a:visited,#main a:hover,#main a:active{color:#000}
+/*!
Pure v2.0.3
Copyright 2013 Yahoo!
Licensed under the BSD License.
@@ -14,968 +15,6 @@
Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
/*! normalize.cs s v8.0.1 | MIT License | github.com/necolas/normalize.cs s */
-
-.talerbar {
- text-align: center;
-}
-
-html {
- line-height: 1.15;
- -webkit-text-size-adjust: 100%;
-}
-body {
- margin: 0;
-}
-main {
- display: block;
-}
-h1 {
- font-size: 2em;
- margin: 0.67em 0;
-}
-hr {
- -webkit-box-sizing: content-box;
- box-sizing: content-box;
- height: 0;
- overflow: visible;
-}
-pre {
- font-family: monospace, monospace;
- font-size: 1em;
-}
-a {
- background-color: transparent;
-}
-abbr[title] {
- border-bottom: none;
- text-decoration: underline;
- -webkit-text-decoration: underline dotted;
- text-decoration: underline dotted;
-}
-b,
-strong {
- font-weight: bolder;
-}
-code,
-kbd,
-samp {
- font-family: monospace, monospace;
- font-size: 1em;
-}
-small {
- font-size: 80%;
-}
-sub,
-sup {
- font-size: 75%;
- line-height: 0;
- position: relative;
- vertical-align: baseline;
-}
-sub {
- bottom: -0.25em;
-}
-sup {
- top: -0.5em;
-}
-img {
- border-style: none;
-}
-button,
-input,
-optgroup,
-select,
-textarea {
- font-family: inherit;
- font-size: 100%;
- line-height: 1.15;
- margin: 0;
-}
-button,
-input {
- overflow: visible;
-}
-button,
-select {
- text-transform: none;
-}
-[type="button"],
-[type="reset"],
-[type="submit"],
-button {
- -webkit-appearance: button;
-}
-[type="button"]::-moz-focus-inner,
-[type="reset"]::-moz-focus-inner,
-[type="submit"]::-moz-focus-inner,
-button::-moz-focus-inner {
- border-style: none;
- padding: 0;
-}
-[type="button"]:-moz-focusring,
-[type="reset"]:-moz-focusring,
-[type="submit"]:-moz-focusring,
-button:-moz-focusring {
- outline: 1px dotted ButtonText;
-}
-fieldset {
- padding: 0.35em 0.75em 0.625em;
-}
-legend {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- color: inherit;
- display: table;
- max-width: 100%;
- padding: 0;
- white-space: normal;
-}
-progress {
- vertical-align: baseline;
-}
-textarea {
- overflow: auto;
-}
-[type="checkbox"],
-[type="radio"] {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- padding: 0;
-}
-[type="number"]::-webkit-inner-spin-button,
-[type="number"]::-webkit-outer-spin-button {
- height: auto;
-}
-[type="search"] {
- -webkit-appearance: textfield;
- outline-offset: -2px;
-}
-[type="search"]::-webkit-search-decoration {
- -webkit-appearance: none;
-}
-::-webkit-file-upload-button {
- -webkit-appearance: button;
- font: inherit;
-}
-details {
- display: block;
-}
-summary {
- display: list-item;
-}
-template {
- display: none;
-}
-[hidden] {
- display: none;
-}
-html {
- font-family: sans-serif;
-}
-.hidden,
-[hidden] {
- display: none !important;
-}
-.pure-img {
- max-width: 100%;
- height: auto;
- display: block;
-}
-.pure-g {
- letter-spacing: -0.31em;
- text-rendering: optimizespeed;
- font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-orient: horizontal;
- -webkit-box-direction: normal;
- -ms-flex-flow: row wrap;
- flex-flow: row wrap;
- -ms-flex-line-pack: start;
- align-content: flex-start;
-}
-@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
- table .pure-g {
- display: block;
- }
-}
-.opera-only :-o-prefocus,
-.pure-g {
- word-spacing: -0.43em;
-}
-.pure-u {
- display: inline-block;
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-g [class*="pure-u"] {
- font-family: sans-serif;
-}
-.pure-u-1,
-.pure-u-1-1,
-.pure-u-1-12,
-.pure-u-1-2,
-.pure-u-1-24,
-.pure-u-1-3,
-.pure-u-1-4,
-.pure-u-1-5,
-.pure-u-1-6,
-.pure-u-1-8,
-.pure-u-10-24,
-.pure-u-11-12,
-.pure-u-11-24,
-.pure-u-12-24,
-.pure-u-13-24,
-.pure-u-14-24,
-.pure-u-15-24,
-.pure-u-16-24,
-.pure-u-17-24,
-.pure-u-18-24,
-.pure-u-19-24,
-.pure-u-2-24,
-.pure-u-2-3,
-.pure-u-2-5,
-.pure-u-20-24,
-.pure-u-21-24,
-.pure-u-22-24,
-.pure-u-23-24,
-.pure-u-24-24,
-.pure-u-3-24,
-.pure-u-3-4,
-.pure-u-3-5,
-.pure-u-3-8,
-.pure-u-4-24,
-.pure-u-4-5,
-.pure-u-5-12,
-.pure-u-5-24,
-.pure-u-5-5,
-.pure-u-5-6,
-.pure-u-5-8,
-.pure-u-6-24,
-.pure-u-7-12,
-.pure-u-7-24,
-.pure-u-7-8,
-.pure-u-8-24,
-.pure-u-9-24 {
- display: inline-block;
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-u-1-24 {
- width: 4.1667%;
-}
-.pure-u-1-12,
-.pure-u-2-24 {
- width: 8.3333%;
-}
-.pure-u-1-8,
-.pure-u-3-24 {
- width: 12.5%;
-}
-.pure-u-1-6,
-.pure-u-4-24 {
- width: 16.6667%;
-}
-.pure-u-1-5 {
- width: 20%;
-}
-.pure-u-5-24 {
- width: 20.8333%;
-}
-.pure-u-1-4,
-.pure-u-6-24 {
- width: 25%;
-}
-.pure-u-7-24 {
- width: 29.1667%;
-}
-.pure-u-1-3,
-.pure-u-8-24 {
- width: 33.3333%;
-}
-.pure-u-3-8,
-.pure-u-9-24 {
- width: 37.5%;
-}
-.pure-u-2-5 {
- width: 40%;
-}
-.pure-u-10-24,
-.pure-u-5-12 {
- width: 41.6667%;
-}
-.pure-u-11-24 {
- width: 45.8333%;
-}
-.pure-u-1-2,
-.pure-u-12-24 {
- width: 50%;
-}
-.pure-u-13-24 {
- width: 54.1667%;
-}
-.pure-u-14-24,
-.pure-u-7-12 {
- width: 58.3333%;
-}
-.pure-u-3-5 {
- width: 60%;
-}
-.pure-u-15-24,
-.pure-u-5-8 {
- width: 62.5%;
-}
-.pure-u-16-24,
-.pure-u-2-3 {
- width: 66.6667%;
-}
-.pure-u-17-24 {
- width: 70.8333%;
-}
-.pure-u-18-24,
-.pure-u-3-4 {
- width: 75%;
-}
-.pure-u-19-24 {
- width: 79.1667%;
-}
-.pure-u-4-5 {
- width: 80%;
-}
-.pure-u-20-24,
-.pure-u-5-6 {
- width: 83.3333%;
-}
-.pure-u-21-24,
-.pure-u-7-8 {
- width: 87.5%;
-}
-.pure-u-11-12,
-.pure-u-22-24 {
- width: 91.6667%;
-}
-.pure-u-23-24 {
- width: 95.8333%;
-}
-.pure-u-1,
-.pure-u-1-1,
-.pure-u-24-24,
-.pure-u-5-5 {
- width: 100%;
-}
-.pure-button {
- display: inline-block;
- line-height: normal;
- white-space: nowrap;
- vertical-align: middle;
- text-align: center;
- cursor: pointer;
- -webkit-user-drag: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-button::-moz-focus-inner {
- padding: 0;
- border: 0;
-}
-.pure-button-group {
- letter-spacing: -0.31em;
- text-rendering: optimizespeed;
-}
-.opera-only :-o-prefocus,
-.pure-button-group {
- word-spacing: -0.43em;
-}
-.pure-button-group .pure-button {
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-button {
- font-family: inherit;
- font-size: 100%;
- padding: 0.5em 1em;
- color: rgba(0, 0, 0, 0.8);
- border: none transparent;
- background-color: #e6e6e6;
- text-decoration: none;
- border-radius: 2px;
-}
-.pure-button-hover,
-.pure-button:focus,
-.pure-button:hover {
- background-image: -webkit-gradient(
- linear,
- left top,
- left bottom,
- from(transparent),
- color-stop(40%, rgba(0, 0, 0, 0.05)),
- to(rgba(0, 0, 0, 0.1))
- );
- background-image: linear-gradient(
- transparent,
- rgba(0, 0, 0, 0.05) 40%,
- rgba(0, 0, 0, 0.1)
- );
-}
-.pure-button:focus {
- outline: 0;
-}
-.pure-button-active,
-.pure-button:active {
- -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset,
- 0 0 6px rgba(0, 0, 0, 0.2) inset;
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset,
- 0 0 6px rgba(0, 0, 0, 0.2) inset;
- border-color: #000;
-}
-.pure-button-disabled,
-.pure-button-disabled:active,
-.pure-button-disabled:focus,
-.pure-button-disabled:hover,
-.pure-button[disabled] {
- border: none;
- background-image: none;
- opacity: 0.4;
- cursor: not-allowed;
- -webkit-box-shadow: none;
- box-shadow: none;
- pointer-events: none;
-}
-.pure-button-hidden {
- display: none;
-}
-.pure-button-primary,
-.pure-button-selected,
-a.pure-button-primary,
-a.pure-button-selected {
- background-color: #0078e7;
- color: #fff;
-}
-.pure-button-group .pure-button {
- margin: 0;
- border-radius: 0;
- border-right: 1px solid rgba(0, 0, 0, 0.2);
-}
-.pure-button-group .pure-button:first-child {
- border-top-left-radius: 2px;
- border-bottom-left-radius: 2px;
-}
-.pure-button-group .pure-button:last-child {
- border-top-right-radius: 2px;
- border-bottom-right-radius: 2px;
- border-right: none;
-}
-.pure-form input[type="color"],
-.pure-form input[type="date"],
-.pure-form input[type="datetime-local"],
-.pure-form input[type="datetime"],
-.pure-form input[type="email"],
-.pure-form input[type="month"],
-.pure-form input[type="number"],
-.pure-form input[type="password"],
-.pure-form input[type="search"],
-.pure-form input[type="tel"],
-.pure-form input[type="text"],
-.pure-form input[type="time"],
-.pure-form input[type="url"],
-.pure-form input[type="week"],
-.pure-form select,
-.pure-form textarea {
- padding: 0.5em 0.6em;
- display: inline-block;
- border: 1px solid #ccc;
- -webkit-box-shadow: inset 0 1px 3px #ddd;
- box-shadow: inset 0 1px 3px #ddd;
- border-radius: 4px;
- vertical-align: middle;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-form input:not([type]) {
- padding: 0.5em 0.6em;
- display: inline-block;
- border: 1px solid #ccc;
- -webkit-box-shadow: inset 0 1px 3px #ddd;
- box-shadow: inset 0 1px 3px #ddd;
- border-radius: 4px;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-form input[type="color"] {
- padding: 0.2em 0.5em;
-}
-.pure-form input[type="color"]:focus,
-.pure-form input[type="date"]:focus,
-.pure-form input[type="datetime-local"]:focus,
-.pure-form input[type="datetime"]:focus,
-.pure-form input[type="email"]:focus,
-.pure-form input[type="month"]:focus,
-.pure-form input[type="number"]:focus,
-.pure-form input[type="password"]:focus,
-.pure-form input[type="search"]:focus,
-.pure-form input[type="tel"]:focus,
-.pure-form input[type="text"]:focus,
-.pure-form input[type="time"]:focus,
-.pure-form input[type="url"]:focus,
-.pure-form input[type="week"]:focus,
-.pure-form select:focus,
-.pure-form textarea:focus {
- outline: 0;
- border-color: #129fea;
-}
-.pure-form input:not([type]):focus {
- outline: 0;
- border-color: #129fea;
-}
-.pure-form input[type="checkbox"]:focus,
-.pure-form input[type="file"]:focus,
-.pure-form input[type="radio"]:focus {
- outline: thin solid #129fea;
- outline: 1px auto #129fea;
-}
-.pure-form .pure-checkbox,
-.pure-form .pure-radio {
- margin: 0.5em 0;
- display: block;
-}
-.pure-form input[type="color"][disabled],
-.pure-form input[type="date"][disabled],
-.pure-form input[type="datetime-local"][disabled],
-.pure-form input[type="datetime"][disabled],
-.pure-form input[type="email"][disabled],
-.pure-form input[type="month"][disabled],
-.pure-form input[type="number"][disabled],
-.pure-form input[type="password"][disabled],
-.pure-form input[type="search"][disabled],
-.pure-form input[type="tel"][disabled],
-.pure-form input[type="text"][disabled],
-.pure-form input[type="time"][disabled],
-.pure-form input[type="url"][disabled],
-.pure-form input[type="week"][disabled],
-.pure-form select[disabled],
-.pure-form textarea[disabled] {
- cursor: not-allowed;
- background-color: #eaeded;
- color: #cad2d3;
-}
-.pure-form input:not([type])[disabled] {
- cursor: not-allowed;
- background-color: #eaeded;
- color: #cad2d3;
-}
-.pure-form input[readonly],
-.pure-form select[readonly],
-.pure-form textarea[readonly] {
- background-color: #eee;
- color: #777;
- border-color: #ccc;
-}
-.pure-form input:focus:invalid,
-.pure-form select:focus:invalid,
-.pure-form textarea:focus:invalid {
- color: #b94a48;
- border-color: #e9322d;
-}
-.pure-form input[type="checkbox"]:focus:invalid:focus,
-.pure-form input[type="file"]:focus:invalid:focus,
-.pure-form input[type="radio"]:focus:invalid:focus {
- outline-color: #e9322d;
-}
-.pure-form select {
- height: 2.25em;
- border: 1px solid #ccc;
- background-color: #fff;
-}
-.pure-form select[multiple] {
- height: auto;
-}
-.pure-form label {
- margin: 0.5em 0 0.2em;
-}
-.pure-form fieldset {
- margin: 0;
- padding: 0.35em 0 0.75em;
- border: 0;
-}
-.pure-form legend {
- display: block;
- width: 100%;
- padding: 0.3em 0;
- margin-bottom: 0.3em;
- color: #333;
- border-bottom: 1px solid #e5e5e5;
-}
-.pure-form-stacked input[type="color"],
-.pure-form-stacked input[type="date"],
-.pure-form-stacked input[type="datetime-local"],
-.pure-form-stacked input[type="datetime"],
-.pure-form-stacked input[type="email"],
-.pure-form-stacked input[type="file"],
-.pure-form-stacked input[type="month"],
-.pure-form-stacked input[type="number"],
-.pure-form-stacked input[type="password"],
-.pure-form-stacked input[type="search"],
-.pure-form-stacked input[type="tel"],
-.pure-form-stacked input[type="text"],
-.pure-form-stacked input[type="time"],
-.pure-form-stacked input[type="url"],
-.pure-form-stacked input[type="week"],
-.pure-form-stacked label,
-.pure-form-stacked select,
-.pure-form-stacked textarea {
- display: block;
- margin: 0.25em 0;
-}
-.pure-form-stacked input:not([type]) {
- display: block;
- margin: 0.25em 0;
-}
-.pure-form-aligned input,
-.pure-form-aligned select,
-.pure-form-aligned textarea,
-.pure-form-message-inline {
- display: inline-block;
- vertical-align: middle;
-}
-.pure-form-aligned textarea {
- vertical-align: top;
-}
-.pure-form-aligned .pure-control-group {
- margin-bottom: 0.5em;
-}
-.pure-form-aligned .pure-control-group label {
- text-align: right;
- display: inline-block;
- vertical-align: middle;
- width: 10em;
- margin: 0 1em 0 0;
-}
-.pure-form-aligned .pure-controls {
- margin: 1.5em 0 0 11em;
-}
-.pure-form .pure-input-rounded,
-.pure-form input.pure-input-rounded {
- border-radius: 2em;
- padding: 0.5em 1em;
-}
-.pure-form .pure-group fieldset {
- margin-bottom: 10px;
-}
-.pure-form .pure-group input,
-.pure-form .pure-group textarea {
- display: block;
- padding: 10px;
- margin: 0 0 -1px;
- border-radius: 0;
- position: relative;
- top: -1px;
-}
-.pure-form .pure-group input:focus,
-.pure-form .pure-group textarea:focus {
- z-index: 3;
-}
-.pure-form .pure-group input:first-child,
-.pure-form .pure-group textarea:first-child {
- top: 1px;
- border-radius: 4px 4px 0 0;
- margin: 0;
-}
-.pure-form .pure-group input:first-child:last-child,
-.pure-form .pure-group textarea:first-child:last-child {
- top: 1px;
- border-radius: 4px;
- margin: 0;
-}
-.pure-form .pure-group input:last-child,
-.pure-form .pure-group textarea:last-child {
- top: -2px;
- border-radius: 0 0 4px 4px;
- margin: 0;
-}
-.pure-form .pure-group button {
- margin: 0.35em 0;
-}
-.pure-form .pure-input-1 {
- width: 100%;
-}
-.pure-form .pure-input-3-4 {
- width: 75%;
-}
-.pure-form .pure-input-2-3 {
- width: 66%;
-}
-.pure-form .pure-input-1-2 {
- width: 50%;
-}
-.pure-form .pure-input-1-3 {
- width: 33%;
-}
-.pure-form .pure-input-1-4 {
- width: 25%;
-}
-.pure-form-message-inline {
- display: inline-block;
- padding-left: 0.3em;
- color: #666;
- vertical-align: middle;
- font-size: 0.875em;
-}
-.pure-form-message {
- display: block;
- color: #666;
- font-size: 0.875em;
-}
-@media only screen and (max-width: 480px) {
- .pure-form button[type="submit"] {
- margin: 0.7em 0 0;
- }
- .pure-form input:not([type]),
- .pure-form input[type="color"],
- .pure-form input[type="date"],
- .pure-form input[type="datetime-local"],
- .pure-form input[type="datetime"],
- .pure-form input[type="email"],
- .pure-form input[type="month"],
- .pure-form input[type="number"],
- .pure-form input[type="password"],
- .pure-form input[type="search"],
- .pure-form input[type="tel"],
- .pure-form input[type="text"],
- .pure-form input[type="time"],
- .pure-form input[type="url"],
- .pure-form input[type="week"],
- .pure-form label {
- margin-bottom: 0.3em;
- display: block;
- }
- .pure-group input:not([type]),
- .pure-group input[type="color"],
- .pure-group input[type="date"],
- .pure-group input[type="datetime-local"],
- .pure-group input[type="datetime"],
- .pure-group input[type="email"],
- .pure-group input[type="month"],
- .pure-group input[type="number"],
- .pure-group input[type="password"],
- .pure-group input[type="search"],
- .pure-group input[type="tel"],
- .pure-group input[type="text"],
- .pure-group input[type="time"],
- .pure-group input[type="url"],
- .pure-group input[type="week"] {
- margin-bottom: 0;
- }
- .pure-form-aligned .pure-control-group label {
- margin-bottom: 0.3em;
- text-align: left;
- display: block;
- width: 100%;
- }
- .pure-form-aligned .pure-controls {
- margin: 1.5em 0 0 0;
- }
- .pure-form-message,
- .pure-form-message-inline {
- display: block;
- font-size: 0.75em;
- padding: 0.2em 0 0.8em;
- }
-}
-.pure-menu {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-menu-fixed {
- position: fixed;
- left: 0;
- top: 0;
- z-index: 3;
-}
-.pure-menu-item,
-.pure-menu-list {
- position: relative;
-}
-.pure-menu-list {
- list-style: none;
- margin: 0;
- padding: 0;
-}
-.pure-menu-item {
- padding: 0;
- margin: 0;
- height: 100%;
-}
-.pure-menu-heading,
-.pure-menu-link {
- display: block;
- text-decoration: none;
- white-space: nowrap;
-}
-.pure-menu-horizontal {
- width: 100%;
- white-space: nowrap;
-}
-.pure-menu-horizontal .pure-menu-list {
- display: inline-block;
-}
-.pure-menu-horizontal .pure-menu-heading,
-.pure-menu-horizontal .pure-menu-item,
-.pure-menu-horizontal .pure-menu-separator {
- display: inline-block;
- vertical-align: middle;
-}
-.pure-menu-item .pure-menu-item {
- display: block;
-}
-.pure-menu-children {
- display: none;
- position: absolute;
- left: 100%;
- top: 0;
- margin: 0;
- padding: 0;
- z-index: 3;
-}
-.pure-menu-horizontal .pure-menu-children {
- left: 0;
- top: auto;
- width: inherit;
-}
-.pure-menu-active > .pure-menu-children,
-.pure-menu-allow-hover:hover > .pure-menu-children {
- display: block;
- position: absolute;
-}
-.pure-menu-has-children > .pure-menu-link:after {
- padding-left: 0.5em;
- content: "\25B8";
- font-size: small;
-}
-.pure-menu-horizontal .pure-menu-has-children > .pure-menu-link:after {
- content: "\25BE";
-}
-.pure-menu-scrollable {
- overflow-y: scroll;
- overflow-x: hidden;
-}
-.pure-menu-scrollable .pure-menu-list {
- display: block;
-}
-.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list {
- display: inline-block;
-}
-.pure-menu-horizontal.pure-menu-scrollable {
- white-space: nowrap;
- overflow-y: hidden;
- overflow-x: auto;
- padding: 0.5em 0;
-}
-.pure-menu-horizontal .pure-menu-children .pure-menu-separator,
-.pure-menu-separator {
- background-color: #ccc;
- height: 1px;
- margin: 0.3em 0;
-}
-.pure-menu-horizontal .pure-menu-separator {
- width: 1px;
- height: 1.3em;
- margin: 0 0.3em;
-}
-.pure-menu-horizontal .pure-menu-children .pure-menu-separator {
- display: block;
- width: auto;
-}
-.pure-menu-heading {
- text-transform: uppercase;
- color: #565d64;
-}
-.pure-menu-link {
- color: #777;
-}
-.pure-menu-children {
- background-color: #fff;
-}
-.pure-menu-disabled,
-.pure-menu-heading,
-.pure-menu-link {
- padding: 0.5em 1em;
-}
-.pure-menu-disabled {
- opacity: 0.5;
-}
-.pure-menu-disabled .pure-menu-link:hover {
- background-color: transparent;
-}
-.pure-menu-active > .pure-menu-link,
-.pure-menu-link:focus,
-.pure-menu-link:hover {
- background-color: #eee;
-}
-.pure-menu-selected > .pure-menu-link,
-.pure-menu-selected > .pure-menu-link:visited {
- color: #000;
-}
-.pure-table {
- border-collapse: collapse;
- border-spacing: 0;
- empty-cells: show;
- border: 1px solid #cbcbcb;
-}
-.pure-table caption {
- color: #000;
- font: italic 85%/1 arial, sans-serif;
- padding: 1em 0;
- text-align: center;
-}
-.pure-table td,
-.pure-table th {
- border-left: 1px solid #cbcbcb;
- border-width: 0 0 0 1px;
- font-size: inherit;
- margin: 0;
- overflow: visible;
- padding: 0.5em 1em;
-}
-.pure-table thead {
- background-color: #e0e0e0;
- color: #000;
- text-align: left;
- vertical-align: bottom;
-}
-.pure-table td {
- background-color: transparent;
-}
-.pure-table-odd td {
- background-color: #f2f2f2;
-}
-.pure-table-striped tr:nth-child(2n-1) td {
- background-color: #f2f2f2;
-}
-.pure-table-bordered td {
- border-bottom: 1px solid #cbcbcb;
-}
-.pure-table-bordered tbody > tr:last-child > td {
- border-bottom-width: 0;
-}
-.pure-table-horizontal td,
-.pure-table-horizontal th {
- border-width: 0 0 1px 0;
- border-bottom: 1px solid #cbcbcb;
-}
-.pure-table-horizontal tbody > tr:last-child > td {
- border-bottom-width: 0;
-}
/*!
Pure v2.0.3
Copyright 2013 Yahoo!
@@ -987,2755 +26,26 @@ a.pure-button-selected {
Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
/*! normalize.ss v8.0.1 | MIT License | github.com/necolas/normalize.cs */
-
-.talerbar {
- text-align: center;
-}
-.tt {
- font-family: "Lucida Console", Monaco, monospace;
-}
-.content {
- overflow-x: auto;
- padding-left: 15%;
- padding-right: 15%;
-}
-.qr {
- margin: auto;
- text-align: center;
-}
-.qrtext {
- width: max-content;
- margin: auto;
- transition: font-size 0.2s;
- font-family: "Lucida Console", Monaco, monospace;
- font-size: 0.5em;
-}
-.qrtext:hover {
- font-size: 1em;
-}
-.talerbar {
- margin: 0;
- bottom: 0;
- background-color: #033;
- color: white;
- width: 100%;
- padding: 1em;
- overflow: auto;
-}
-body {
- overflow-y: scroll;
-}
-@media (min-width: 500px) {
- .content {
- padding-bottom: 2em;
- overflow-y: auto;
- }
-}
-#main a:link,
-#main a:visited,
-#main a:hover,
-#main a:active {
- color: black;
-}.q1ma0zxq{margin:auto;text-align:center;width:340px;}
-.fef0x5t{text-align:center;background-color:#033;color:white;padding:1em;overflow:auto;}.fef0x5t > p > a:link,.fef0x5t > p > a:visited,.fef0x5t > p > a:hover,.fef0x5t > p > a:active{color:white;}
-.p1b3vqup{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:100vh;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.p1b3vqup a:link,.p1b3vqup a:visited,.p1b3vqup a:hover,.p1b3vqup a:active{color:black;}.p1b3vqup section{text-align:center;width:600px;margin-bottom:auto;}.p1b3vqup section:not(:first-of-type){margin-top:2em;}.p1b3vqup > header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:center;}.p1b3vqup > footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;width:100%;margin-bottom:0px;}
-.c1gnd3xp{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
-.wpwjmk{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;text-transform:var(--wpwjmk-0);font-family:inherit;font-size:100%;padding:0.5em 1em;color:#444;color:rgba(0,0,0,0.8);border:1px solid #999;border:none rgba(0,0,0,0);background-color:'#e6e6e6';-webkit-text-decoration:none;text-decoration:none;border-radius:2px;background-color:#e6e6e6;border-radius:4px;text-shadow:0 1px 1px rgba(0,0,0,0.2);box-shadow:0 0 0 1px rgba(0,0,0,0.15) inset, 0 0 6px rgba(0,0,0,0.2) inset;border-color:#000;}.wpwjmk:focus{outline:0;}.wpwjmk:disabled{border:none;background-image:none;-webkit-filter:alpha(opacity=40);filter:alpha(opacity=40);opacity:0.4;cursor:not-allowed;box-shadow:none;pointer-events:none;}.wpwjmk:hover{-webkit-filter:alpha(opacity=90);filter:alpha(opacity=90);background-image:linear-gradient( transparent, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.1) );}
-.i1pkgksb{border-radius:0.25em;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:1em;border:solid 1px #b8daff;background-color:#cce5ff;color:#004085;}
-.t2c81u8{text-align:left;}.t2c81u8 dt{font-weight:bold;margin-top:1em;}.t2c81u8 dd{margin-inline-start:0px;}
-.t1mav7fx{text-align:left;}.t1mav7fx dt{font-weight:bold;display:inline-block;width:30%;}.t1mav7fx dd{margin-inline-start:0px;display:inline-block;width:70%;}
-/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3NlYmFzam0vV29yay90YWxlci93YWxsZXQtY29yZS9wYWNrYWdlcy9tZXJjaGFudC1iYWNrZW5kLXVpL3NyYy9zdHlsZWQvaW5kZXgudHN4Il0sIm5hbWVzIjpbIi5xMW1hMHp4cSIsIi5mZWYweDV0IiwiLnAxYjN2cXVwIiwiLmMxZ25kM3hwIiwiLndwd2ptayIsIi5pMXBrZ2tzYiIsIi50MmM4MXU4IiwiLnQxbWF2N2Z4Il0sIm1hcHBpbmdzIjoiQUFvQmFBO0FBS0FDO0FBY0FDO0FBdUNBQztBQUlBQztBQXVEQUM7QUFVQUM7QUFVQUMiLCJmaWxlIjoiL2hvbWUvc2ViYXNqbS9Xb3JrL3RhbGVyL3dhbGxldC1jb3JlL3BhY2thZ2VzL21lcmNoYW50LWJhY2tlbmQtdWkvc3JjL3N0eWxlZC9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgZmlsZSBpcyBwYXJ0IG9mIEdOVSBUYWxlclxuIChDKSAyMDIxIFRhbGVyIFN5c3RlbXMgUy5BLlxuXG4gR05VIFRhbGVyIGlzIGZyZWUgc29mdHdhcmU7IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnkgaXQgdW5kZXIgdGhlXG4gdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieSB0aGUgRnJlZSBTb2Z0d2FyZVxuIEZvdW5kYXRpb247IGVpdGhlciB2ZXJzaW9uIDMsIG9yIChhdCB5b3VyIG9wdGlvbikgYW55IGxhdGVyIHZlcnNpb24uXG5cbiBHTlUgVGFsZXIgaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCwgYnV0IFdJVEhPVVQgQU5ZXG4gV0FSUkFOVFk7IHdpdGhvdXQgZXZlbiB0aGUgaW1wbGllZCB3YXJyYW50eSBvZiBNRVJDSEFOVEFCSUxJVFkgb3IgRklUTkVTUyBGT1JcbiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4gIFNlZSB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0YWlscy5cblxuIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFsb25nIHdpdGhcbiBHTlUgVGFsZXI7IHNlZSB0aGUgZmlsZSBDT1BZSU5HLiAgSWYgbm90LCBzZWUgPGh0dHA6Ly93d3cuZ251Lm9yZy9saWNlbnNlcy8+XG4gKi9cbi8qKlxuKlxuKiBAYXV0aG9yIFNlYmFzdGlhbiBKYXZpZXIgTWFyY2hhbm8gKHNlYmFzam0pXG4qL1xuaW1wb3J0IHsgc3R5bGVkIH0gZnJvbSAnQGxpbmFyaWEvcmVhY3QnO1xuZXhwb3J0IGNvbnN0IFFSUGxhY2Vob2xkZXIgPSBzdHlsZWQuZGl2IGBcbiAgbWFyZ2luOiBhdXRvO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHdpZHRoOiAzNDBweDsgXG5gO1xuZXhwb3J0IGNvbnN0IEZvb3RlckJhciA9IHN0eWxlZC5mb290ZXIgYFxuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGJhY2tncm91bmQtY29sb3I6ICMwMzM7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgcGFkZGluZzogMWVtO1xuICBvdmVyZmxvdzogYXV0bztcblxuICAmID4gcCA+IGE6bGluayxcbiAgJiA+IHAgPiBhOnZpc2l0ZWQsXG4gICYgPiBwID4gYTpob3ZlcixcbiAgJiA+IHAgPiBhOmFjdGl2ZSB7XG4gICAgY29sb3I6IHdoaXRlO1xuICB9XG5gO1xuZXhwb3J0IGNvbnN0IFBhZ2UgPSBzdHlsZWQuZGl2IGBcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICBtaW4taGVpZ2h0OiAxMDB2aDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgXG4gIGE6bGluayxcbiAgYTp2aXNpdGVkLFxuICBhOmhvdmVyLFxuICBhOmFjdGl2ZSB7XG4gICAgY29sb3I6IGJsYWNrO1xuICB9XG4gIFxuICBzZWN0aW9uIHtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgd2lkdGg6IDYwMHB4O1xuICAgIC8qIG1hcmdpbjogYXV0bzsgKi9cbiAgICAvKiBtYXJnaW4tdG9wOiAwcHg7ICovXG4gICAgbWFyZ2luLWJvdHRvbTogYXV0bztcbiAgICAvKiBvdmVyZmxvdzogYXV0bzsgKi9cbiAgfVxuICBzZWN0aW9uOm5vdCg6Zmlyc3Qtb2YtdHlwZSkge1xuICAgIG1hcmdpbi10b3A6IDJlbTtcbiAgfVxuICAmID4gaGVhZGVyIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgfVxuICAmID4gZm9vdGVyIHtcbiAgICBkaXNwbGF5OiBmbGV4OyAgICBcbiAgICBmbGV4LWRpcmVjdGlvbjogcm93O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIG1hcmdpbi1ib3R0b206IDBweDtcbiAgfVxuYDtcbmV4cG9ydCBjb25zdCBDZW50ZXIgPSBzdHlsZWQuZGl2IGBcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5gO1xuZXhwb3J0IGNvbnN0IFdhbGxldExpbmsgPSBzdHlsZWQuYSBgXG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgem9vbTogMTtcbiAgbGluZS1oZWlnaHQ6IG5vcm1hbDtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgdmVydGljYWwtYWxpZ246IG1pZGRsZTtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIHVzZXItc2VsZWN0OiBub25lO1xuICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICB0ZXh0LXRyYW5zZm9ybTogJHsoeyB1cHBlckNhc2VkIH0pID0+IHVwcGVyQ2FzZWQgPyAndXBwZXJjYXNlJyA6ICdub25lJ307XG5cbiAgZm9udC1mYW1pbHk6IGluaGVyaXQ7XG4gIGZvbnQtc2l6ZTogMTAwJTtcbiAgcGFkZGluZzogMC41ZW0gMWVtO1xuICBjb2xvcjogIzQ0NDsgLyogcmdiYSBub3Qgc3VwcG9ydGVkIChJRSA4KSAqL1xuICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjgpOyAvKiByZ2JhIHN1cHBvcnRlZCAqL1xuICBib3JkZXI6IDFweCBzb2xpZCAjOTk5OyAvKklFIDYvNy84Ki9cbiAgYm9yZGVyOiBub25lIHJnYmEoMCwgMCwgMCwgMCk7IC8qSUU5ICsgZXZlcnl0aGluZyBlbHNlKi9cbiAgYmFja2dyb3VuZC1jb2xvcjogJyNlNmU2ZTYnO1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIGJvcmRlci1yYWRpdXM6IDJweDtcblxuICA6Zm9jdXMge1xuICAgIG91dGxpbmU6IDA7XG4gIH1cblxuICAmOmRpc2FibGVkIHtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogbm9uZTtcbiAgICAvKiBjc3NsaW50IGlnbm9yZTpzdGFydCAqL1xuICAgIGZpbHRlcjogYWxwaGEob3BhY2l0eT00MCk7XG4gICAgLyogY3NzbGludCBpZ25vcmU6ZW5kICovXG4gICAgb3BhY2l0eTogMC40O1xuICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgYm94LXNoYWRvdzogbm9uZTtcbiAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcbiAgfVxuXG4gIDpob3ZlciB7XG4gICAgZmlsdGVyOiBhbHBoYShvcGFjaXR5PTkwKTtcbiAgICBiYWNrZ3JvdW5kLWltYWdlOiBsaW5lYXItZ3JhZGllbnQoXG4gICAgICB0cmFuc3BhcmVudCxcbiAgICAgIHJnYmEoMCwgMCwgMCwgMC4wNSkgNDAlLFxuICAgICAgcmdiYSgwLCAwLCAwLCAwLjEpXG4gICAgKTtcbiAgfVxuXG4gIGJhY2tncm91bmQtY29sb3I6ICNlNmU2ZTY7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgdGV4dC1zaGFkb3c6IDAgMXB4IDFweCByZ2JhKDAsIDAsIDAsIDAuMik7XG4gIGJveC1zaGFkb3c6IDAgMCAwIDFweCByZ2JhKDAsIDAsIDAsIDAuMTUpIGluc2V0LFxuICAgIDAgMCA2cHggcmdiYSgwLCAwLCAwLCAwLjIpIGluc2V0O1xuICBib3JkZXItY29sb3I6ICMwMDA7XG5gO1xuZXhwb3J0IGNvbnN0IEluZm9Cb3ggPSBzdHlsZWQuZGl2IGBcbiAgYm9yZGVyLXJhZGl1czogMC4yNWVtO1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAvKiBtYXJnaW46IDAuNWVtOyAqL1xuICBwYWRkaW5nOiAxZW07XG4gIC8qIHdpZHRoOiAxMDAlOyAqL1xuICBib3JkZXI6c29saWQgMXB4ICNiOGRhZmY7XG4gIGJhY2tncm91bmQtY29sb3I6I2NjZTVmZjtcbiAgY29sb3I6IzAwNDA4NTtcbmA7XG5leHBvcnQgY29uc3QgVGFibGVFeHBhbmRlZCA9IHN0eWxlZC5kbCBgXG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIGR0IHtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICBtYXJnaW4tdG9wOiAxZW07XG4gIH1cbiAgZGQge1xuICAgIG1hcmdpbi1pbmxpbmUtc3RhcnQ6IDBweDtcbiAgfVxuYDtcbmV4cG9ydCBjb25zdCBUYWJsZVNpbXBsZSA9IHN0eWxlZC5kbCBgXG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIGR0IHtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgd2lkdGg6MzAlO1xuICB9XG4gIGRkIHtcbiAgICBtYXJnaW4taW5saW5lLXN0YXJ0OiAwcHg7XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIHdpZHRoOjcwJTtcbiAgfVxuYDtcbiJdfQ==*/</style>
- </head>
- <script id="built_time_data">
- </script>
- <body>
- <div class="p1b3vqup"><section><h1>Collect Taler refund</h1><p>Scan this QR code with your Taler mobile wallet:</p><div class="q1ma0zxq">{{{ taler_refund_qrcode_svg }}}</div><p><a href="{{ taler_refund_uri }}" style="--wpwjmk-0: none;" class="wpwjmk">Or open your Taler wallet</a></p><p><a href="https://wallet.taler.net/">Don't have a Taler wallet yet? Install it!</a></p></section><footer class="fef0x5t"><p><a href="https://taler.net/">Learn more about GNU Taler on our website.</a><p>Copyright © 2014—2021 Taler Systems SA</p></p></footer></div>
- <script>var page = (function (exports) {
- 'use strict';
-
- var n$1,l$2,u$2,t$1,o$2,r$1,f$2={},e$1=[],c$2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s$2(n,l){for(var u in l)n[u]=l[u];return n}function a$2(n){var l=n.parentNode;l&&l.removeChild(n);}function h$2(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v$2(l,f,t,o,null)}function v$2(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$2:r};return null==r&&null!=l$2.vnode&&l$2.vnode(f),f}function y$2(){return {current:null}}function p$2(n){return n.children}function d$2(n,l){this.props=n,this.context=l;}function _$2(n,l){if(null==l)return n.__?_$2(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?_$2(n):null}function k$3(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k$3(n)}}function b$2(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$3.__r++||o$2!==l$2.debounceRendering)&&((o$2=l$2.debounceRendering)||setTimeout)(g$3);}function g$3(){for(var n;g$3.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s$2({},t)).__v=t.__v+1,j$3(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_$2(t):o,t.__h),z$2(u,t),t.__e!=o&&k$3(t)));});}function w$3(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e$1,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$2(null,k,null,null,k):Array.isArray(k)?v$2(p$2,{children:k},null,null,null):k.__b>0?v$2(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j$3(n,k,d=d||f$2,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m$2(k,s,n):s=A$3(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_$2(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&N$1(x[h],x[h]);if(w)for(h=0;h<w.length;h++)M$1(w[h],w[++h],w[++h]);}function m$2(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m$2(i,l,u):A$3(u,i,i,t,i.__e,l));return l}function x$3(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){x$3(n,l);}):l.push(n)),l}function A$3(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C$2(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H$1(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H$1(n,o,l[o],u[o],i);}function $$1(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c$2.test(l)?u:u+"px";}function H$1(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$$1(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$$1(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$2:I$1,o):n.removeEventListener(l,o?T$2:I$1,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function I$1(n){this.l[n.type+!1](l$2.event?l$2.event(n):n);}function T$2(n){this.l[n.type+!0](l$2.event?l$2.event(n):n);}function j$3(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H,I,T=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l$2.__b)&&a(u);try{n:if("function"==typeof T){if(g=u.props,m=(a=T.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in T&&T.prototype.render?u.__c=h=new T(g,x):(u.__c=h=new d$2(g,x),h.constructor=T,h.render=O$2),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s$2({},h.__s)),s$2(h.__s,T.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==T.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){for(h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,C=l$2.__r,$=0,"prototype"in T&&T.prototype.render){for(h.state=h.__s,h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(t=s$2(s$2({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),I=null!=a&&a.type===p$2&&null==a.key?a.props.children:a,w$3(n,Array.isArray(I)?I:[I],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L$1(i.__e,u,i,t,o,r,f,c);(a=l$2.diffed)&&a(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$2.__e(n,u,i);}}function z$2(n,u){l$2.__c&&l$2.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$2.__e(n,u.__v);}});}function L$1(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n$1.call(l.childNodes),h=(y=i.props||f$2).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C$2(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w$3(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_$2(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a$2(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H$1(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H$1(l,"checked",k,y.checked,!1));}return l}function M$1(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$2.__e(n,i);}}function N$1(n,u,i){var t,o;if(l$2.unmount&&l$2.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M$1(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$2.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N$1(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||a$2(n.__e),n.__=n.__e=n.__d=void 0;}function O$2(n,l,u){return this.constructor(n,u)}function P$1(u,i,t){var o,r,e;l$2.__&&l$2.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j$3(i,u=(!o&&t||i).__k=h$2(p$2,null,[u]),r||f$2,f$2,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n$1.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z$2(e,u);}function S$1(n,l){P$1(n,l,S$1);}function q$2(l,u,i){var t,o,r,f=s$2({},l.props);for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];return arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):i),v$2(l.type,f,t||l.key,o||l.ref,null)}function B$2(n,l){var u={__c:l="__cC"+r$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(b$2);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n$1=e$1.slice,l$2={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$2=0,d$2.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s$2({},this.state),"function"==typeof n&&(n=n(s$2({},u),this.props)),n&&s$2(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),b$2(this));},d$2.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b$2(this));},d$2.prototype.render=p$2,t$1=[],g$3.__r=0,r$1=0;
-
- var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,o$1=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,i$1=/[\s\n\\/='"\0<>]/,l$1=/^xlink:?./,a$1=/["&<]/;function s$1(e){if(!1===a$1.test(e+=""))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1;}return r!==t&&(n+=e.slice(t,r)),n}var f$1=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},u$1=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},c$1={},_$1=/([A-Z])/g;function p$1(e){var t="";for(var r in e){var o=e[r];null!=o&&""!==o&&(t&&(t+=" "),t+="-"==r[0]?r:c$1[r]||(c$1[r]=r.replace(_$1,"-$1").toLowerCase()),t="number"==typeof o&&!1===n.test(r)?t+": "+o+"px;":t+": "+o+";");}return t||void 0}function d$1(e,t){return Array.isArray(t)?t.reduce(d$1,e):null!=t&&!1!==t&&e.push(t),e}function v$1(){this.__d=!0;}function h$1(e,t){return {__v:e,context:t,props:e.props,setState:v$1,forceUpdate:v$1,__d:!0,__h:[]}}function g$2(e,t){var r=e.contextType,n=r&&t[r.__c];return null!=r?n?n.props.value:r.__:t}var y$1=[];function m$1(r,n,a,c,_,v){if(null==r||"boolean"==typeof r)return "";if("object"!=typeof r)return "function"==typeof r?"":s$1(r);var b=a.pretty,x=b&&"string"==typeof b?b:"\t";if(Array.isArray(r)){for(var k="",S=0;S<r.length;S++)b&&S>0&&(k+="\n"),k+=m$1(r[S],n,a,c,_,v);return k}if(void 0!==r.constructor)return "";var w,C=r.type,O=r.props,j=!1;if("function"==typeof C){if(j=!0,!a.shallow||!c&&!1!==a.renderRootComponent){if(C===p$2){var A=[];return d$1(A,r.props.children),m$1(A,n,a,!1!==a.shallowHighOrder,_,v)}var F,H=r.__c=h$1(r,n);l$2.__b&&l$2.__b(r);var M=l$2.__r;if(C.prototype&&"function"==typeof C.prototype.render){var L=g$2(C,n);(H=r.__c=new C(O,L)).__v=r,H._dirty=H.__d=!0,H.props=O,null==H.state&&(H.state={}),null==H._nextState&&null==H.__s&&(H._nextState=H.__s=H.state),H.context=L,C.getDerivedStateFromProps?H.state=Object.assign({},H.state,C.getDerivedStateFromProps(H.props,H.state)):H.componentWillMount&&(H.componentWillMount(),H.state=H._nextState!==H.state?H._nextState:H.__s!==H.state?H.__s:H.state),M&&M(r),F=H.render(H.props,H.state,H.context);}else for(var T=g$2(C,n),E=0;H.__d&&E++<25;)H.__d=!1,M&&M(r),F=C.call(r.__c,O,T);return H.getChildContext&&(n=Object.assign({},n,H.getChildContext())),l$2.diffed&&l$2.diffed(r),m$1(F,n,a,!1!==a.shallowHighOrder,_,v)}C=(w=C).displayName||w!==Function&&w.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=y$1.length;n--;)if(y$1[n]===e){r=n;break}r<0&&(r=y$1.push(e)-1),t="UnnamedComponent"+r;}return t}(w);}var $,D,N="<"+C;if(O){var P=Object.keys(O);a&&!0===a.sortAttributes&&P.sort();for(var W=0;W<P.length;W++){var I=P[W],R=O[I];if("children"!==I){if(!i$1.test(I)&&(a&&a.allAttributes||"key"!==I&&"ref"!==I&&"__self"!==I&&"__source"!==I)){if("defaultValue"===I)I="value";else if("defaultChecked"===I)I="checked";else if("defaultSelected"===I)I="selected";else if("className"===I){if(void 0!==O.class)continue;I="class";}else _&&l$1.test(I)&&(I=I.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===I){if(O.for)continue;I="for";}"style"===I&&R&&"object"==typeof R&&(R=p$1(R)),"a"===I[0]&&"r"===I[1]&&"boolean"==typeof R&&(R=String(R));var U=a.attributeHook&&a.attributeHook(I,R,n,a,j);if(U||""===U)N+=U;else if("dangerouslySetInnerHTML"===I)D=R&&R.__html;else if("textarea"===C&&"value"===I)$=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=I,a&&a.xml))){N=N+" "+I;continue}if("value"===I){if("select"===C){v=R;continue}"option"===C&&v==R&&void 0===O.selected&&(N+=" selected");}N=N+" "+I+'="'+s$1(R)+'"';}}}else $=R;}}if(b){var V=N.replace(/\n\s*/," ");V===N||~V.indexOf("\n")?b&&~N.indexOf("\n")&&(N+="\n"):N=V;}if(N+=">",i$1.test(C))throw new Error(C+" is not a valid HTML tag name in "+N);var q,z=o$1.test(C)||a.voidElements&&a.voidElements.test(C),Z=[];if(D)b&&u$1(D)&&(D="\n"+x+f$1(D,x)),N+=D;else if(null!=$&&d$1(q=[],$).length){for(var B=b&&~N.indexOf("\n"),G=!1,J=0;J<q.length;J++){var K=q[J];if(null!=K&&!1!==K){var Q=m$1(K,n,a,!0,"svg"===C||"foreignObject"!==C&&_,v);if(b&&!B&&u$1(Q)&&(B=!0),Q)if(b){var X=Q.length>0&&"<"!=Q[0];G&&X?Z[Z.length-1]+=Q:Z.push(Q),G=X;}else Z.push(Q);}}if(b&&B)for(var Y=Z.length;Y--;)Z[Y]="\n"+x+f$1(Z[Y],x);}if(Z.length||D)N+=Z.join("");else if(a&&a.xml)return N.substring(0,N.length-1)+" />";return !z||q||D?(b&&~N.indexOf("\n")&&(N+="\n"),N=N+"</"+C+">"):N=N.replace(/>$/," />"),N}var b$1={shallow:!0};S.render=S;var x$2=function(e,t){return S(e,t,b$1)},k$2=[];function S(n,o,i){o=o||{};var l=l$2.__s;l$2.__s=!0;var a,s=h$2(p$2,null);return s.__k=[n],a=i&&(i.pretty||i.voidElements||i.sortAttributes||i.shallow||i.allAttributes||i.xml||i.attributeHook)?m$1(n,o,i):F$2(n,o,!1,void 0,s),l$2.__c&&l$2.__c(n,k$2),l$2.__s=l,k$2.length=0,a}function w$2(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?h$2(null,null,e):e}function C$1(e,t){return "className"===e?"class":"htmlFor"===e?"for":"defaultValue"===e?"value":"defaultChecked"===e?"checked":"defaultSelected"===e?"selected":t&&l$1.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function O$1(e,t){return "style"===e&&null!=t&&"object"==typeof t?p$1(t):"a"===e[0]&&"r"===e[1]&&"boolean"==typeof t?String(t):t}var j$2=Array.isArray,A$2=Object.assign;function F$2(r,n,l,a,f){if(null==r||!0===r||!1===r||""===r)return "";if("object"!=typeof r)return "function"==typeof r?"":s$1(r);if(j$2(r)){var u="";f.__k=r;for(var c=0;c<r.length;c++)u+=F$2(r[c],n,l,a,f),r[c]=w$2(r[c]);return u}if(void 0!==r.constructor)return "";r.__=f,l$2.__b&&l$2.__b(r);var _=r.type,p=r.props;if("function"==typeof _){var d;if(_===p$2)d=p.children;else {d=_.prototype&&"function"==typeof _.prototype.render?function(e,r){var n=e.type,o=g$2(n,r),i=new n(e.props,o);e.__c=i,i.__v=e,i.__d=!0,i.props=e.props,null==i.state&&(i.state={}),null==i.__s&&(i.__s=i.state),i.context=o,n.getDerivedStateFromProps?i.state=A$2({},i.state,n.getDerivedStateFromProps(i.props,i.state)):i.componentWillMount&&(i.componentWillMount(),i.state=i.__s!==i.state?i.__s:i.state);var l=l$2.__r;return l&&l(e),i.render(i.props,i.state,i.context)}(r,n):function(e,r){var n,o=h$1(e,r),i=g$2(e.type,r);e.__c=o;for(var l=l$2.__r,a=0;o.__d&&a++<25;)o.__d=!1,l&&l(e),n=e.type.call(o,e.props,i);return n}(r,n);var v=r.__c;v.getChildContext&&(n=A$2({},n,v.getChildContext()));}var y=F$2(d=null!=d&&d.type===p$2&&null==d.key?d.props.children:d,n,l,a,r);return l$2.diffed&&l$2.diffed(r),r.__=void 0,l$2.unmount&&l$2.unmount(r),y}var m,b,x="<";if(x+=_,p)for(var k in m=p.children,p){var S=p[k];if(!("key"===k||"ref"===k||"__self"===k||"__source"===k||"children"===k||"className"===k&&"class"in p||"htmlFor"===k&&"for"in p||i$1.test(k)))if(S=O$1(k=C$1(k,l),S),"dangerouslySetInnerHTML"===k)b=S&&S.__html;else if("textarea"===_&&"value"===k)m=S;else if((S||0===S||""===S)&&"function"!=typeof S){if(!0===S||""===S){S=k,x=x+" "+k;continue}if("value"===k){if("select"===_){a=S;continue}"option"!==_||a!=S||"selected"in p||(x+=" selected");}x=x+" "+k+'="'+s$1(S)+'"';}}var H=x;if(x+=">",i$1.test(_))throw new Error(_+" is not a valid HTML tag name in "+x);var M="",L=!1;if(b)M+=b,L=!0;else if("string"==typeof m)M+=s$1(m),L=!0;else if(j$2(m)){r.__k=m;for(var T=0;T<m.length;T++){var E=m[T];if(m[T]=w$2(E),null!=E&&!1!==E){var $=F$2(E,n,"svg"===_||"foreignObject"!==_&&l,a,r);$&&(M+=$,L=!0);}}}else if(null!=m&&!1!==m&&!0!==m){r.__k=[w$2(m)];var D=F$2(m,n,"svg"===_||"foreignObject"!==_&&l,a,r);D&&(M+=D,L=!0);}if(l$2.diffed&&l$2.diffed(r),r.__=void 0,l$2.unmount&&l$2.unmount(r),L)x+=M;else if(o$1.test(_))return H+" />";return x+"</"+_+">"}S.shallowRender=x$2;
-
- var t,r,u,i,o=0,f=[],c=[],e=l$2.__b,a=l$2.__r,v=l$2.diffed,l=l$2.__c,m=l$2.unmount;function d(t,u){l$2.__h&&l$2.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function p(n){return o=1,y(B$1,n)}function y(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$1(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){r.u=!0;var f=r.shouldComponentUpdate;r.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!f||f.call(this,n,t,r))};}return o.__N||o.__}function h(u,i){var o=d(t++,3);!l$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function s(u,i){var o=d(t++,4);!l$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o));}function _(n){return o=5,F$1(function(){return {current:n}},[])}function A$1(n,t,r){o=6,s(function(){return "function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n));}function F$1(n,r){var u=d(t++,7);return z$1(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$1(n,t){return o=8,F$1(function(){return n},t)}function q$1(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x$1(t,r){l$2.useDebugValue&&l$2.useDebugValue(r?r(t):t);}function V$1(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++;}return n.__}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k$1),t.__H.__h.forEach(w$1),t.__H.__h=[];}catch(r){t.__H.__h=[],l$2.__e(r,t.__v);}}l$2.__b=function(n){r=null,e&&e(n);},l$2.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k$1),i.__h.forEach(w$1),i.__h=[])),u=r;},l$2.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$2.requestAnimationFrame||((i=l$2.requestAnimationFrame)||j$1)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},l$2.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$1),t.__h=t.__h.filter(function(n){return !n.__||w$1(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$2.__e(u,t.__v);}}),l&&l(t,r);},l$2.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k$1(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$2.__e(r,u.__v));};var g$1="function"==typeof requestAnimationFrame;function j$1(n){var t,r=function(){clearTimeout(u),g$1&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$1&&(t=requestAnimationFrame(r));}function k$1(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w$1(n){var t=r;n.__c=n.__(),r=t;}function z$1(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$1(n,t){return "function"==typeof t?t(n):t}
-
- function memoize(fn) {
- var cache = {};
- return function (arg) {
- if (cache[arg] === undefined) cache[arg] = fn(arg);
- return cache[arg];
- };
- }
-
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
-
- var index = memoize(function (prop) {
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
- /* o */
- && prop.charCodeAt(1) === 110
- /* n */
- && prop.charCodeAt(2) < 91;
- }
- /* Z+1 */
- );
-
- function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n,t){return n===t&&(0!==n||1/n==1/t)||n!=n&&t!=t}function w(n){this.props=n;}function R(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return !r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C(this.props,n)}function u(e){return this.shouldComponentUpdate=r,h$2(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(w.prototype=new d$2).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var x=l$2.__b;l$2.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x&&x(n);};var N="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function k(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var A=function(n,t){return null==n?null:x$3(x$3(n).map(t))},O={map:A,forEach:A,count:function(n){return n?x$3(n).length:0},only:function(n){var t=x$3(n);if(1!==t.length)throw "Children.only";return t[0]},toArray:x$3},T=l$2.__e;l$2.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r);};var I=l$2.unmount;function L(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)})),n}function U(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null;}function F(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function M(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n;},function(n){u=n;}),u)throw u;if(!r)throw e;return h$2(r,o)}return o.displayName="Lazy",o.__f=!0,o}function V(){this.u=null,this.o=null;}l$2.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),I&&I(n);},(D.prototype=new d$2).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=F(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=U(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate();}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i);},D.prototype.componentWillUnmount=function(){this.t=[];},D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=L(this.__b,r,o.__O=o.__P);}this.__b=null;}var i=e.__a&&h$2(p$2,null,n.fallback);return i&&(i.__h=null),[h$2(p$2,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function P(n){return this.getChildContext=function(){return n.context},n.children}function $(n){var e=this,r=n.i;e.componentWillUnmount=function(){P$1(null,e.l),e.l=null,e.i=null;},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n);},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n);}}),P$1(h$2(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount();}function j(n,e){var r=h$2($,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new d$2).__a=function(n){var t=this,e=F(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u();};e?e(o):o();}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=x$3(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t);});};var z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H="undefined"!=typeof document,Z=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function Y(n,t,e){return null==t.__k&&(t.textContent=""),P$1(n,t),"function"==typeof e&&e(),n?n.__c:null}function q(n,t,e){return S$1(n,t),"function"==typeof e&&e(),n?n.__c:null}d$2.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(d$2.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});}});});var G=l$2.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}l$2.event=function(n){return G&&(n=G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var X,nn={configurable:!0,get:function(){return this.class}},tn=l$2.vnode;l$2.vnode=function(n){var t=n.type,e=n.props,u=e;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in u={},e){var l=e[i];H&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in e&&null==l||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Z(e.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&B.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i="oninputCapture")),u[i]=l);}"select"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=x$3(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),"select"==t&&null!=u.defaultValue&&(u.value=x$3(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;})),n.props=u,e.class!=e.className&&(nn.enumerable="className"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,"className",nn));}n.$$typeof=z,tn&&tn(n);};var en=l$2.__r;l$2.__r=function(n){en&&en(n),X=n.__c;};var rn={ReactCurrentDispatcher:{current:{readContext:function(n){return X.__n[n.__c].props.value}}}};function on(n){return h$2.bind(null,n)}function ln(n){return !!n&&n.$$typeof===z}function cn(n){return ln(n)?q$2.apply(null,arguments):n}function fn(n){return !!n.__k&&(P$1(null,n),!0)}function an(n){return n&&(n.base||1===n.nodeType&&n)||null}var sn=function(n,t){return n(t)},hn=function(n,t){return n(t)},vn=p$2;function dn(n){n();}function pn(n){return n}function mn(){return [!1,dn]}var yn=s;function _n(n,t){var e=t(),r=p({h:{__:e,v:t}}),u=r[0].h,o=r[1];return s(function(){u.__=e,u.v=t,E(u.__,t())||o({h:u});},[n,e,t]),h(function(){return E(u.__,u.v())||o({h:u}),n(function(){E(u.__,u.v())||o({h:u});})},[n]),e}var bn={useState:p,useId:V$1,useReducer:y,useEffect:h,useLayoutEffect:s,useInsertionEffect:yn,useTransition:mn,useDeferredValue:pn,useSyncExternalStore:_n,startTransition:dn,useRef:_,useImperativeHandle:A$1,useMemo:F$1,useCallback:T$1,useContext:q$1,useDebugValue:x$1,version:"17.0.2",Children:O,render:Y,hydrate:q,unmountComponentAtNode:fn,createPortal:j,createElement:h$2,createContext:B$2,createFactory:on,cloneElement:cn,createRef:y$2,Fragment:p$2,isValidElement:ln,findDOMNode:an,Component:d$2,PureComponent:w,memo:R,forwardRef:k,flushSync:hn,unstable_batchedUpdates:sn,StrictMode:vn,Suspense:D,SuspenseList:V,lazy:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:rn};
-
- /**
- * Takes a list of class names and filters for truthy ones, joining them into a single class name for convenience.
- * eg.
- * ```js
- * cx('red', isBig && 'big') // returns 'red big' if `isBig` is true, otherwise returns 'red'
- * ```
- * If space separated atomic styles are provided, they are deduplicated according to the first hashed valued:
- *
- * ```js
- * cx('atm_a_class1 atm_b_class2', 'atm_a_class3') // returns `atm_a_class3 atm_b_class2`
- * ```
- *
- * @returns the combined, space separated class names that can be applied directly to the class attribute
- */
- const cx = function cx() {
- const presentClassNames = Array.prototype.slice // eslint-disable-next-line prefer-rest-params
- .call(arguments).filter(Boolean);
- const atomicClasses = {};
- const nonAtomicClasses = [];
- presentClassNames.forEach(arg => {
- // className could be the output of a previous cx call, so split by ' ' first
- const individualClassNames = arg ? arg.split(' ') : [];
- individualClassNames.forEach(className => {
- if (className.startsWith('atm_')) {
- const [, keyHash] = className.split('_');
- atomicClasses[keyHash] = className;
- } else {
- nonAtomicClasses.push(className);
- }
- });
- });
- const result = []; // eslint-disable-next-line no-restricted-syntax
-
- for (const keyHash in atomicClasses) {
- if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
- result.push(atomicClasses[keyHash]);
- }
- }
-
- result.push(...nonAtomicClasses);
- return result.join(' ');
- };
-
- var cx$1 = cx;
-
- /* eslint-disable @typescript-eslint/no-explicit-any */
-
- const isCapital = ch => ch.toUpperCase() === ch;
-
- const filterKey = keys => key => keys.indexOf(key) === -1;
-
- const omit = (obj, keys) => {
- const res = {};
- Object.keys(obj).filter(filterKey(keys)).forEach(key => {
- res[key] = obj[key];
- });
- return res;
- };
-
- function filterProps(component, props, omitKeys) {
- const filteredProps = omit(props, omitKeys); // Check if it's an HTML tag and not a custom element
-
- if (typeof component === 'string' && component.indexOf('-') === -1 && !isCapital(component[0])) {
- Object.keys(filteredProps).forEach(key => {
- if (!index(key)) {
- // Don't pass through invalid attributes to HTML elements
- delete filteredProps[key];
- }
- });
- }
-
- return filteredProps;
- }
-
- const warnIfInvalid = (value, componentName) => {
- };
-
- function styled(tag) {
- return options => {
-
- const render = (props, ref) => {
- const {
- as: component = tag,
- class: className
- } = props;
- const filteredProps = filterProps(component, props, ['as', 'class']);
- filteredProps.ref = ref;
- filteredProps.className = options.atomic ? cx$1(options.class, filteredProps.className || className) : cx$1(filteredProps.className || className, options.class);
- const {
- vars
- } = options;
-
- if (vars) {
- const style = {}; // eslint-disable-next-line guard-for-in,no-restricted-syntax
-
- for (const name in vars) {
- const variable = vars[name];
- const result = variable[0];
- const unit = variable[1] || '';
- const value = typeof result === 'function' ? result(props) : result;
- warnIfInvalid(value, options.name);
- style[`--${name}`] = `${value}${unit}`;
- }
-
- const ownStyle = filteredProps.style || {};
- const keys = Object.keys(ownStyle);
-
- if (keys.length > 0) {
- keys.forEach(key => {
- style[key] = ownStyle[key];
- });
- }
-
- filteredProps.style = style;
- }
-
- if (tag.__linaria && tag !== component) {
- // If the underlying tag is a styled component, forward the `as` prop
- // Otherwise the styles from the underlying component will be ignored
- filteredProps.as = component;
- return /*#__PURE__*/bn.createElement(tag, filteredProps);
- }
-
- return /*#__PURE__*/bn.createElement(component, filteredProps);
- };
-
- const Result = bn.forwardRef ? /*#__PURE__*/bn.forwardRef(render) : // React.forwardRef won't available on older React versions and in Preact
- // Fallback to a innerRef prop in that case
- props => {
- const rest = omit(props, ['innerRef']);
- return render(rest, props.innerRef);
- };
- Result.displayName = options.name; // These properties will be read by the babel plugin for interpolation
-
- Result.__linaria = {
- className: options.class,
- extends: tag
- };
- return Result;
- };
- }
-
- var styled$1 = styled;
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- const QRPlaceholder = /*#__PURE__*/styled$1('div')({
- name: "QRPlaceholder",
- class: "q1ma0zxq"
- });
- const FooterBar = /*#__PURE__*/styled$1('footer')({
- name: "FooterBar",
- class: "fef0x5t"
- });
- const Page = /*#__PURE__*/styled$1('div')({
- name: "Page",
- class: "p1b3vqup"
- });
- const WalletLink = /*#__PURE__*/styled$1('a')({
- name: "WalletLink",
- class: "wpwjmk",
- vars: {
- "wpwjmk-0": [({
- upperCased
- }) => upperCased ? 'uppercase' : 'none']
- }
- });
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- function Footer() {
- return (h$2(FooterBar, null,
- h$2("p", null,
- h$2("a", { href: "https://taler.net/" }, "Learn more about GNU Taler on our website."),
- h$2("p", null, "Copyright \u00A9 2014\u20142021 Taler Systems SA"))));
- }
-
- var qrcode$1 = {exports: {}};
-
- (function (module, exports) {
- //---------------------------------------------------------------------
- //
- // QR Code Generator for JavaScript
- //
- // Copyright (c) 2009 Kazuhiko Arase
- //
- // URL: http://www.d-project.com/
- //
- // Licensed under the MIT license:
- // http://www.opensource.org/licenses/mit-license.php
- //
- // The word 'QR Code' is registered trademark of
- // DENSO WAVE INCORPORATED
- // http://www.denso-wave.com/qrcode/faqpatent-e.html
- //
- //---------------------------------------------------------------------
-
- var qrcode = function() {
-
- //---------------------------------------------------------------------
- // qrcode
- //---------------------------------------------------------------------
-
- /**
- * qrcode
- * @param typeNumber 1 to 40
- * @param errorCorrectionLevel 'L','M','Q','H'
- */
- var qrcode = function(typeNumber, errorCorrectionLevel) {
-
- var PAD0 = 0xEC;
- var PAD1 = 0x11;
-
- var _typeNumber = typeNumber;
- var _errorCorrectionLevel = QRErrorCorrectionLevel[errorCorrectionLevel];
- var _modules = null;
- var _moduleCount = 0;
- var _dataCache = null;
- var _dataList = [];
-
- var _this = {};
-
- var makeImpl = function(test, maskPattern) {
-
- _moduleCount = _typeNumber * 4 + 17;
- _modules = function(moduleCount) {
- var modules = new Array(moduleCount);
- for (var row = 0; row < moduleCount; row += 1) {
- modules[row] = new Array(moduleCount);
- for (var col = 0; col < moduleCount; col += 1) {
- modules[row][col] = null;
- }
- }
- return modules;
- }(_moduleCount);
-
- setupPositionProbePattern(0, 0);
- setupPositionProbePattern(_moduleCount - 7, 0);
- setupPositionProbePattern(0, _moduleCount - 7);
- setupPositionAdjustPattern();
- setupTimingPattern();
- setupTypeInfo(test, maskPattern);
-
- if (_typeNumber >= 7) {
- setupTypeNumber(test);
- }
-
- if (_dataCache == null) {
- _dataCache = createData(_typeNumber, _errorCorrectionLevel, _dataList);
- }
-
- mapData(_dataCache, maskPattern);
- };
-
- var setupPositionProbePattern = function(row, col) {
-
- for (var r = -1; r <= 7; r += 1) {
-
- if (row + r <= -1 || _moduleCount <= row + r) continue;
-
- for (var c = -1; c <= 7; c += 1) {
-
- if (col + c <= -1 || _moduleCount <= col + c) continue;
-
- if ( (0 <= r && r <= 6 && (c == 0 || c == 6) )
- || (0 <= c && c <= 6 && (r == 0 || r == 6) )
- || (2 <= r && r <= 4 && 2 <= c && c <= 4) ) {
- _modules[row + r][col + c] = true;
- } else {
- _modules[row + r][col + c] = false;
- }
- }
- }
- };
-
- var getBestMaskPattern = function() {
-
- var minLostPoint = 0;
- var pattern = 0;
-
- for (var i = 0; i < 8; i += 1) {
-
- makeImpl(true, i);
-
- var lostPoint = QRUtil.getLostPoint(_this);
-
- if (i == 0 || minLostPoint > lostPoint) {
- minLostPoint = lostPoint;
- pattern = i;
- }
- }
-
- return pattern;
- };
-
- var setupTimingPattern = function() {
-
- for (var r = 8; r < _moduleCount - 8; r += 1) {
- if (_modules[r][6] != null) {
- continue;
- }
- _modules[r][6] = (r % 2 == 0);
- }
-
- for (var c = 8; c < _moduleCount - 8; c += 1) {
- if (_modules[6][c] != null) {
- continue;
- }
- _modules[6][c] = (c % 2 == 0);
- }
- };
-
- var setupPositionAdjustPattern = function() {
-
- var pos = QRUtil.getPatternPosition(_typeNumber);
-
- for (var i = 0; i < pos.length; i += 1) {
-
- for (var j = 0; j < pos.length; j += 1) {
-
- var row = pos[i];
- var col = pos[j];
-
- if (_modules[row][col] != null) {
- continue;
- }
-
- for (var r = -2; r <= 2; r += 1) {
-
- for (var c = -2; c <= 2; c += 1) {
-
- if (r == -2 || r == 2 || c == -2 || c == 2
- || (r == 0 && c == 0) ) {
- _modules[row + r][col + c] = true;
- } else {
- _modules[row + r][col + c] = false;
- }
- }
- }
- }
- }
- };
-
- var setupTypeNumber = function(test) {
-
- var bits = QRUtil.getBCHTypeNumber(_typeNumber);
-
- for (var i = 0; i < 18; i += 1) {
- var mod = (!test && ( (bits >> i) & 1) == 1);
- _modules[Math.floor(i / 3)][i % 3 + _moduleCount - 8 - 3] = mod;
- }
-
- for (var i = 0; i < 18; i += 1) {
- var mod = (!test && ( (bits >> i) & 1) == 1);
- _modules[i % 3 + _moduleCount - 8 - 3][Math.floor(i / 3)] = mod;
- }
- };
-
- var setupTypeInfo = function(test, maskPattern) {
-
- var data = (_errorCorrectionLevel << 3) | maskPattern;
- var bits = QRUtil.getBCHTypeInfo(data);
-
- // vertical
- for (var i = 0; i < 15; i += 1) {
-
- var mod = (!test && ( (bits >> i) & 1) == 1);
-
- if (i < 6) {
- _modules[i][8] = mod;
- } else if (i < 8) {
- _modules[i + 1][8] = mod;
- } else {
- _modules[_moduleCount - 15 + i][8] = mod;
- }
- }
-
- // horizontal
- for (var i = 0; i < 15; i += 1) {
-
- var mod = (!test && ( (bits >> i) & 1) == 1);
-
- if (i < 8) {
- _modules[8][_moduleCount - i - 1] = mod;
- } else if (i < 9) {
- _modules[8][15 - i - 1 + 1] = mod;
- } else {
- _modules[8][15 - i - 1] = mod;
- }
- }
-
- // fixed module
- _modules[_moduleCount - 8][8] = (!test);
- };
-
- var mapData = function(data, maskPattern) {
-
- var inc = -1;
- var row = _moduleCount - 1;
- var bitIndex = 7;
- var byteIndex = 0;
- var maskFunc = QRUtil.getMaskFunction(maskPattern);
-
- for (var col = _moduleCount - 1; col > 0; col -= 2) {
-
- if (col == 6) col -= 1;
-
- while (true) {
-
- for (var c = 0; c < 2; c += 1) {
-
- if (_modules[row][col - c] == null) {
-
- var dark = false;
-
- if (byteIndex < data.length) {
- dark = ( ( (data[byteIndex] >>> bitIndex) & 1) == 1);
- }
-
- var mask = maskFunc(row, col - c);
-
- if (mask) {
- dark = !dark;
- }
-
- _modules[row][col - c] = dark;
- bitIndex -= 1;
-
- if (bitIndex == -1) {
- byteIndex += 1;
- bitIndex = 7;
- }
- }
- }
-
- row += inc;
-
- if (row < 0 || _moduleCount <= row) {
- row -= inc;
- inc = -inc;
- break;
- }
- }
- }
- };
-
- var createBytes = function(buffer, rsBlocks) {
-
- var offset = 0;
-
- var maxDcCount = 0;
- var maxEcCount = 0;
-
- var dcdata = new Array(rsBlocks.length);
- var ecdata = new Array(rsBlocks.length);
-
- for (var r = 0; r < rsBlocks.length; r += 1) {
-
- var dcCount = rsBlocks[r].dataCount;
- var ecCount = rsBlocks[r].totalCount - dcCount;
-
- maxDcCount = Math.max(maxDcCount, dcCount);
- maxEcCount = Math.max(maxEcCount, ecCount);
-
- dcdata[r] = new Array(dcCount);
-
- for (var i = 0; i < dcdata[r].length; i += 1) {
- dcdata[r][i] = 0xff & buffer.getBuffer()[i + offset];
- }
- offset += dcCount;
-
- var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount);
- var rawPoly = qrPolynomial(dcdata[r], rsPoly.getLength() - 1);
-
- var modPoly = rawPoly.mod(rsPoly);
- ecdata[r] = new Array(rsPoly.getLength() - 1);
- for (var i = 0; i < ecdata[r].length; i += 1) {
- var modIndex = i + modPoly.getLength() - ecdata[r].length;
- ecdata[r][i] = (modIndex >= 0)? modPoly.getAt(modIndex) : 0;
- }
- }
-
- var totalCodeCount = 0;
- for (var i = 0; i < rsBlocks.length; i += 1) {
- totalCodeCount += rsBlocks[i].totalCount;
- }
-
- var data = new Array(totalCodeCount);
- var index = 0;
-
- for (var i = 0; i < maxDcCount; i += 1) {
- for (var r = 0; r < rsBlocks.length; r += 1) {
- if (i < dcdata[r].length) {
- data[index] = dcdata[r][i];
- index += 1;
- }
- }
- }
-
- for (var i = 0; i < maxEcCount; i += 1) {
- for (var r = 0; r < rsBlocks.length; r += 1) {
- if (i < ecdata[r].length) {
- data[index] = ecdata[r][i];
- index += 1;
- }
- }
- }
-
- return data;
- };
-
- var createData = function(typeNumber, errorCorrectionLevel, dataList) {
-
- var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectionLevel);
-
- var buffer = qrBitBuffer();
-
- for (var i = 0; i < dataList.length; i += 1) {
- var data = dataList[i];
- buffer.put(data.getMode(), 4);
- buffer.put(data.getLength(), QRUtil.getLengthInBits(data.getMode(), typeNumber) );
- data.write(buffer);
- }
-
- // calc num max data.
- var totalDataCount = 0;
- for (var i = 0; i < rsBlocks.length; i += 1) {
- totalDataCount += rsBlocks[i].dataCount;
- }
-
- if (buffer.getLengthInBits() > totalDataCount * 8) {
- throw 'code length overflow. ('
- + buffer.getLengthInBits()
- + '>'
- + totalDataCount * 8
- + ')';
- }
-
- // end code
- if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) {
- buffer.put(0, 4);
- }
-
- // padding
- while (buffer.getLengthInBits() % 8 != 0) {
- buffer.putBit(false);
- }
-
- // padding
- while (true) {
-
- if (buffer.getLengthInBits() >= totalDataCount * 8) {
- break;
- }
- buffer.put(PAD0, 8);
-
- if (buffer.getLengthInBits() >= totalDataCount * 8) {
- break;
- }
- buffer.put(PAD1, 8);
- }
-
- return createBytes(buffer, rsBlocks);
- };
-
- _this.addData = function(data, mode) {
-
- mode = mode || 'Byte';
-
- var newData = null;
-
- switch(mode) {
- case 'Numeric' :
- newData = qrNumber(data);
- break;
- case 'Alphanumeric' :
- newData = qrAlphaNum(data);
- break;
- case 'Byte' :
- newData = qr8BitByte(data);
- break;
- case 'Kanji' :
- newData = qrKanji(data);
- break;
- default :
- throw 'mode:' + mode;
- }
-
- _dataList.push(newData);
- _dataCache = null;
- };
-
- _this.isDark = function(row, col) {
- if (row < 0 || _moduleCount <= row || col < 0 || _moduleCount <= col) {
- throw row + ',' + col;
- }
- return _modules[row][col];
- };
-
- _this.getModuleCount = function() {
- return _moduleCount;
- };
-
- _this.make = function() {
- if (_typeNumber < 1) {
- var typeNumber = 1;
-
- for (; typeNumber < 40; typeNumber++) {
- var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, _errorCorrectionLevel);
- var buffer = qrBitBuffer();
-
- for (var i = 0; i < _dataList.length; i++) {
- var data = _dataList[i];
- buffer.put(data.getMode(), 4);
- buffer.put(data.getLength(), QRUtil.getLengthInBits(data.getMode(), typeNumber) );
- data.write(buffer);
- }
-
- var totalDataCount = 0;
- for (var i = 0; i < rsBlocks.length; i++) {
- totalDataCount += rsBlocks[i].dataCount;
- }
-
- if (buffer.getLengthInBits() <= totalDataCount * 8) {
- break;
- }
- }
-
- _typeNumber = typeNumber;
- }
-
- makeImpl(false, getBestMaskPattern() );
- };
-
- _this.createTableTag = function(cellSize, margin) {
-
- cellSize = cellSize || 2;
- margin = (typeof margin == 'undefined')? cellSize * 4 : margin;
-
- var qrHtml = '';
-
- qrHtml += '<table style="';
- qrHtml += ' border-width: 0px; border-style: none;';
- qrHtml += ' border-collapse: collapse;';
- qrHtml += ' padding: 0px; margin: ' + margin + 'px;';
- qrHtml += '">';
- qrHtml += '<tbody>';
-
- for (var r = 0; r < _this.getModuleCount(); r += 1) {
-
- qrHtml += '<tr>';
-
- for (var c = 0; c < _this.getModuleCount(); c += 1) {
- qrHtml += '<td style="';
- qrHtml += ' border-width: 0px; border-style: none;';
- qrHtml += ' border-collapse: collapse;';
- qrHtml += ' padding: 0px; margin: 0px;';
- qrHtml += ' width: ' + cellSize + 'px;';
- qrHtml += ' height: ' + cellSize + 'px;';
- qrHtml += ' background-color: ';
- qrHtml += _this.isDark(r, c)? '#000000' : '#ffffff';
- qrHtml += ';';
- qrHtml += '"/>';
- }
-
- qrHtml += '</tr>';
- }
-
- qrHtml += '</tbody>';
- qrHtml += '</table>';
-
- return qrHtml;
- };
-
- _this.createSvgTag = function(cellSize, margin, alt, title) {
-
- var opts = {};
- if (typeof arguments[0] == 'object') {
- // Called by options.
- opts = arguments[0];
- // overwrite cellSize and margin.
- cellSize = opts.cellSize;
- margin = opts.margin;
- alt = opts.alt;
- title = opts.title;
- }
-
- cellSize = cellSize || 2;
- margin = (typeof margin == 'undefined')? cellSize * 4 : margin;
-
- // Compose alt property surrogate
- alt = (typeof alt === 'string') ? {text: alt} : alt || {};
- alt.text = alt.text || null;
- alt.id = (alt.text) ? alt.id || 'qrcode-description' : null;
-
- // Compose title property surrogate
- title = (typeof title === 'string') ? {text: title} : title || {};
- title.text = title.text || null;
- title.id = (title.text) ? title.id || 'qrcode-title' : null;
-
- var size = _this.getModuleCount() * cellSize + margin * 2;
- var c, mc, r, mr, qrSvg='', rect;
-
- rect = 'l' + cellSize + ',0 0,' + cellSize +
- ' -' + cellSize + ',0 0,-' + cellSize + 'z ';
-
- qrSvg += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"';
- qrSvg += !opts.scalable ? ' width="' + size + 'px" height="' + size + 'px"' : '';
- qrSvg += ' viewBox="0 0 ' + size + ' ' + size + '" ';
- qrSvg += ' preserveAspectRatio="xMinYMin meet"';
- qrSvg += (title.text || alt.text) ? ' role="img" aria-labelledby="' +
- escapeXml([title.id, alt.id].join(' ').trim() ) + '"' : '';
- qrSvg += '>';
- qrSvg += (title.text) ? '<title id="' + escapeXml(title.id) + '">' +
- escapeXml(title.text) + '</title>' : '';
- qrSvg += (alt.text) ? '<description id="' + escapeXml(alt.id) + '">' +
- escapeXml(alt.text) + '</description>' : '';
- qrSvg += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>';
- qrSvg += '<path d="';
-
- for (r = 0; r < _this.getModuleCount(); r += 1) {
- mr = r * cellSize + margin;
- for (c = 0; c < _this.getModuleCount(); c += 1) {
- if (_this.isDark(r, c) ) {
- mc = c*cellSize+margin;
- qrSvg += 'M' + mc + ',' + mr + rect;
- }
- }
- }
-
- qrSvg += '" stroke="transparent" fill="black"/>';
- qrSvg += '</svg>';
-
- return qrSvg;
- };
-
- _this.createDataURL = function(cellSize, margin) {
-
- cellSize = cellSize || 2;
- margin = (typeof margin == 'undefined')? cellSize * 4 : margin;
-
- var size = _this.getModuleCount() * cellSize + margin * 2;
- var min = margin;
- var max = size - margin;
-
- return createDataURL(size, size, function(x, y) {
- if (min <= x && x < max && min <= y && y < max) {
- var c = Math.floor( (x - min) / cellSize);
- var r = Math.floor( (y - min) / cellSize);
- return _this.isDark(r, c)? 0 : 1;
- } else {
- return 1;
- }
- } );
- };
-
- _this.createImgTag = function(cellSize, margin, alt) {
-
- cellSize = cellSize || 2;
- margin = (typeof margin == 'undefined')? cellSize * 4 : margin;
-
- var size = _this.getModuleCount() * cellSize + margin * 2;
-
- var img = '';
- img += '<img';
- img += '\u0020src="';
- img += _this.createDataURL(cellSize, margin);
- img += '"';
- img += '\u0020width="';
- img += size;
- img += '"';
- img += '\u0020height="';
- img += size;
- img += '"';
- if (alt) {
- img += '\u0020alt="';
- img += escapeXml(alt);
- img += '"';
- }
- img += '/>';
-
- return img;
- };
-
- var escapeXml = function(s) {
- var escaped = '';
- for (var i = 0; i < s.length; i += 1) {
- var c = s.charAt(i);
- switch(c) {
- case '<': escaped += '&lt;'; break;
- case '>': escaped += '&gt;'; break;
- case '&': escaped += '&amp;'; break;
- case '"': escaped += '&quot;'; break;
- default : escaped += c; break;
- }
- }
- return escaped;
- };
-
- var _createHalfASCII = function(margin) {
- var cellSize = 1;
- margin = (typeof margin == 'undefined')? cellSize * 2 : margin;
-
- var size = _this.getModuleCount() * cellSize + margin * 2;
- var min = margin;
- var max = size - margin;
-
- var y, x, r1, r2, p;
-
- var blocks = {
- '██': '█',
- '█ ': '▀',
- ' █': '▄',
- ' ': ' '
- };
-
- var blocksLastLineNoMargin = {
- '██': '▀',
- '█ ': '▀',
- ' █': ' ',
- ' ': ' '
- };
-
- var ascii = '';
- for (y = 0; y < size; y += 2) {
- r1 = Math.floor((y - min) / cellSize);
- r2 = Math.floor((y + 1 - min) / cellSize);
- for (x = 0; x < size; x += 1) {
- p = '█';
-
- if (min <= x && x < max && min <= y && y < max && _this.isDark(r1, Math.floor((x - min) / cellSize))) {
- p = ' ';
- }
-
- if (min <= x && x < max && min <= y+1 && y+1 < max && _this.isDark(r2, Math.floor((x - min) / cellSize))) {
- p += ' ';
- }
- else {
- p += '█';
- }
-
- // Output 2 characters per pixel, to create full square. 1 character per pixels gives only half width of square.
- ascii += (margin < 1 && y+1 >= max) ? blocksLastLineNoMargin[p] : blocks[p];
- }
-
- ascii += '\n';
- }
-
- if (size % 2 && margin > 0) {
- return ascii.substring(0, ascii.length - size - 1) + Array(size+1).join('▀');
- }
-
- return ascii.substring(0, ascii.length-1);
- };
-
- _this.createASCII = function(cellSize, margin) {
- cellSize = cellSize || 1;
-
- if (cellSize < 2) {
- return _createHalfASCII(margin);
- }
-
- cellSize -= 1;
- margin = (typeof margin == 'undefined')? cellSize * 2 : margin;
-
- var size = _this.getModuleCount() * cellSize + margin * 2;
- var min = margin;
- var max = size - margin;
-
- var y, x, r, p;
-
- var white = Array(cellSize+1).join('██');
- var black = Array(cellSize+1).join(' ');
-
- var ascii = '';
- var line = '';
- for (y = 0; y < size; y += 1) {
- r = Math.floor( (y - min) / cellSize);
- line = '';
- for (x = 0; x < size; x += 1) {
- p = 1;
-
- if (min <= x && x < max && min <= y && y < max && _this.isDark(r, Math.floor((x - min) / cellSize))) {
- p = 0;
- }
-
- // Output 2 characters per pixel, to create full square. 1 character per pixels gives only half width of square.
- line += p ? white : black;
- }
-
- for (r = 0; r < cellSize; r += 1) {
- ascii += line + '\n';
- }
- }
-
- return ascii.substring(0, ascii.length-1);
- };
-
- _this.renderTo2dContext = function(context, cellSize) {
- cellSize = cellSize || 2;
- var length = _this.getModuleCount();
- for (var row = 0; row < length; row++) {
- for (var col = 0; col < length; col++) {
- context.fillStyle = _this.isDark(row, col) ? 'black' : 'white';
- context.fillRect(row * cellSize, col * cellSize, cellSize, cellSize);
- }
- }
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // qrcode.stringToBytes
- //---------------------------------------------------------------------
-
- qrcode.stringToBytesFuncs = {
- 'default' : function(s) {
- var bytes = [];
- for (var i = 0; i < s.length; i += 1) {
- var c = s.charCodeAt(i);
- bytes.push(c & 0xff);
- }
- return bytes;
- }
- };
-
- qrcode.stringToBytes = qrcode.stringToBytesFuncs['default'];
-
- //---------------------------------------------------------------------
- // qrcode.createStringToBytes
- //---------------------------------------------------------------------
-
- /**
- * @param unicodeData base64 string of byte array.
- * [16bit Unicode],[16bit Bytes], ...
- * @param numChars
- */
- qrcode.createStringToBytes = function(unicodeData, numChars) {
-
- // create conversion map.
-
- var unicodeMap = function() {
-
- var bin = base64DecodeInputStream(unicodeData);
- var read = function() {
- var b = bin.read();
- if (b == -1) throw 'eof';
- return b;
- };
-
- var count = 0;
- var unicodeMap = {};
- while (true) {
- var b0 = bin.read();
- if (b0 == -1) break;
- var b1 = read();
- var b2 = read();
- var b3 = read();
- var k = String.fromCharCode( (b0 << 8) | b1);
- var v = (b2 << 8) | b3;
- unicodeMap[k] = v;
- count += 1;
- }
- if (count != numChars) {
- throw count + ' != ' + numChars;
- }
-
- return unicodeMap;
- }();
-
- var unknownChar = '?'.charCodeAt(0);
-
- return function(s) {
- var bytes = [];
- for (var i = 0; i < s.length; i += 1) {
- var c = s.charCodeAt(i);
- if (c < 128) {
- bytes.push(c);
- } else {
- var b = unicodeMap[s.charAt(i)];
- if (typeof b == 'number') {
- if ( (b & 0xff) == b) {
- // 1byte
- bytes.push(b);
- } else {
- // 2bytes
- bytes.push(b >>> 8);
- bytes.push(b & 0xff);
- }
- } else {
- bytes.push(unknownChar);
- }
- }
- }
- return bytes;
- };
- };
-
- //---------------------------------------------------------------------
- // QRMode
- //---------------------------------------------------------------------
-
- var QRMode = {
- MODE_NUMBER : 1 << 0,
- MODE_ALPHA_NUM : 1 << 1,
- MODE_8BIT_BYTE : 1 << 2,
- MODE_KANJI : 1 << 3
- };
-
- //---------------------------------------------------------------------
- // QRErrorCorrectionLevel
- //---------------------------------------------------------------------
-
- var QRErrorCorrectionLevel = {
- L : 1,
- M : 0,
- Q : 3,
- H : 2
- };
-
- //---------------------------------------------------------------------
- // QRMaskPattern
- //---------------------------------------------------------------------
-
- var QRMaskPattern = {
- PATTERN000 : 0,
- PATTERN001 : 1,
- PATTERN010 : 2,
- PATTERN011 : 3,
- PATTERN100 : 4,
- PATTERN101 : 5,
- PATTERN110 : 6,
- PATTERN111 : 7
- };
-
- //---------------------------------------------------------------------
- // QRUtil
- //---------------------------------------------------------------------
-
- var QRUtil = function() {
-
- var PATTERN_POSITION_TABLE = [
- [],
- [6, 18],
- [6, 22],
- [6, 26],
- [6, 30],
- [6, 34],
- [6, 22, 38],
- [6, 24, 42],
- [6, 26, 46],
- [6, 28, 50],
- [6, 30, 54],
- [6, 32, 58],
- [6, 34, 62],
- [6, 26, 46, 66],
- [6, 26, 48, 70],
- [6, 26, 50, 74],
- [6, 30, 54, 78],
- [6, 30, 56, 82],
- [6, 30, 58, 86],
- [6, 34, 62, 90],
- [6, 28, 50, 72, 94],
- [6, 26, 50, 74, 98],
- [6, 30, 54, 78, 102],
- [6, 28, 54, 80, 106],
- [6, 32, 58, 84, 110],
- [6, 30, 58, 86, 114],
- [6, 34, 62, 90, 118],
- [6, 26, 50, 74, 98, 122],
- [6, 30, 54, 78, 102, 126],
- [6, 26, 52, 78, 104, 130],
- [6, 30, 56, 82, 108, 134],
- [6, 34, 60, 86, 112, 138],
- [6, 30, 58, 86, 114, 142],
- [6, 34, 62, 90, 118, 146],
- [6, 30, 54, 78, 102, 126, 150],
- [6, 24, 50, 76, 102, 128, 154],
- [6, 28, 54, 80, 106, 132, 158],
- [6, 32, 58, 84, 110, 136, 162],
- [6, 26, 54, 82, 110, 138, 166],
- [6, 30, 58, 86, 114, 142, 170]
- ];
- var G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0);
- var G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0);
- var G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1);
-
- var _this = {};
-
- var getBCHDigit = function(data) {
- var digit = 0;
- while (data != 0) {
- digit += 1;
- data >>>= 1;
- }
- return digit;
- };
-
- _this.getBCHTypeInfo = function(data) {
- var d = data << 10;
- while (getBCHDigit(d) - getBCHDigit(G15) >= 0) {
- d ^= (G15 << (getBCHDigit(d) - getBCHDigit(G15) ) );
- }
- return ( (data << 10) | d) ^ G15_MASK;
- };
-
- _this.getBCHTypeNumber = function(data) {
- var d = data << 12;
- while (getBCHDigit(d) - getBCHDigit(G18) >= 0) {
- d ^= (G18 << (getBCHDigit(d) - getBCHDigit(G18) ) );
- }
- return (data << 12) | d;
- };
-
- _this.getPatternPosition = function(typeNumber) {
- return PATTERN_POSITION_TABLE[typeNumber - 1];
- };
-
- _this.getMaskFunction = function(maskPattern) {
-
- switch (maskPattern) {
-
- case QRMaskPattern.PATTERN000 :
- return function(i, j) { return (i + j) % 2 == 0; };
- case QRMaskPattern.PATTERN001 :
- return function(i, j) { return i % 2 == 0; };
- case QRMaskPattern.PATTERN010 :
- return function(i, j) { return j % 3 == 0; };
- case QRMaskPattern.PATTERN011 :
- return function(i, j) { return (i + j) % 3 == 0; };
- case QRMaskPattern.PATTERN100 :
- return function(i, j) { return (Math.floor(i / 2) + Math.floor(j / 3) ) % 2 == 0; };
- case QRMaskPattern.PATTERN101 :
- return function(i, j) { return (i * j) % 2 + (i * j) % 3 == 0; };
- case QRMaskPattern.PATTERN110 :
- return function(i, j) { return ( (i * j) % 2 + (i * j) % 3) % 2 == 0; };
- case QRMaskPattern.PATTERN111 :
- return function(i, j) { return ( (i * j) % 3 + (i + j) % 2) % 2 == 0; };
-
- default :
- throw 'bad maskPattern:' + maskPattern;
- }
- };
-
- _this.getErrorCorrectPolynomial = function(errorCorrectLength) {
- var a = qrPolynomial([1], 0);
- for (var i = 0; i < errorCorrectLength; i += 1) {
- a = a.multiply(qrPolynomial([1, QRMath.gexp(i)], 0) );
- }
- return a;
- };
-
- _this.getLengthInBits = function(mode, type) {
-
- if (1 <= type && type < 10) {
-
- // 1 - 9
-
- switch(mode) {
- case QRMode.MODE_NUMBER : return 10;
- case QRMode.MODE_ALPHA_NUM : return 9;
- case QRMode.MODE_8BIT_BYTE : return 8;
- case QRMode.MODE_KANJI : return 8;
- default :
- throw 'mode:' + mode;
- }
-
- } else if (type < 27) {
-
- // 10 - 26
-
- switch(mode) {
- case QRMode.MODE_NUMBER : return 12;
- case QRMode.MODE_ALPHA_NUM : return 11;
- case QRMode.MODE_8BIT_BYTE : return 16;
- case QRMode.MODE_KANJI : return 10;
- default :
- throw 'mode:' + mode;
- }
-
- } else if (type < 41) {
-
- // 27 - 40
-
- switch(mode) {
- case QRMode.MODE_NUMBER : return 14;
- case QRMode.MODE_ALPHA_NUM : return 13;
- case QRMode.MODE_8BIT_BYTE : return 16;
- case QRMode.MODE_KANJI : return 12;
- default :
- throw 'mode:' + mode;
- }
-
- } else {
- throw 'type:' + type;
- }
- };
-
- _this.getLostPoint = function(qrcode) {
-
- var moduleCount = qrcode.getModuleCount();
-
- var lostPoint = 0;
-
- // LEVEL1
-
- for (var row = 0; row < moduleCount; row += 1) {
- for (var col = 0; col < moduleCount; col += 1) {
-
- var sameCount = 0;
- var dark = qrcode.isDark(row, col);
-
- for (var r = -1; r <= 1; r += 1) {
-
- if (row + r < 0 || moduleCount <= row + r) {
- continue;
- }
-
- for (var c = -1; c <= 1; c += 1) {
-
- if (col + c < 0 || moduleCount <= col + c) {
- continue;
- }
-
- if (r == 0 && c == 0) {
- continue;
- }
-
- if (dark == qrcode.isDark(row + r, col + c) ) {
- sameCount += 1;
- }
- }
- }
-
- if (sameCount > 5) {
- lostPoint += (3 + sameCount - 5);
- }
- }
- }
- // LEVEL2
-
- for (var row = 0; row < moduleCount - 1; row += 1) {
- for (var col = 0; col < moduleCount - 1; col += 1) {
- var count = 0;
- if (qrcode.isDark(row, col) ) count += 1;
- if (qrcode.isDark(row + 1, col) ) count += 1;
- if (qrcode.isDark(row, col + 1) ) count += 1;
- if (qrcode.isDark(row + 1, col + 1) ) count += 1;
- if (count == 0 || count == 4) {
- lostPoint += 3;
- }
- }
- }
-
- // LEVEL3
-
- for (var row = 0; row < moduleCount; row += 1) {
- for (var col = 0; col < moduleCount - 6; col += 1) {
- if (qrcode.isDark(row, col)
- && !qrcode.isDark(row, col + 1)
- && qrcode.isDark(row, col + 2)
- && qrcode.isDark(row, col + 3)
- && qrcode.isDark(row, col + 4)
- && !qrcode.isDark(row, col + 5)
- && qrcode.isDark(row, col + 6) ) {
- lostPoint += 40;
- }
- }
- }
-
- for (var col = 0; col < moduleCount; col += 1) {
- for (var row = 0; row < moduleCount - 6; row += 1) {
- if (qrcode.isDark(row, col)
- && !qrcode.isDark(row + 1, col)
- && qrcode.isDark(row + 2, col)
- && qrcode.isDark(row + 3, col)
- && qrcode.isDark(row + 4, col)
- && !qrcode.isDark(row + 5, col)
- && qrcode.isDark(row + 6, col) ) {
- lostPoint += 40;
- }
- }
- }
-
- // LEVEL4
-
- var darkCount = 0;
-
- for (var col = 0; col < moduleCount; col += 1) {
- for (var row = 0; row < moduleCount; row += 1) {
- if (qrcode.isDark(row, col) ) {
- darkCount += 1;
- }
- }
- }
-
- var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;
- lostPoint += ratio * 10;
-
- return lostPoint;
- };
-
- return _this;
- }();
-
- //---------------------------------------------------------------------
- // QRMath
- //---------------------------------------------------------------------
-
- var QRMath = function() {
-
- var EXP_TABLE = new Array(256);
- var LOG_TABLE = new Array(256);
-
- // initialize tables
- for (var i = 0; i < 8; i += 1) {
- EXP_TABLE[i] = 1 << i;
- }
- for (var i = 8; i < 256; i += 1) {
- EXP_TABLE[i] = EXP_TABLE[i - 4]
- ^ EXP_TABLE[i - 5]
- ^ EXP_TABLE[i - 6]
- ^ EXP_TABLE[i - 8];
- }
- for (var i = 0; i < 255; i += 1) {
- LOG_TABLE[EXP_TABLE[i] ] = i;
- }
-
- var _this = {};
-
- _this.glog = function(n) {
-
- if (n < 1) {
- throw 'glog(' + n + ')';
- }
-
- return LOG_TABLE[n];
- };
-
- _this.gexp = function(n) {
-
- while (n < 0) {
- n += 255;
- }
-
- while (n >= 256) {
- n -= 255;
- }
-
- return EXP_TABLE[n];
- };
-
- return _this;
- }();
-
- //---------------------------------------------------------------------
- // qrPolynomial
- //---------------------------------------------------------------------
-
- function qrPolynomial(num, shift) {
-
- if (typeof num.length == 'undefined') {
- throw num.length + '/' + shift;
- }
-
- var _num = function() {
- var offset = 0;
- while (offset < num.length && num[offset] == 0) {
- offset += 1;
- }
- var _num = new Array(num.length - offset + shift);
- for (var i = 0; i < num.length - offset; i += 1) {
- _num[i] = num[i + offset];
- }
- return _num;
- }();
-
- var _this = {};
-
- _this.getAt = function(index) {
- return _num[index];
- };
-
- _this.getLength = function() {
- return _num.length;
- };
-
- _this.multiply = function(e) {
-
- var num = new Array(_this.getLength() + e.getLength() - 1);
-
- for (var i = 0; i < _this.getLength(); i += 1) {
- for (var j = 0; j < e.getLength(); j += 1) {
- num[i + j] ^= QRMath.gexp(QRMath.glog(_this.getAt(i) ) + QRMath.glog(e.getAt(j) ) );
- }
- }
-
- return qrPolynomial(num, 0);
- };
-
- _this.mod = function(e) {
-
- if (_this.getLength() - e.getLength() < 0) {
- return _this;
- }
-
- var ratio = QRMath.glog(_this.getAt(0) ) - QRMath.glog(e.getAt(0) );
-
- var num = new Array(_this.getLength() );
- for (var i = 0; i < _this.getLength(); i += 1) {
- num[i] = _this.getAt(i);
- }
-
- for (var i = 0; i < e.getLength(); i += 1) {
- num[i] ^= QRMath.gexp(QRMath.glog(e.getAt(i) ) + ratio);
- }
-
- // recursive call
- return qrPolynomial(num, 0).mod(e);
- };
-
- return _this;
- }
- //---------------------------------------------------------------------
- // QRRSBlock
- //---------------------------------------------------------------------
-
- var QRRSBlock = function() {
-
- var RS_BLOCK_TABLE = [
-
- // L
- // M
- // Q
- // H
-
- // 1
- [1, 26, 19],
- [1, 26, 16],
- [1, 26, 13],
- [1, 26, 9],
-
- // 2
- [1, 44, 34],
- [1, 44, 28],
- [1, 44, 22],
- [1, 44, 16],
-
- // 3
- [1, 70, 55],
- [1, 70, 44],
- [2, 35, 17],
- [2, 35, 13],
-
- // 4
- [1, 100, 80],
- [2, 50, 32],
- [2, 50, 24],
- [4, 25, 9],
-
- // 5
- [1, 134, 108],
- [2, 67, 43],
- [2, 33, 15, 2, 34, 16],
- [2, 33, 11, 2, 34, 12],
-
- // 6
- [2, 86, 68],
- [4, 43, 27],
- [4, 43, 19],
- [4, 43, 15],
-
- // 7
- [2, 98, 78],
- [4, 49, 31],
- [2, 32, 14, 4, 33, 15],
- [4, 39, 13, 1, 40, 14],
-
- // 8
- [2, 121, 97],
- [2, 60, 38, 2, 61, 39],
- [4, 40, 18, 2, 41, 19],
- [4, 40, 14, 2, 41, 15],
-
- // 9
- [2, 146, 116],
- [3, 58, 36, 2, 59, 37],
- [4, 36, 16, 4, 37, 17],
- [4, 36, 12, 4, 37, 13],
-
- // 10
- [2, 86, 68, 2, 87, 69],
- [4, 69, 43, 1, 70, 44],
- [6, 43, 19, 2, 44, 20],
- [6, 43, 15, 2, 44, 16],
-
- // 11
- [4, 101, 81],
- [1, 80, 50, 4, 81, 51],
- [4, 50, 22, 4, 51, 23],
- [3, 36, 12, 8, 37, 13],
-
- // 12
- [2, 116, 92, 2, 117, 93],
- [6, 58, 36, 2, 59, 37],
- [4, 46, 20, 6, 47, 21],
- [7, 42, 14, 4, 43, 15],
-
- // 13
- [4, 133, 107],
- [8, 59, 37, 1, 60, 38],
- [8, 44, 20, 4, 45, 21],
- [12, 33, 11, 4, 34, 12],
-
- // 14
- [3, 145, 115, 1, 146, 116],
- [4, 64, 40, 5, 65, 41],
- [11, 36, 16, 5, 37, 17],
- [11, 36, 12, 5, 37, 13],
-
- // 15
- [5, 109, 87, 1, 110, 88],
- [5, 65, 41, 5, 66, 42],
- [5, 54, 24, 7, 55, 25],
- [11, 36, 12, 7, 37, 13],
-
- // 16
- [5, 122, 98, 1, 123, 99],
- [7, 73, 45, 3, 74, 46],
- [15, 43, 19, 2, 44, 20],
- [3, 45, 15, 13, 46, 16],
-
- // 17
- [1, 135, 107, 5, 136, 108],
- [10, 74, 46, 1, 75, 47],
- [1, 50, 22, 15, 51, 23],
- [2, 42, 14, 17, 43, 15],
-
- // 18
- [5, 150, 120, 1, 151, 121],
- [9, 69, 43, 4, 70, 44],
- [17, 50, 22, 1, 51, 23],
- [2, 42, 14, 19, 43, 15],
-
- // 19
- [3, 141, 113, 4, 142, 114],
- [3, 70, 44, 11, 71, 45],
- [17, 47, 21, 4, 48, 22],
- [9, 39, 13, 16, 40, 14],
-
- // 20
- [3, 135, 107, 5, 136, 108],
- [3, 67, 41, 13, 68, 42],
- [15, 54, 24, 5, 55, 25],
- [15, 43, 15, 10, 44, 16],
-
- // 21
- [4, 144, 116, 4, 145, 117],
- [17, 68, 42],
- [17, 50, 22, 6, 51, 23],
- [19, 46, 16, 6, 47, 17],
-
- // 22
- [2, 139, 111, 7, 140, 112],
- [17, 74, 46],
- [7, 54, 24, 16, 55, 25],
- [34, 37, 13],
-
- // 23
- [4, 151, 121, 5, 152, 122],
- [4, 75, 47, 14, 76, 48],
- [11, 54, 24, 14, 55, 25],
- [16, 45, 15, 14, 46, 16],
-
- // 24
- [6, 147, 117, 4, 148, 118],
- [6, 73, 45, 14, 74, 46],
- [11, 54, 24, 16, 55, 25],
- [30, 46, 16, 2, 47, 17],
-
- // 25
- [8, 132, 106, 4, 133, 107],
- [8, 75, 47, 13, 76, 48],
- [7, 54, 24, 22, 55, 25],
- [22, 45, 15, 13, 46, 16],
-
- // 26
- [10, 142, 114, 2, 143, 115],
- [19, 74, 46, 4, 75, 47],
- [28, 50, 22, 6, 51, 23],
- [33, 46, 16, 4, 47, 17],
-
- // 27
- [8, 152, 122, 4, 153, 123],
- [22, 73, 45, 3, 74, 46],
- [8, 53, 23, 26, 54, 24],
- [12, 45, 15, 28, 46, 16],
-
- // 28
- [3, 147, 117, 10, 148, 118],
- [3, 73, 45, 23, 74, 46],
- [4, 54, 24, 31, 55, 25],
- [11, 45, 15, 31, 46, 16],
-
- // 29
- [7, 146, 116, 7, 147, 117],
- [21, 73, 45, 7, 74, 46],
- [1, 53, 23, 37, 54, 24],
- [19, 45, 15, 26, 46, 16],
-
- // 30
- [5, 145, 115, 10, 146, 116],
- [19, 75, 47, 10, 76, 48],
- [15, 54, 24, 25, 55, 25],
- [23, 45, 15, 25, 46, 16],
-
- // 31
- [13, 145, 115, 3, 146, 116],
- [2, 74, 46, 29, 75, 47],
- [42, 54, 24, 1, 55, 25],
- [23, 45, 15, 28, 46, 16],
-
- // 32
- [17, 145, 115],
- [10, 74, 46, 23, 75, 47],
- [10, 54, 24, 35, 55, 25],
- [19, 45, 15, 35, 46, 16],
-
- // 33
- [17, 145, 115, 1, 146, 116],
- [14, 74, 46, 21, 75, 47],
- [29, 54, 24, 19, 55, 25],
- [11, 45, 15, 46, 46, 16],
-
- // 34
- [13, 145, 115, 6, 146, 116],
- [14, 74, 46, 23, 75, 47],
- [44, 54, 24, 7, 55, 25],
- [59, 46, 16, 1, 47, 17],
-
- // 35
- [12, 151, 121, 7, 152, 122],
- [12, 75, 47, 26, 76, 48],
- [39, 54, 24, 14, 55, 25],
- [22, 45, 15, 41, 46, 16],
-
- // 36
- [6, 151, 121, 14, 152, 122],
- [6, 75, 47, 34, 76, 48],
- [46, 54, 24, 10, 55, 25],
- [2, 45, 15, 64, 46, 16],
-
- // 37
- [17, 152, 122, 4, 153, 123],
- [29, 74, 46, 14, 75, 47],
- [49, 54, 24, 10, 55, 25],
- [24, 45, 15, 46, 46, 16],
-
- // 38
- [4, 152, 122, 18, 153, 123],
- [13, 74, 46, 32, 75, 47],
- [48, 54, 24, 14, 55, 25],
- [42, 45, 15, 32, 46, 16],
-
- // 39
- [20, 147, 117, 4, 148, 118],
- [40, 75, 47, 7, 76, 48],
- [43, 54, 24, 22, 55, 25],
- [10, 45, 15, 67, 46, 16],
-
- // 40
- [19, 148, 118, 6, 149, 119],
- [18, 75, 47, 31, 76, 48],
- [34, 54, 24, 34, 55, 25],
- [20, 45, 15, 61, 46, 16]
- ];
-
- var qrRSBlock = function(totalCount, dataCount) {
- var _this = {};
- _this.totalCount = totalCount;
- _this.dataCount = dataCount;
- return _this;
- };
-
- var _this = {};
-
- var getRsBlockTable = function(typeNumber, errorCorrectionLevel) {
-
- switch(errorCorrectionLevel) {
- case QRErrorCorrectionLevel.L :
- return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0];
- case QRErrorCorrectionLevel.M :
- return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1];
- case QRErrorCorrectionLevel.Q :
- return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2];
- case QRErrorCorrectionLevel.H :
- return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3];
- default :
- return undefined;
- }
- };
-
- _this.getRSBlocks = function(typeNumber, errorCorrectionLevel) {
-
- var rsBlock = getRsBlockTable(typeNumber, errorCorrectionLevel);
-
- if (typeof rsBlock == 'undefined') {
- throw 'bad rs block @ typeNumber:' + typeNumber +
- '/errorCorrectionLevel:' + errorCorrectionLevel;
- }
-
- var length = rsBlock.length / 3;
-
- var list = [];
-
- for (var i = 0; i < length; i += 1) {
-
- var count = rsBlock[i * 3 + 0];
- var totalCount = rsBlock[i * 3 + 1];
- var dataCount = rsBlock[i * 3 + 2];
-
- for (var j = 0; j < count; j += 1) {
- list.push(qrRSBlock(totalCount, dataCount) );
- }
- }
-
- return list;
- };
-
- return _this;
- }();
-
- //---------------------------------------------------------------------
- // qrBitBuffer
- //---------------------------------------------------------------------
-
- var qrBitBuffer = function() {
-
- var _buffer = [];
- var _length = 0;
-
- var _this = {};
-
- _this.getBuffer = function() {
- return _buffer;
- };
-
- _this.getAt = function(index) {
- var bufIndex = Math.floor(index / 8);
- return ( (_buffer[bufIndex] >>> (7 - index % 8) ) & 1) == 1;
- };
-
- _this.put = function(num, length) {
- for (var i = 0; i < length; i += 1) {
- _this.putBit( ( (num >>> (length - i - 1) ) & 1) == 1);
- }
- };
-
- _this.getLengthInBits = function() {
- return _length;
- };
-
- _this.putBit = function(bit) {
-
- var bufIndex = Math.floor(_length / 8);
- if (_buffer.length <= bufIndex) {
- _buffer.push(0);
- }
-
- if (bit) {
- _buffer[bufIndex] |= (0x80 >>> (_length % 8) );
- }
-
- _length += 1;
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // qrNumber
- //---------------------------------------------------------------------
-
- var qrNumber = function(data) {
-
- var _mode = QRMode.MODE_NUMBER;
- var _data = data;
-
- var _this = {};
-
- _this.getMode = function() {
- return _mode;
- };
-
- _this.getLength = function(buffer) {
- return _data.length;
- };
-
- _this.write = function(buffer) {
-
- var data = _data;
-
- var i = 0;
-
- while (i + 2 < data.length) {
- buffer.put(strToNum(data.substring(i, i + 3) ), 10);
- i += 3;
- }
-
- if (i < data.length) {
- if (data.length - i == 1) {
- buffer.put(strToNum(data.substring(i, i + 1) ), 4);
- } else if (data.length - i == 2) {
- buffer.put(strToNum(data.substring(i, i + 2) ), 7);
- }
- }
- };
-
- var strToNum = function(s) {
- var num = 0;
- for (var i = 0; i < s.length; i += 1) {
- num = num * 10 + chatToNum(s.charAt(i) );
- }
- return num;
- };
-
- var chatToNum = function(c) {
- if ('0' <= c && c <= '9') {
- return c.charCodeAt(0) - '0'.charCodeAt(0);
- }
- throw 'illegal char :' + c;
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // qrAlphaNum
- //---------------------------------------------------------------------
-
- var qrAlphaNum = function(data) {
-
- var _mode = QRMode.MODE_ALPHA_NUM;
- var _data = data;
-
- var _this = {};
-
- _this.getMode = function() {
- return _mode;
- };
-
- _this.getLength = function(buffer) {
- return _data.length;
- };
-
- _this.write = function(buffer) {
-
- var s = _data;
-
- var i = 0;
-
- while (i + 1 < s.length) {
- buffer.put(
- getCode(s.charAt(i) ) * 45 +
- getCode(s.charAt(i + 1) ), 11);
- i += 2;
- }
-
- if (i < s.length) {
- buffer.put(getCode(s.charAt(i) ), 6);
- }
- };
-
- var getCode = function(c) {
-
- if ('0' <= c && c <= '9') {
- return c.charCodeAt(0) - '0'.charCodeAt(0);
- } else if ('A' <= c && c <= 'Z') {
- return c.charCodeAt(0) - 'A'.charCodeAt(0) + 10;
- } else {
- switch (c) {
- case ' ' : return 36;
- case '$' : return 37;
- case '%' : return 38;
- case '*' : return 39;
- case '+' : return 40;
- case '-' : return 41;
- case '.' : return 42;
- case '/' : return 43;
- case ':' : return 44;
- default :
- throw 'illegal char :' + c;
- }
- }
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // qr8BitByte
- //---------------------------------------------------------------------
-
- var qr8BitByte = function(data) {
-
- var _mode = QRMode.MODE_8BIT_BYTE;
- var _bytes = qrcode.stringToBytes(data);
-
- var _this = {};
-
- _this.getMode = function() {
- return _mode;
- };
-
- _this.getLength = function(buffer) {
- return _bytes.length;
- };
-
- _this.write = function(buffer) {
- for (var i = 0; i < _bytes.length; i += 1) {
- buffer.put(_bytes[i], 8);
- }
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // qrKanji
- //---------------------------------------------------------------------
-
- var qrKanji = function(data) {
-
- var _mode = QRMode.MODE_KANJI;
-
- var stringToBytes = qrcode.stringToBytesFuncs['SJIS'];
- if (!stringToBytes) {
- throw 'sjis not supported.';
- }
- !function(c, code) {
- // self test for sjis support.
- var test = stringToBytes(c);
- if (test.length != 2 || ( (test[0] << 8) | test[1]) != code) {
- throw 'sjis not supported.';
- }
- }('\u53cb', 0x9746);
-
- var _bytes = stringToBytes(data);
-
- var _this = {};
-
- _this.getMode = function() {
- return _mode;
- };
-
- _this.getLength = function(buffer) {
- return ~~(_bytes.length / 2);
- };
-
- _this.write = function(buffer) {
-
- var data = _bytes;
-
- var i = 0;
-
- while (i + 1 < data.length) {
-
- var c = ( (0xff & data[i]) << 8) | (0xff & data[i + 1]);
-
- if (0x8140 <= c && c <= 0x9FFC) {
- c -= 0x8140;
- } else if (0xE040 <= c && c <= 0xEBBF) {
- c -= 0xC140;
- } else {
- throw 'illegal char at ' + (i + 1) + '/' + c;
- }
-
- c = ( (c >>> 8) & 0xff) * 0xC0 + (c & 0xff);
-
- buffer.put(c, 13);
-
- i += 2;
- }
-
- if (i < data.length) {
- throw 'illegal char at ' + (i + 1);
- }
- };
-
- return _this;
- };
-
- //=====================================================================
- // GIF Support etc.
- //
-
- //---------------------------------------------------------------------
- // byteArrayOutputStream
- //---------------------------------------------------------------------
-
- var byteArrayOutputStream = function() {
-
- var _bytes = [];
-
- var _this = {};
-
- _this.writeByte = function(b) {
- _bytes.push(b & 0xff);
- };
-
- _this.writeShort = function(i) {
- _this.writeByte(i);
- _this.writeByte(i >>> 8);
- };
-
- _this.writeBytes = function(b, off, len) {
- off = off || 0;
- len = len || b.length;
- for (var i = 0; i < len; i += 1) {
- _this.writeByte(b[i + off]);
- }
- };
-
- _this.writeString = function(s) {
- for (var i = 0; i < s.length; i += 1) {
- _this.writeByte(s.charCodeAt(i) );
- }
- };
-
- _this.toByteArray = function() {
- return _bytes;
- };
-
- _this.toString = function() {
- var s = '';
- s += '[';
- for (var i = 0; i < _bytes.length; i += 1) {
- if (i > 0) {
- s += ',';
- }
- s += _bytes[i];
- }
- s += ']';
- return s;
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // base64EncodeOutputStream
- //---------------------------------------------------------------------
-
- var base64EncodeOutputStream = function() {
-
- var _buffer = 0;
- var _buflen = 0;
- var _length = 0;
- var _base64 = '';
-
- var _this = {};
-
- var writeEncoded = function(b) {
- _base64 += String.fromCharCode(encode(b & 0x3f) );
- };
-
- var encode = function(n) {
- if (n < 0) ; else if (n < 26) {
- return 0x41 + n;
- } else if (n < 52) {
- return 0x61 + (n - 26);
- } else if (n < 62) {
- return 0x30 + (n - 52);
- } else if (n == 62) {
- return 0x2b;
- } else if (n == 63) {
- return 0x2f;
- }
- throw 'n:' + n;
- };
-
- _this.writeByte = function(n) {
-
- _buffer = (_buffer << 8) | (n & 0xff);
- _buflen += 8;
- _length += 1;
-
- while (_buflen >= 6) {
- writeEncoded(_buffer >>> (_buflen - 6) );
- _buflen -= 6;
- }
- };
-
- _this.flush = function() {
-
- if (_buflen > 0) {
- writeEncoded(_buffer << (6 - _buflen) );
- _buffer = 0;
- _buflen = 0;
- }
-
- if (_length % 3 != 0) {
- // padding
- var padlen = 3 - _length % 3;
- for (var i = 0; i < padlen; i += 1) {
- _base64 += '=';
- }
- }
- };
-
- _this.toString = function() {
- return _base64;
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // base64DecodeInputStream
- //---------------------------------------------------------------------
-
- var base64DecodeInputStream = function(str) {
-
- var _str = str;
- var _pos = 0;
- var _buffer = 0;
- var _buflen = 0;
-
- var _this = {};
-
- _this.read = function() {
-
- while (_buflen < 8) {
-
- if (_pos >= _str.length) {
- if (_buflen == 0) {
- return -1;
- }
- throw 'unexpected end of file./' + _buflen;
- }
-
- var c = _str.charAt(_pos);
- _pos += 1;
-
- if (c == '=') {
- _buflen = 0;
- return -1;
- } else if (c.match(/^\s$/) ) {
- // ignore if whitespace.
- continue;
- }
-
- _buffer = (_buffer << 6) | decode(c.charCodeAt(0) );
- _buflen += 6;
- }
-
- var n = (_buffer >>> (_buflen - 8) ) & 0xff;
- _buflen -= 8;
- return n;
- };
-
- var decode = function(c) {
- if (0x41 <= c && c <= 0x5a) {
- return c - 0x41;
- } else if (0x61 <= c && c <= 0x7a) {
- return c - 0x61 + 26;
- } else if (0x30 <= c && c <= 0x39) {
- return c - 0x30 + 52;
- } else if (c == 0x2b) {
- return 62;
- } else if (c == 0x2f) {
- return 63;
- } else {
- throw 'c:' + c;
- }
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // gifImage (B/W)
- //---------------------------------------------------------------------
-
- var gifImage = function(width, height) {
-
- var _width = width;
- var _height = height;
- var _data = new Array(width * height);
-
- var _this = {};
-
- _this.setPixel = function(x, y, pixel) {
- _data[y * _width + x] = pixel;
- };
-
- _this.write = function(out) {
-
- //---------------------------------
- // GIF Signature
-
- out.writeString('GIF87a');
-
- //---------------------------------
- // Screen Descriptor
-
- out.writeShort(_width);
- out.writeShort(_height);
-
- out.writeByte(0x80); // 2bit
- out.writeByte(0);
- out.writeByte(0);
-
- //---------------------------------
- // Global Color Map
-
- // black
- out.writeByte(0x00);
- out.writeByte(0x00);
- out.writeByte(0x00);
-
- // white
- out.writeByte(0xff);
- out.writeByte(0xff);
- out.writeByte(0xff);
-
- //---------------------------------
- // Image Descriptor
-
- out.writeString(',');
- out.writeShort(0);
- out.writeShort(0);
- out.writeShort(_width);
- out.writeShort(_height);
- out.writeByte(0);
-
- //---------------------------------
- // Local Color Map
-
- //---------------------------------
- // Raster Data
-
- var lzwMinCodeSize = 2;
- var raster = getLZWRaster(lzwMinCodeSize);
-
- out.writeByte(lzwMinCodeSize);
-
- var offset = 0;
-
- while (raster.length - offset > 255) {
- out.writeByte(255);
- out.writeBytes(raster, offset, 255);
- offset += 255;
- }
-
- out.writeByte(raster.length - offset);
- out.writeBytes(raster, offset, raster.length - offset);
- out.writeByte(0x00);
-
- //---------------------------------
- // GIF Terminator
- out.writeString(';');
- };
-
- var bitOutputStream = function(out) {
-
- var _out = out;
- var _bitLength = 0;
- var _bitBuffer = 0;
-
- var _this = {};
-
- _this.write = function(data, length) {
-
- if ( (data >>> length) != 0) {
- throw 'length over';
- }
-
- while (_bitLength + length >= 8) {
- _out.writeByte(0xff & ( (data << _bitLength) | _bitBuffer) );
- length -= (8 - _bitLength);
- data >>>= (8 - _bitLength);
- _bitBuffer = 0;
- _bitLength = 0;
- }
-
- _bitBuffer = (data << _bitLength) | _bitBuffer;
- _bitLength = _bitLength + length;
- };
-
- _this.flush = function() {
- if (_bitLength > 0) {
- _out.writeByte(_bitBuffer);
- }
- };
-
- return _this;
- };
-
- var getLZWRaster = function(lzwMinCodeSize) {
-
- var clearCode = 1 << lzwMinCodeSize;
- var endCode = (1 << lzwMinCodeSize) + 1;
- var bitLength = lzwMinCodeSize + 1;
-
- // Setup LZWTable
- var table = lzwTable();
-
- for (var i = 0; i < clearCode; i += 1) {
- table.add(String.fromCharCode(i) );
- }
- table.add(String.fromCharCode(clearCode) );
- table.add(String.fromCharCode(endCode) );
-
- var byteOut = byteArrayOutputStream();
- var bitOut = bitOutputStream(byteOut);
-
- // clear code
- bitOut.write(clearCode, bitLength);
-
- var dataIndex = 0;
-
- var s = String.fromCharCode(_data[dataIndex]);
- dataIndex += 1;
-
- while (dataIndex < _data.length) {
-
- var c = String.fromCharCode(_data[dataIndex]);
- dataIndex += 1;
-
- if (table.contains(s + c) ) {
-
- s = s + c;
-
- } else {
-
- bitOut.write(table.indexOf(s), bitLength);
-
- if (table.size() < 0xfff) {
-
- if (table.size() == (1 << bitLength) ) {
- bitLength += 1;
- }
-
- table.add(s + c);
- }
-
- s = c;
- }
- }
-
- bitOut.write(table.indexOf(s), bitLength);
-
- // end code
- bitOut.write(endCode, bitLength);
-
- bitOut.flush();
-
- return byteOut.toByteArray();
- };
-
- var lzwTable = function() {
-
- var _map = {};
- var _size = 0;
-
- var _this = {};
-
- _this.add = function(key) {
- if (_this.contains(key) ) {
- throw 'dup key:' + key;
- }
- _map[key] = _size;
- _size += 1;
- };
-
- _this.size = function() {
- return _size;
- };
-
- _this.indexOf = function(key) {
- return _map[key];
- };
-
- _this.contains = function(key) {
- return typeof _map[key] != 'undefined';
- };
-
- return _this;
- };
-
- return _this;
- };
-
- var createDataURL = function(width, height, getPixel) {
- var gif = gifImage(width, height);
- for (var y = 0; y < height; y += 1) {
- for (var x = 0; x < width; x += 1) {
- gif.setPixel(x, y, getPixel(x, y) );
- }
- }
-
- var b = byteArrayOutputStream();
- gif.write(b);
-
- var base64 = base64EncodeOutputStream();
- var bytes = b.toByteArray();
- for (var i = 0; i < bytes.length; i += 1) {
- base64.writeByte(bytes[i]);
- }
- base64.flush();
-
- return 'data:image/gif;base64,' + base64;
- };
-
- //---------------------------------------------------------------------
- // returns qrcode function.
-
- return qrcode;
- }();
-
- // multibyte support
- !function() {
-
- qrcode.stringToBytesFuncs['UTF-8'] = function(s) {
- // http://stackoverflow.com/questions/18729405/how-to-convert-utf8-string-to-byte-array
- function toUTF8Array(str) {
- var utf8 = [];
- for (var i=0; i < str.length; i++) {
- var charcode = str.charCodeAt(i);
- if (charcode < 0x80) utf8.push(charcode);
- else if (charcode < 0x800) {
- utf8.push(0xc0 | (charcode >> 6),
- 0x80 | (charcode & 0x3f));
- }
- else if (charcode < 0xd800 || charcode >= 0xe000) {
- utf8.push(0xe0 | (charcode >> 12),
- 0x80 | ((charcode>>6) & 0x3f),
- 0x80 | (charcode & 0x3f));
- }
- // surrogate pair
- else {
- i++;
- // UTF-16 encodes 0x10000-0x10FFFF by
- // subtracting 0x10000 and splitting the
- // 20 bits of 0x0-0xFFFFF into two halves
- charcode = 0x10000 + (((charcode & 0x3ff)<<10)
- | (str.charCodeAt(i) & 0x3ff));
- utf8.push(0xf0 | (charcode >>18),
- 0x80 | ((charcode>>12) & 0x3f),
- 0x80 | ((charcode>>6) & 0x3f),
- 0x80 | (charcode & 0x3f));
- }
- }
- return utf8;
- }
- return toUTF8Array(s);
- };
-
- }();
-
- (function (factory) {
- {
- module.exports = factory();
- }
- }(function () {
- return qrcode;
- }));
- }(qrcode$1));
-
- var qrcode = qrcode$1.exports;
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- function createSVG(text) {
- const qr = qrcode(0, "L");
- qr.addData(text);
- qr.make();
- return qr.createSvgTag({
- scalable: true,
- margin: 0,
- });
- }
- function QR({ text }) {
- const divRef = _(null);
- h(() => {
- if (divRef.current) {
- divRef.current.innerHTML = createSVG(text);
- }
- });
- return (h$2("div", { style: {
- width: "100%",
- display: "flex",
- flexDirection: "column",
- alignItems: "center",
- } },
- h$2("div", { style: { width: "50%", minWidth: 200, maxWidth: 300 }, ref: divRef })));
- }
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- function Head({ order_summary }) {
- return h$2(p$2, null,
- h$2("meta", { charSet: "UTF-8" }),
- h$2("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0" }),
- h$2("noscript", null,
- h$2("meta", { "http-equiv": "refresh", content: "1" })),
- h$2("title", null,
- "Refund available for ",
- order_summary ? order_summary : `{{ order_summary }}`));
- }
- function OfferRefund({ refundURI, qr_code, order_status_url }) {
- h(() => {
- let checkUrl;
- try {
- checkUrl = new URL(order_status_url ? order_status_url : "{{& order_status_url }}");
- }
- catch (e) {
- return;
- }
- checkUrl.searchParams.set("await_refund_obtained", "yes");
- const delayMs = 500;
- function check() {
- let retried = false;
- function retryOnce() {
- if (!retried) {
- retried = true;
- check();
- }
- }
- const req = new XMLHttpRequest();
- req.onreadystatechange = function () {
- if (req.readyState === XMLHttpRequest.DONE) {
- if (req.status === 200) {
- try {
- const resp = JSON.parse(req.responseText);
- if (!resp.refund_pending) {
- window.location.reload();
- }
- }
- catch (e) {
- console.error("could not parse response:", e);
- }
- }
- setTimeout(retryOnce, delayMs);
- }
- };
- req.onerror = function () {
- setTimeout(retryOnce, delayMs);
- };
- req.open("GET", checkUrl.href);
- req.send();
- }
- setTimeout(check, delayMs);
- });
- return h$2(Page, null,
- h$2("section", null,
- h$2("h1", null, "Collect Taler refund"),
- h$2("p", null, "Scan this QR code with your Taler mobile wallet:"),
- h$2(QRPlaceholder, { dangerouslySetInnerHTML: { __html: qr_code ? qr_code : `{{{ taler_refund_qrcode_svg }}}` } }),
- h$2("p", null,
- h$2(WalletLink, { href: refundURI ? refundURI : `{{ taler_refund_uri }}` }, "Or open your Taler wallet")),
- h$2("p", null,
- h$2("a", { href: "https://wallet.taler.net/" }, "Don't have a Taler wallet yet? Install it!"))),
- h$2(Footer, null));
- }
- function mount() {
- try {
- const fromLocation = new URL(window.location.href).searchParams;
- const os = fromLocation.get('order_summary') || undefined;
- if (os) {
- P$1(h$2(Head, { order_summary: os }), document.head);
- }
- const uri = fromLocation.get('refund_uri') || undefined;
- const osu = fromLocation.get('order_status_url') || undefined;
- const qr_code = uri ? S(h$2(QR, { text: uri })) : undefined;
- P$1(h$2(OfferRefund, { refundURI: uri, order_status_url: osu, qr_code: qr_code }), document.body);
- }
- catch (e) {
- console.error("got error", e);
- if (e instanceof Error) {
- document.body.innerText = `Fatal error: "${e.message}". Please report this bug at https://bugs.gnunet.org/.`;
- }
- }
- }
- function buildTimeRendering() {
- return {
- head: S(h$2(Head, null)),
- body: S(h$2(OfferRefund, null))
- };
- }
-
- exports.OfferRefund = OfferRefund;
- exports.buildTimeRendering = buildTimeRendering;
- exports.mount = mount;
-
- Object.defineProperty(exports, '__esModule', { value: true });
-
- return exports;
-
-})({});
+</style>
+ </head>
+ <script id="built_time_data">
+ </script>
+ <body>
+ <div class="p1b3vqup"><section><h1>Collect Taler refund</h1><p>Scan this QR code with your Taler mobile wallet:</p><div class="q1ma0zxq">{{{ taler_refund_qrcode_svg }}}</div><p><a href="{{ taler_refund_uri }}" style="--wpwjmk-0: none;" class="wpwjmk">Or open your Taler wallet</a></p><p><a href="https://wallet.taler.net/">Don't have a Taler wallet yet? Install it!</a></p></section><footer class="fef0x5t"><p><a href="https://taler.net/">Learn more about GNU Taler on our website.</a><p>Copyright © 2014—2021 Taler Systems SA</p></p></footer></div>
+ <script>"use strict";var page=(()=>{var kr=Object.create;var Ae=Object.defineProperty;var Cr=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var Er=Object.getPrototypeOf,Tr=Object.prototype.hasOwnProperty;var Mr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Lr=(e,t)=>{for(var r in t)Ae(e,r,{get:t[r],enumerable:!0})},ot=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ar(t))!Tr.call(e,i)&&i!==r&&Ae(e,i,{get:()=>t[i],enumerable:!(n=Cr(t,i))||n.enumerable});return e};var Pr=(e,t,r)=>(r=e!=null?kr(Er(e)):{},ot(t||!e||!e.__esModule?Ae(r,"default",{value:e,enumerable:!0}):r,e)),Br=e=>ot(Ae({},"__esModule",{value:!0}),e);var yr=Mr((gr,mr)=>{var vr=function(){var e=function(w,E){var x=236,b=17,f=w,d=r[E],u=null,a=0,c=null,l=[],p={},S=function(h,v){a=f*4+17,u=function(_){for(var g=new Array(_),y=0;y<_;y+=1){g[y]=new Array(_);for(var T=0;T<_;T+=1)g[y][T]=null}return g}(a),U(0,0),U(a-7,0),U(0,a-7),Y(),V(),Z(h,v),f>=7&&Q(h),c==null&&(c=ke(f,d,l)),J(c,v)},U=function(h,v){for(var _=-1;_<=7;_+=1)if(!(h+_<=-1||a<=h+_))for(var g=-1;g<=7;g+=1)v+g<=-1||a<=v+g||(0<=_&&_<=6&&(g==0||g==6)||0<=g&&g<=6&&(_==0||_==6)||2<=_&&_<=4&&2<=g&&g<=4?u[h+_][v+g]=!0:u[h+_][v+g]=!1)},W=function(){for(var h=0,v=0,_=0;_<8;_+=1){S(!0,_);var g=i.getLostPoint(p);(_==0||h>g)&&(h=g,v=_)}return v},V=function(){for(var h=8;h<a-8;h+=1)u[h][6]==null&&(u[h][6]=h%2==0);for(var v=8;v<a-8;v+=1)u[6][v]==null&&(u[6][v]=v%2==0)},Y=function(){for(var h=i.getPatternPosition(f),v=0;v<h.length;v+=1)for(var _=0;_<h.length;_+=1){var g=h[v],y=h[_];if(u[g][y]==null)for(var T=-2;T<=2;T+=1)for(var R=-2;R<=2;R+=1)T==-2||T==2||R==-2||R==2||T==0&&R==0?u[g+T][y+R]=!0:u[g+T][y+R]=!1}},Q=function(h){for(var v=i.getBCHTypeNumber(f),_=0;_<18;_+=1){var g=!h&&(v>>_&1)==1;u[Math.floor(_/3)][_%3+a-8-3]=g}for(var _=0;_<18;_+=1){var g=!h&&(v>>_&1)==1;u[_%3+a-8-3][Math.floor(_/3)]=g}},Z=function(h,v){for(var _=d<<3|v,g=i.getBCHTypeInfo(_),y=0;y<15;y+=1){var T=!h&&(g>>y&1)==1;y<6?u[y][8]=T:y<8?u[y+1][8]=T:u[a-15+y][8]=T}for(var y=0;y<15;y+=1){var T=!h&&(g>>y&1)==1;y<8?u[8][a-y-1]=T:y<9?u[8][15-y-1+1]=T:u[8][15-y-1]=T}u[a-8][8]=!h},J=function(h,v){for(var _=-1,g=a-1,y=7,T=0,R=i.getMaskFunction(v),O=a-1;O>0;O-=2)for(O==6&&(O-=1);;){for(var $=0;$<2;$+=1)if(u[g][O-$]==null){var G=!1;T<h.length&&(G=(h[T]>>>y&1)==1);var F=R(g,O-$);F&&(G=!G),u[g][O-$]=G,y-=1,y==-1&&(T+=1,y=7)}if(g+=_,g<0||a<=g){g-=_,_=-_;break}}},K=function(h,v){for(var _=0,g=0,y=0,T=new Array(v.length),R=new Array(v.length),O=0;O<v.length;O+=1){var $=v[O].dataCount,G=v[O].totalCount-$;g=Math.max(g,$),y=Math.max(y,G),T[O]=new Array($);for(var F=0;F<T[O].length;F+=1)T[O][F]=255&h.getBuffer()[F+_];_+=$;var z=i.getErrorCorrectPolynomial(G),ee=m(T[O],z.getLength()-1),tt=ee.mod(z);R[O]=new Array(z.getLength()-1);for(var F=0;F<R[O].length;F+=1){var rt=F+tt.getLength()-R[O].length;R[O][F]=rt>=0?tt.getAt(rt):0}}for(var nt=0,F=0;F<v.length;F+=1)nt+=v[F].totalCount;for(var Ue=new Array(nt),Ce=0,F=0;F<g;F+=1)for(var O=0;O<v.length;O+=1)F<T[O].length&&(Ue[Ce]=T[O][F],Ce+=1);for(var F=0;F<y;F+=1)for(var O=0;O<v.length;O+=1)F<R[O].length&&(Ue[Ce]=R[O][F],Ce+=1);return Ue},ke=function(h,v,_){for(var g=k.getRSBlocks(h,v),y=M(),T=0;T<_.length;T+=1){var R=_[T];y.put(R.getMode(),4),y.put(R.getLength(),i.getLengthInBits(R.getMode(),h)),R.write(y)}for(var O=0,T=0;T<g.length;T+=1)O+=g[T].dataCount;if(y.getLengthInBits()>O*8)throw"code length overflow. ("+y.getLengthInBits()+">"+O*8+")";for(y.getLengthInBits()+4<=O*8&&y.put(0,4);y.getLengthInBits()%8!=0;)y.putBit(!1);for(;!(y.getLengthInBits()>=O*8||(y.put(x,8),y.getLengthInBits()>=O*8));)y.put(b,8);return K(y,g)};p.addData=function(h,v){v=v||"Byte";var _=null;switch(v){case"Numeric":_=N(h);break;case"Alphanumeric":_=s(h);break;case"Byte":_=B(h);break;case"Kanji":_=P(h);break;default:throw"mode:"+v}l.push(_),c=null},p.isDark=function(h,v){if(h<0||a<=h||v<0||a<=v)throw h+","+v;return u[h][v]},p.getModuleCount=function(){return a},p.make=function(){if(f<1){for(var h=1;h<40;h++){for(var v=k.getRSBlocks(h,d),_=M(),g=0;g<l.length;g++){var y=l[g];_.put(y.getMode(),4),_.put(y.getLength(),i.getLengthInBits(y.getMode(),h)),y.write(_)}for(var T=0,g=0;g<v.length;g++)T+=v[g].dataCount;if(_.getLengthInBits()<=T*8)break}f=h}S(!1,W())},p.createTableTag=function(h,v){h=h||2,v=typeof v=="undefined"?h*4:v;var _="";_+='<table style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: "+v+"px;",_+='">',_+="<tbody>";for(var g=0;g<p.getModuleCount();g+=1){_+="<tr>";for(var y=0;y<p.getModuleCount();y+=1)_+='<td style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: 0px;",_+=" width: "+h+"px;",_+=" height: "+h+"px;",_+=" background-color: ",_+=p.isDark(g,y)?"#000000":"#ffffff",_+=";",_+='"/>';_+="</tr>"}return _+="</tbody>",_+="</table>",_},p.createSvgTag=function(h,v,_,g){var y={};typeof arguments[0]=="object"&&(y=arguments[0],h=y.cellSize,v=y.margin,_=y.alt,g=y.title),h=h||2,v=typeof v=="undefined"?h*4:v,_=typeof _=="string"?{text:_}:_||{},_.text=_.text||null,_.id=_.text?_.id||"qrcode-description":null,g=typeof g=="string"?{text:g}:g||{},g.text=g.text||null,g.id=g.text?g.id||"qrcode-title":null;var T=p.getModuleCount()*h+v*2,R,O,$,G,F="",z;for(z="l"+h+",0 0,"+h+" -"+h+",0 0,-"+h+"z ",F+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',F+=y.scalable?"":' width="'+T+'px" height="'+T+'px"',F+=' viewBox="0 0 '+T+" "+T+'" ',F+=' preserveAspectRatio="xMinYMin meet"',F+=g.text||_.text?' role="img" aria-labelledby="'+re([g.id,_.id].join(" ").trim())+'"':"",F+=">",F+=g.text?'<title id="'+re(g.id)+'">'+re(g.text)+"</title>":"",F+=_.text?'<description id="'+re(_.id)+'">'+re(_.text)+"</description>":"",F+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',F+='<path d="',$=0;$<p.getModuleCount();$+=1)for(G=$*h+v,R=0;R<p.getModuleCount();R+=1)p.isDark($,R)&&(O=R*h+v,F+="M"+O+","+G+z);return F+='" stroke="transparent" fill="black"/>',F+="</svg>",F},p.createDataURL=function(h,v){h=h||2,v=typeof v=="undefined"?h*4:v;var _=p.getModuleCount()*h+v*2,g=v,y=_-v;return j(_,_,function(T,R){if(g<=T&&T<y&&g<=R&&R<y){var O=Math.floor((T-g)/h),$=Math.floor((R-g)/h);return p.isDark($,O)?0:1}else return 1})},p.createImgTag=function(h,v,_){h=h||2,v=typeof v=="undefined"?h*4:v;var g=p.getModuleCount()*h+v*2,y="";return y+="<img",y+=' src="',y+=p.createDataURL(h,v),y+='"',y+=' width="',y+=g,y+='"',y+=' height="',y+=g,y+='"',_&&(y+=' alt="',y+=re(_),y+='"'),y+="/>",y};var re=function(h){for(var v="",_=0;_<h.length;_+=1){var g=h.charAt(_);switch(g){case"<":v+="&lt;";break;case">":v+="&gt;";break;case"&":v+="&amp;";break;case'"':v+="&quot;";break;default:v+=g;break}}return v},ce=function(h){var v=1;h=typeof h=="undefined"?v*2:h;var _=p.getModuleCount()*v+h*2,g=h,y=_-h,T,R,O,$,G,F={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},z={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},ee="";for(T=0;T<_;T+=2){for(O=Math.floor((T-g)/v),$=Math.floor((T+1-g)/v),R=0;R<_;R+=1)G="\u2588",g<=R&&R<y&&g<=T&&T<y&&p.isDark(O,Math.floor((R-g)/v))&&(G=" "),g<=R&&R<y&&g<=T+1&&T+1<y&&p.isDark($,Math.floor((R-g)/v))?G+=" ":G+="\u2588",ee+=h<1&&T+1>=y?z[G]:F[G];ee+=`
+`}return _%2&&h>0?ee.substring(0,ee.length-_-1)+Array(_+1).join("\u2580"):ee.substring(0,ee.length-1)};return p.createASCII=function(h,v){if(h=h||1,h<2)return ce(v);h-=1,v=typeof v=="undefined"?h*2:v;var _=p.getModuleCount()*h+v*2,g=v,y=_-v,T,R,O,$,G=Array(h+1).join("\u2588\u2588"),F=Array(h+1).join(" "),z="",ee="";for(T=0;T<_;T+=1){for(O=Math.floor((T-g)/h),ee="",R=0;R<_;R+=1)$=1,g<=R&&R<y&&g<=T&&T<y&&p.isDark(O,Math.floor((R-g)/h))&&($=0),ee+=$?G:F;for(O=0;O<h;O+=1)z+=ee+`
+`}return z.substring(0,z.length-1)},p.renderTo2dContext=function(h,v){v=v||2;for(var _=p.getModuleCount(),g=0;g<_;g++)for(var y=0;y<_;y++)h.fillStyle=p.isDark(g,y)?"black":"white",h.fillRect(g*v,y*v,v,v)},p};e.stringToBytesFuncs={default:function(w){for(var E=[],x=0;x<w.length;x+=1){var b=w.charCodeAt(x);E.push(b&255)}return E}},e.stringToBytes=e.stringToBytesFuncs.default,e.createStringToBytes=function(w,E){var x=function(){for(var f=H(w),d=function(){var V=f.read();if(V==-1)throw"eof";return V},u=0,a={};;){var c=f.read();if(c==-1)break;var l=d(),p=d(),S=d(),U=String.fromCharCode(c<<8|l),W=p<<8|S;a[U]=W,u+=1}if(u!=E)throw u+" != "+E;return a}(),b="?".charCodeAt(0);return function(f){for(var d=[],u=0;u<f.length;u+=1){var a=f.charCodeAt(u);if(a<128)d.push(a);else{var c=x[f.charAt(u)];typeof c=="number"?(c&255)==c?d.push(c):(d.push(c>>>8),d.push(c&255)):d.push(b)}}return d}};var t={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3},r={L:1,M:0,Q:3,H:2},n={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},i=function(){var w=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],E=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,x=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,b=1<<14|1<<12|1<<10|1<<4|1<<1,f={},d=function(u){for(var a=0;u!=0;)a+=1,u>>>=1;return a};return f.getBCHTypeInfo=function(u){for(var a=u<<10;d(a)-d(E)>=0;)a^=E<<d(a)-d(E);return(u<<10|a)^b},f.getBCHTypeNumber=function(u){for(var a=u<<12;d(a)-d(x)>=0;)a^=x<<d(a)-d(x);return u<<12|a},f.getPatternPosition=function(u){return w[u-1]},f.getMaskFunction=function(u){switch(u){case n.PATTERN000:return function(a,c){return(a+c)%2==0};case n.PATTERN001:return function(a,c){return a%2==0};case n.PATTERN010:return function(a,c){return c%3==0};case n.PATTERN011:return function(a,c){return(a+c)%3==0};case n.PATTERN100:return function(a,c){return(Math.floor(a/2)+Math.floor(c/3))%2==0};case n.PATTERN101:return function(a,c){return a*c%2+a*c%3==0};case n.PATTERN110:return function(a,c){return(a*c%2+a*c%3)%2==0};case n.PATTERN111:return function(a,c){return(a*c%3+(a+c)%2)%2==0};default:throw"bad maskPattern:"+u}},f.getErrorCorrectPolynomial=function(u){for(var a=m([1],0),c=0;c<u;c+=1)a=a.multiply(m([1,o.gexp(c)],0));return a},f.getLengthInBits=function(u,a){if(1<=a&&a<10)switch(u){case t.MODE_NUMBER:return 10;case t.MODE_ALPHA_NUM:return 9;case t.MODE_8BIT_BYTE:return 8;case t.MODE_KANJI:return 8;default:throw"mode:"+u}else if(a<27)switch(u){case t.MODE_NUMBER:return 12;case t.MODE_ALPHA_NUM:return 11;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 10;default:throw"mode:"+u}else if(a<41)switch(u){case t.MODE_NUMBER:return 14;case t.MODE_ALPHA_NUM:return 13;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 12;default:throw"mode:"+u}else throw"type:"+a},f.getLostPoint=function(u){for(var a=u.getModuleCount(),c=0,l=0;l<a;l+=1)for(var p=0;p<a;p+=1){for(var S=0,U=u.isDark(l,p),W=-1;W<=1;W+=1)if(!(l+W<0||a<=l+W))for(var V=-1;V<=1;V+=1)p+V<0||a<=p+V||W==0&&V==0||U==u.isDark(l+W,p+V)&&(S+=1);S>5&&(c+=3+S-5)}for(var l=0;l<a-1;l+=1)for(var p=0;p<a-1;p+=1){var Y=0;u.isDark(l,p)&&(Y+=1),u.isDark(l+1,p)&&(Y+=1),u.isDark(l,p+1)&&(Y+=1),u.isDark(l+1,p+1)&&(Y+=1),(Y==0||Y==4)&&(c+=3)}for(var l=0;l<a;l+=1)for(var p=0;p<a-6;p+=1)u.isDark(l,p)&&!u.isDark(l,p+1)&&u.isDark(l,p+2)&&u.isDark(l,p+3)&&u.isDark(l,p+4)&&!u.isDark(l,p+5)&&u.isDark(l,p+6)&&(c+=40);for(var p=0;p<a;p+=1)for(var l=0;l<a-6;l+=1)u.isDark(l,p)&&!u.isDark(l+1,p)&&u.isDark(l+2,p)&&u.isDark(l+3,p)&&u.isDark(l+4,p)&&!u.isDark(l+5,p)&&u.isDark(l+6,p)&&(c+=40);for(var Q=0,p=0;p<a;p+=1)for(var l=0;l<a;l+=1)u.isDark(l,p)&&(Q+=1);var Z=Math.abs(100*Q/a/a-50)/5;return c+=Z*10,c},f}(),o=function(){for(var w=new Array(256),E=new Array(256),x=0;x<8;x+=1)w[x]=1<<x;for(var x=8;x<256;x+=1)w[x]=w[x-4]^w[x-5]^w[x-6]^w[x-8];for(var x=0;x<255;x+=1)E[w[x]]=x;var b={};return b.glog=function(f){if(f<1)throw"glog("+f+")";return E[f]},b.gexp=function(f){for(;f<0;)f+=255;for(;f>=256;)f-=255;return w[f]},b}();function m(w,E){if(typeof w.length=="undefined")throw w.length+"/"+E;var x=function(){for(var f=0;f<w.length&&w[f]==0;)f+=1;for(var d=new Array(w.length-f+E),u=0;u<w.length-f;u+=1)d[u]=w[u+f];return d}(),b={};return b.getAt=function(f){return x[f]},b.getLength=function(){return x.length},b.multiply=function(f){for(var d=new Array(b.getLength()+f.getLength()-1),u=0;u<b.getLength();u+=1)for(var a=0;a<f.getLength();a+=1)d[u+a]^=o.gexp(o.glog(b.getAt(u))+o.glog(f.getAt(a)));return m(d,0)},b.mod=function(f){if(b.getLength()-f.getLength()<0)return b;for(var d=o.glog(b.getAt(0))-o.glog(f.getAt(0)),u=new Array(b.getLength()),a=0;a<b.getLength();a+=1)u[a]=b.getAt(a);for(var a=0;a<f.getLength();a+=1)u[a]^=o.gexp(o.glog(f.getAt(a))+d);return m(u,0).mod(f)},b}var k=function(){var w=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],E=function(f,d){var u={};return u.totalCount=f,u.dataCount=d,u},x={},b=function(f,d){switch(d){case r.L:return w[(f-1)*4+0];case r.M:return w[(f-1)*4+1];case r.Q:return w[(f-1)*4+2];case r.H:return w[(f-1)*4+3];default:return}};return x.getRSBlocks=function(f,d){var u=b(f,d);if(typeof u=="undefined")throw"bad rs block @ typeNumber:"+f+"/errorCorrectionLevel:"+d;for(var a=u.length/3,c=[],l=0;l<a;l+=1)for(var p=u[l*3+0],S=u[l*3+1],U=u[l*3+2],W=0;W<p;W+=1)c.push(E(S,U));return c},x}(),M=function(){var w=[],E=0,x={};return x.getBuffer=function(){return w},x.getAt=function(b){var f=Math.floor(b/8);return(w[f]>>>7-b%8&1)==1},x.put=function(b,f){for(var d=0;d<f;d+=1)x.putBit((b>>>f-d-1&1)==1)},x.getLengthInBits=function(){return E},x.putBit=function(b){var f=Math.floor(E/8);w.length<=f&&w.push(0),b&&(w[f]|=128>>>E%8),E+=1},x},N=function(w){var E=t.MODE_NUMBER,x=w,b={};b.getMode=function(){return E},b.getLength=function(u){return x.length},b.write=function(u){for(var a=x,c=0;c+2<a.length;)u.put(f(a.substring(c,c+3)),10),c+=3;c<a.length&&(a.length-c==1?u.put(f(a.substring(c,c+1)),4):a.length-c==2&&u.put(f(a.substring(c,c+2)),7))};var f=function(u){for(var a=0,c=0;c<u.length;c+=1)a=a*10+d(u.charAt(c));return a},d=function(u){if("0"<=u&&u<="9")return u.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+u};return b},s=function(w){var E=t.MODE_ALPHA_NUM,x=w,b={};b.getMode=function(){return E},b.getLength=function(d){return x.length},b.write=function(d){for(var u=x,a=0;a+1<u.length;)d.put(f(u.charAt(a))*45+f(u.charAt(a+1)),11),a+=2;a<u.length&&d.put(f(u.charAt(a)),6)};var f=function(d){if("0"<=d&&d<="9")return d.charCodeAt(0)-"0".charCodeAt(0);if("A"<=d&&d<="Z")return d.charCodeAt(0)-"A".charCodeAt(0)+10;switch(d){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+d}};return b},B=function(w){var E=t.MODE_8BIT_BYTE,x=w,b=e.stringToBytes(w),f={};return f.getMode=function(){return E},f.getLength=function(d){return b.length},f.write=function(d){for(var u=0;u<b.length;u+=1)d.put(b[u],8)},f},P=function(w){var E=t.MODE_KANJI,x=w,b=e.stringToBytesFuncs.SJIS;if(!b)throw"sjis not supported.";(function(u,a){var c=b(u);if(c.length!=2||(c[0]<<8|c[1])!=a)throw"sjis not supported."})("\u53CB",38726);var f=b(w),d={};return d.getMode=function(){return E},d.getLength=function(u){return~~(f.length/2)},d.write=function(u){for(var a=f,c=0;c+1<a.length;){var l=(255&a[c])<<8|255&a[c+1];if(33088<=l&&l<=40956)l-=33088;else if(57408<=l&&l<=60351)l-=49472;else throw"illegal char at "+(c+1)+"/"+l;l=(l>>>8&255)*192+(l&255),u.put(l,13),c+=2}if(c<a.length)throw"illegal char at "+(c+1)},d},L=function(){var w=[],E={};return E.writeByte=function(x){w.push(x&255)},E.writeShort=function(x){E.writeByte(x),E.writeByte(x>>>8)},E.writeBytes=function(x,b,f){b=b||0,f=f||x.length;for(var d=0;d<f;d+=1)E.writeByte(x[d+b])},E.writeString=function(x){for(var b=0;b<x.length;b+=1)E.writeByte(x.charCodeAt(b))},E.toByteArray=function(){return w},E.toString=function(){var x="";x+="[";for(var b=0;b<w.length;b+=1)b>0&&(x+=","),x+=w[b];return x+="]",x},E},D=function(){var w=0,E=0,x=0,b="",f={},d=function(a){b+=String.fromCharCode(u(a&63))},u=function(a){if(!(a<0)){if(a<26)return 65+a;if(a<52)return 97+(a-26);if(a<62)return 48+(a-52);if(a==62)return 43;if(a==63)return 47}throw"n:"+a};return f.writeByte=function(a){for(w=w<<8|a&255,E+=8,x+=1;E>=6;)d(w>>>E-6),E-=6},f.flush=function(){if(E>0&&(d(w<<6-E),w=0,E=0),x%3!=0)for(var a=3-x%3,c=0;c<a;c+=1)b+="="},f.toString=function(){return b},f},H=function(w){var E=w,x=0,b=0,f=0,d={};d.read=function(){for(;f<8;){if(x>=E.length){if(f==0)return-1;throw"unexpected end of file./"+f}var a=E.charAt(x);if(x+=1,a=="=")return f=0,-1;if(a.match(/^\s$/))continue;b=b<<6|u(a.charCodeAt(0)),f+=6}var c=b>>>f-8&255;return f-=8,c};var u=function(a){if(65<=a&&a<=90)return a-65;if(97<=a&&a<=122)return a-97+26;if(48<=a&&a<=57)return a-48+52;if(a==43)return 62;if(a==47)return 63;throw"c:"+a};return d},A=function(w,E){var x=w,b=E,f=new Array(w*E),d={};d.setPixel=function(l,p,S){f[p*x+l]=S},d.write=function(l){l.writeString("GIF87a"),l.writeShort(x),l.writeShort(b),l.writeByte(128),l.writeByte(0),l.writeByte(0),l.writeByte(0),l.writeByte(0),l.writeByte(0),l.writeByte(255),l.writeByte(255),l.writeByte(255),l.writeString(","),l.writeShort(0),l.writeShort(0),l.writeShort(x),l.writeShort(b),l.writeByte(0);var p=2,S=a(p);l.writeByte(p);for(var U=0;S.length-U>255;)l.writeByte(255),l.writeBytes(S,U,255),U+=255;l.writeByte(S.length-U),l.writeBytes(S,U,S.length-U),l.writeByte(0),l.writeString(";")};var u=function(l){var p=l,S=0,U=0,W={};return W.write=function(V,Y){if(V>>>Y)throw"length over";for(;S+Y>=8;)p.writeByte(255&(V<<S|U)),Y-=8-S,V>>>=8-S,U=0,S=0;U=V<<S|U,S=S+Y},W.flush=function(){S>0&&p.writeByte(U)},W},a=function(l){for(var p=1<<l,S=(1<<l)+1,U=l+1,W=c(),V=0;V<p;V+=1)W.add(String.fromCharCode(V));W.add(String.fromCharCode(p)),W.add(String.fromCharCode(S));var Y=L(),Q=u(Y);Q.write(p,U);var Z=0,J=String.fromCharCode(f[Z]);for(Z+=1;Z<f.length;){var K=String.fromCharCode(f[Z]);Z+=1,W.contains(J+K)?J=J+K:(Q.write(W.indexOf(J),U),W.size()<4095&&(W.size()==1<<U&&(U+=1),W.add(J+K)),J=K)}return Q.write(W.indexOf(J),U),Q.write(S,U),Q.flush(),Y.toByteArray()},c=function(){var l={},p=0,S={};return S.add=function(U){if(S.contains(U))throw"dup key:"+U;l[U]=p,p+=1},S.size=function(){return p},S.indexOf=function(U){return l[U]},S.contains=function(U){return typeof l[U]!="undefined"},S};return d},j=function(w,E,x){for(var b=A(w,E),f=0;f<E;f+=1)for(var d=0;d<w;d+=1)b.setPixel(d,f,x(d,f));var u=L();b.write(u);for(var a=D(),c=u.toByteArray(),l=0;l<c.length;l+=1)a.writeByte(c[l]);return a.flush(),"data:image/gif;base64,"+a};return e}();(function(){vr.stringToBytesFuncs["UTF-8"]=function(e){function t(r){for(var n=[],i=0;i<r.length;i++){var o=r.charCodeAt(i);o<128?n.push(o):o<2048?n.push(192|o>>6,128|o&63):o<55296||o>=57344?n.push(224|o>>12,128|o>>6&63,128|o&63):(i++,o=65536+((o&1023)<<10|r.charCodeAt(i)&1023),n.push(240|o>>18,128|o>>12&63,128|o>>6&63,128|o&63))}return n}return t(e)}})();(function(e){typeof define=="function"&&define.amd?define([],e):typeof gr=="object"&&(mr.exports=e())})(function(){return vr})});var On={};Lr(On,{OfferRefund:()=>et,buildTimeRendering:()=>Nn,mount:()=>Dn});var ve,C,lt,Dr,pe,at,ft,Ee={},_t=[],Nr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function oe(e,t){for(var r in t)e[r]=t[r];return e}function ct(e){var t=e.parentNode;t&&t.removeChild(e)}function I(e,t,r){var n,i,o,m={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:m[o]=t[o];if(arguments.length>2&&(m.children=arguments.length>3?ve.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)m[o]===void 0&&(m[o]=e.defaultProps[o]);return de(e,m,n,i,null)}function de(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++lt:i};return i==null&&C.vnode!=null&&C.vnode(o),o}function Ie(){return{current:null}}function X(e){return e.children}function te(e,t){this.props=e,this.context=t}function he(e,t){if(t==null)return e.__?he(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?he(e):null}function pt(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return pt(e)}}function Fe(e){(!e.__d&&(e.__d=!0)&&pe.push(e)&&!Te.__r++||at!==C.debounceRendering)&&((at=C.debounceRendering)||setTimeout)(Te)}function Te(){for(var e;Te.__r=pe.length;)e=pe.sort(function(t,r){return t.__v.__b-r.__v.__b}),pe=[],e.some(function(t){var r,n,i,o,m,k;t.__d&&(m=(o=(r=t).__v).__e,(k=r.__P)&&(n=[],(i=oe({},o)).__v=o.__v+1,He(k,o,i,r.__n,k.ownerSVGElement!==void 0,o.__h!=null?[m]:null,n,m==null?he(o):m,o.__h),gt(n,o),o.__e!=m&&pt(o)))})}function dt(e,t,r,n,i,o,m,k,M,N){var s,B,P,L,D,H,A,j=n&&n.__k||_t,w=j.length;for(r.__k=[],s=0;s<t.length;s++)if((L=r.__k[s]=(L=t[s])==null||typeof L=="boolean"?null:typeof L=="string"||typeof L=="number"||typeof L=="bigint"?de(null,L,null,null,L):Array.isArray(L)?de(X,{children:L},null,null,null):L.__b>0?de(L.type,L.props,L.key,L.ref?L.ref:null,L.__v):L)!=null){if(L.__=r,L.__b=r.__b+1,(P=j[s])===null||P&&L.key==P.key&&L.type===P.type)j[s]=void 0;else for(B=0;B<w;B++){if((P=j[B])&&L.key==P.key&&L.type===P.type){j[B]=void 0;break}P=null}He(e,L,P=P||Ee,i,o,m,k,M,N),D=L.__e,(B=L.ref)&&P.ref!=B&&(A||(A=[]),P.ref&&A.push(P.ref,null,L),A.push(B,L.__c||D,L)),D!=null?(H==null&&(H=D),typeof L.type=="function"&&L.__k===P.__k?L.__d=M=ht(L,M,e):M=vt(e,L,P,j,D,M),typeof r.type=="function"&&(r.__d=M)):M&&P.__e==M&&M.parentNode!=e&&(M=he(P))}for(r.__e=H,s=w;s--;)j[s]!=null&&yt(j[s],j[s]);if(A)for(s=0;s<A.length;s++)mt(A[s],A[++s],A[++s])}function ht(e,t,r){for(var n,i=e.__k,o=0;i&&o<i.length;o++)(n=i[o])&&(n.__=e,t=typeof n.type=="function"?ht(n,t,r):vt(r,n,n,i,n.__e,t));return t}function ne(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(r){ne(r,t)}):t.push(e)),t}function vt(e,t,r,n,i,o){var m,k,M;if(t.__d!==void 0)m=t.__d,t.__d=void 0;else if(r==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),m=null;else{for(k=o,M=0;(k=k.nextSibling)&&M<n.length;M+=1)if(k==i)break e;e.insertBefore(i,o),m=o}return m!==void 0?m:i.nextSibling}function Or(e,t,r,n,i){var o;for(o in r)o==="children"||o==="key"||o in t||Me(e,o,null,r[o],n);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||r[o]===t[o]||Me(e,o,t[o],r[o],n)}function it(e,t,r){t[0]==="-"?e.setProperty(t,r):e[t]=r==null?"":typeof r!="number"||Nr.test(t)?r:r+"px"}function Me(e,t,r,n,i){var o;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||it(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||it(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?st:ut,o):e.removeEventListener(t,o?st:ut,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=r==null?"":r;break e}catch(m){}typeof r=="function"||(r==null||r===!1&&t.indexOf("-")==-1?e.removeAttribute(t):e.setAttribute(t,r))}}function ut(e){this.l[e.type+!1](C.event?C.event(e):e)}function st(e){this.l[e.type+!0](C.event?C.event(e):e)}function He(e,t,r,n,i,o,m,k,M){var N,s,B,P,L,D,H,A,j,w,E,x,b,f,d,u=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(M=r.__h,k=t.__e=r.__e,t.__h=null,o=[k]),(N=C.__b)&&N(t);try{e:if(typeof u=="function"){if(A=t.props,j=(N=u.contextType)&&n[N.__c],w=N?j?j.props.value:N.__:n,r.__c?H=(s=t.__c=r.__c).__=s.__E:("prototype"in u&&u.prototype.render?t.__c=s=new u(A,w):(t.__c=s=new te(A,w),s.constructor=u,s.render=Rr),j&&j.sub(s),s.props=A,s.state||(s.state={}),s.context=w,s.__n=n,B=s.__d=!0,s.__h=[],s._sb=[]),s.__s==null&&(s.__s=s.state),u.getDerivedStateFromProps!=null&&(s.__s==s.state&&(s.__s=oe({},s.__s)),oe(s.__s,u.getDerivedStateFromProps(A,s.__s))),P=s.props,L=s.state,B)u.getDerivedStateFromProps==null&&s.componentWillMount!=null&&s.componentWillMount(),s.componentDidMount!=null&&s.__h.push(s.componentDidMount);else{if(u.getDerivedStateFromProps==null&&A!==P&&s.componentWillReceiveProps!=null&&s.componentWillReceiveProps(A,w),!s.__e&&s.shouldComponentUpdate!=null&&s.shouldComponentUpdate(A,s.__s,w)===!1||t.__v===r.__v){for(s.props=A,s.state=s.__s,t.__v!==r.__v&&(s.__d=!1),s.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(a){a&&(a.__=t)}),E=0;E<s._sb.length;E++)s.__h.push(s._sb[E]);s._sb=[],s.__h.length&&m.push(s);break e}s.componentWillUpdate!=null&&s.componentWillUpdate(A,s.__s,w),s.componentDidUpdate!=null&&s.__h.push(function(){s.componentDidUpdate(P,L,D)})}if(s.context=w,s.props=A,s.__v=t,s.__P=e,x=C.__r,b=0,"prototype"in u&&u.prototype.render){for(s.state=s.__s,s.__d=!1,x&&x(t),N=s.render(s.props,s.state,s.context),f=0;f<s._sb.length;f++)s.__h.push(s._sb[f]);s._sb=[]}else do s.__d=!1,x&&x(t),N=s.render(s.props,s.state,s.context),s.state=s.__s;while(s.__d&&++b<25);s.state=s.__s,s.getChildContext!=null&&(n=oe(oe({},n),s.getChildContext())),B||s.getSnapshotBeforeUpdate==null||(D=s.getSnapshotBeforeUpdate(P,L)),d=N!=null&&N.type===X&&N.key==null?N.props.children:N,dt(e,Array.isArray(d)?d:[d],t,r,n,i,o,m,k,M),s.base=t.__e,t.__h=null,s.__h.length&&m.push(s),H&&(s.__E=s.__=null),s.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Sr(r.__e,t,r,n,i,o,m,M);(N=C.diffed)&&N(t)}catch(a){t.__v=null,(M||o!=null)&&(t.__e=k,t.__h=!!M,o[o.indexOf(k)]=null),C.__e(a,t,r)}}function gt(e,t){C.__c&&C.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){C.__e(n,r.__v)}})}function Sr(e,t,r,n,i,o,m,k){var M,N,s,B=r.props,P=t.props,L=t.type,D=0;if(L==="svg"&&(i=!0),o!=null){for(;D<o.length;D++)if((M=o[D])&&"setAttribute"in M==!!L&&(L?M.localName===L:M.nodeType===3)){e=M,o[D]=null;break}}if(e==null){if(L===null)return document.createTextNode(P);e=i?document.createElementNS("http://www.w3.org/2000/svg",L):document.createElement(L,P.is&&P),o=null,k=!1}if(L===null)B===P||k&&e.data===P||(e.data=P);else{if(o=o&&ve.call(e.childNodes),N=(B=r.props||Ee).dangerouslySetInnerHTML,s=P.dangerouslySetInnerHTML,!k){if(o!=null)for(B={},D=0;D<e.attributes.length;D++)B[e.attributes[D].name]=e.attributes[D].value;(s||N)&&(s&&(N&&s.__html==N.__html||s.__html===e.innerHTML)||(e.innerHTML=s&&s.__html||""))}if(Or(e,P,B,i,k),s)t.__k=[];else if(D=t.props.children,dt(e,Array.isArray(D)?D:[D],t,r,n,i&&L!=="foreignObject",o,m,o?o[0]:r.__k&&he(r,0),k),o!=null)for(D=o.length;D--;)o[D]!=null&&ct(o[D]);k||("value"in P&&(D=P.value)!==void 0&&(D!==e.value||L==="progress"&&!D||L==="option"&&D!==B.value)&&Me(e,"value",D,B.value,!1),"checked"in P&&(D=P.checked)!==void 0&&D!==e.checked&&Me(e,"checked",D,B.checked,!1))}return e}function mt(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){C.__e(n,r)}}function yt(e,t,r){var n,i;if(C.unmount&&C.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||mt(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){C.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&yt(n[i],t,r||typeof e.type!="function");r||e.__e==null||ct(e.__e),e.__=e.__e=e.__d=void 0}function Rr(e,t,r){return this.constructor(e,r)}function ae(e,t,r){var n,i,o;C.__&&C.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],He(t,e=(!n&&r||t).__k=I(X,null,[e]),i||Ee,Ee,t.ownerSVGElement!==void 0,!n&&r?[r]:i?null:t.firstChild?ve.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n),gt(o,e)}function Ve(e,t){ae(e,t,Ve)}function xt(e,t,r){var n,i,o,m=oe({},e.props);for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:m[o]=t[o];return arguments.length>2&&(m.children=arguments.length>3?ve.call(arguments,2):r),de(e.type,m,n||e.key,i||e.ref,null)}function We(e,t){var r={__c:t="__cC"+ft++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(m){this.props.value!==m.value&&i.some(Fe)},this.sub=function(m){i.push(m);var k=m.componentWillUnmount;m.componentWillUnmount=function(){i.splice(i.indexOf(m),1),k&&k.call(m)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}ve=_t.slice,C={__e:function(e,t,r,n){for(var i,o,m;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),m=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),m=i.__d),m)return i.__E=i}catch(k){e=k}throw e}},lt=0,Dr=function(e){return e!=null&&e.constructor===void 0},te.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=oe({},this.state),typeof e=="function"&&(e=e(oe({},r),this.props)),e&&oe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Fe(this))},te.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Fe(this))},te.prototype.render=X,pe=[],Te.__r=0,ft=0;var Ur=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,Mt=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,Le=/[\s\n\\/='"\0<>]/,Lt=/^xlink:?./,Fr=/["&<]/;function ye(e){if(Fr.test(e+="")===!1)return e;for(var t=0,r=0,n="",i="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 60:i="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=i,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var bt=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||" "))},wt=function(e,t,r){return String(e).length>(t||40)||!r&&String(e).indexOf(`
+`)!==-1||String(e).indexOf("<")!==-1},kt={},Ir=/([A-Z])/g;function Pt(e){var t="";for(var r in e){var n=e[r];n!=null&&n!==""&&(t&&(t+=" "),t+=r[0]=="-"?r:kt[r]||(kt[r]=r.replace(Ir,"-$1").toLowerCase()),t=typeof n=="number"&&Ur.test(r)===!1?t+": "+n+"px;":t+": "+n+";")}return t||void 0}function qe(e,t){return Array.isArray(t)?t.reduce(qe,e):t!=null&&t!==!1&&e.push(t),e}function Ct(){this.__d=!0}function Bt(e,t){return{__v:e,context:t,props:e.props,setState:Ct,forceUpdate:Ct,__d:!0,__h:[]}}function Pe(e,t){var r=e.contextType,n=r&&t[r.__c];return r!=null?n?n.props.value:r.__:t}var je=[];function ge(e,t,r,n,i,o){if(e==null||typeof e=="boolean")return"";if(typeof e!="object")return typeof e=="function"?"":ye(e);var m=r.pretty,k=m&&typeof m=="string"?m:" ";if(Array.isArray(e)){for(var M="",N=0;N<e.length;N++)m&&N>0&&(M+=`
+`),M+=ge(e[N],t,r,n,i,o);return M}if(e.constructor!==void 0)return"";var s,B=e.type,P=e.props,L=!1;if(typeof B=="function"){if(L=!0,!r.shallow||!n&&r.renderRootComponent!==!1){if(B===X){var D=[];return qe(D,e.props.children),ge(D,t,r,r.shallowHighOrder!==!1,i,o)}var H,A=e.__c=Bt(e,t);C.__b&&C.__b(e);var j=C.__r;if(B.prototype&&typeof B.prototype.render=="function"){var w=Pe(B,t);(A=e.__c=new B(P,w)).__v=e,A._dirty=A.__d=!0,A.props=P,A.state==null&&(A.state={}),A._nextState==null&&A.__s==null&&(A._nextState=A.__s=A.state),A.context=w,B.getDerivedStateFromProps?A.state=Object.assign({},A.state,B.getDerivedStateFromProps(A.props,A.state)):A.componentWillMount&&(A.componentWillMount(),A.state=A._nextState!==A.state?A._nextState:A.__s!==A.state?A.__s:A.state),j&&j(e),H=A.render(A.props,A.state,A.context)}else for(var E=Pe(B,t),x=0;A.__d&&x++<25;)A.__d=!1,j&&j(e),H=B.call(e.__c,P,E);return A.getChildContext&&(t=Object.assign({},t,A.getChildContext())),C.diffed&&C.diffed(e),ge(H,t,r,r.shallowHighOrder!==!1,i,o)}B=(s=B).displayName||s!==Function&&s.name||function(ce){var h=(Function.prototype.toString.call(ce).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!h){for(var v=-1,_=je.length;_--;)if(je[_]===ce){v=_;break}v<0&&(v=je.push(ce)-1),h="UnnamedComponent"+v}return h}(s)}var b,f,d="<"+B;if(P){var u=Object.keys(P);r&&r.sortAttributes===!0&&u.sort();for(var a=0;a<u.length;a++){var c=u[a],l=P[c];if(c!=="children"){if(!Le.test(c)&&(r&&r.allAttributes||c!=="key"&&c!=="ref"&&c!=="__self"&&c!=="__source")){if(c==="defaultValue")c="value";else if(c==="defaultChecked")c="checked";else if(c==="defaultSelected")c="selected";else if(c==="className"){if(P.class!==void 0)continue;c="class"}else i&&Lt.test(c)&&(c=c.toLowerCase().replace(/^xlink:?/,"xlink:"));if(c==="htmlFor"){if(P.for)continue;c="for"}c==="style"&&l&&typeof l=="object"&&(l=Pt(l)),c[0]==="a"&&c[1]==="r"&&typeof l=="boolean"&&(l=String(l));var p=r.attributeHook&&r.attributeHook(c,l,t,r,L);if(p||p==="")d+=p;else if(c==="dangerouslySetInnerHTML")f=l&&l.__html;else if(B==="textarea"&&c==="value")b=l;else if((l||l===0||l==="")&&typeof l!="function"){if(!(l!==!0&&l!==""||(l=c,r&&r.xml))){d=d+" "+c;continue}if(c==="value"){if(B==="select"){o=l;continue}B==="option"&&o==l&&P.selected===void 0&&(d+=" selected")}d=d+" "+c+'="'+ye(l)+'"'}}}else b=l}}if(m){var S=d.replace(/\n\s*/," ");S===d||~S.indexOf(`
+`)?m&&~d.indexOf(`
+`)&&(d+=`
+`):d=S}if(d+=">",Le.test(B))throw new Error(B+" is not a valid HTML tag name in "+d);var U,W=Mt.test(B)||r.voidElements&&r.voidElements.test(B),V=[];if(f)m&&wt(f)&&(f=`
+`+k+bt(f,k)),d+=f;else if(b!=null&&qe(U=[],b).length){for(var Y=m&&~d.indexOf(`
+`),Q=!1,Z=0;Z<U.length;Z++){var J=U[Z];if(J!=null&&J!==!1){var K=ge(J,t,r,!0,B==="svg"||B!=="foreignObject"&&i,o);if(m&&!Y&&wt(K)&&(Y=!0),K)if(m){var ke=K.length>0&&K[0]!="<";Q&&ke?V[V.length-1]+=K:V.push(K),Q=ke}else V.push(K)}}if(m&&Y)for(var re=V.length;re--;)V[re]=`
+`+k+bt(V[re],k)}if(V.length||f)d+=V.join("");else if(r&&r.xml)return d.substring(0,d.length-1)+" />";return!W||U||f?(m&&~d.indexOf(`
+`)&&(d+=`
+`),d=d+"</"+B+">"):d=d.replace(/>$/," />"),d}var Hr={shallow:!0};ie.render=ie;var Vr=function(e,t){return ie(e,t,Hr)},At=[];function ie(e,t,r){t=t||{};var n=C.__s;C.__s=!0;var i,o=I(X,null);return o.__k=[e],i=r&&(r.pretty||r.voidElements||r.sortAttributes||r.shallow||r.allAttributes||r.xml||r.attributeHook)?ge(e,t,r):me(e,t,!1,void 0,o),C.__c&&C.__c(e,At),C.__s=n,At.length=0,i}function $e(e){return e==null||typeof e=="boolean"?null:typeof e=="string"||typeof e=="number"||typeof e=="bigint"?I(null,null,e):e}function Wr(e,t){return e==="className"?"class":e==="htmlFor"?"for":e==="defaultValue"?"value":e==="defaultChecked"?"checked":e==="defaultSelected"?"selected":t&&Lt.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function jr(e,t){return e==="style"&&t!=null&&typeof t=="object"?Pt(t):e[0]==="a"&&e[1]==="r"&&typeof t=="boolean"?String(t):t}var Et=Array.isArray,Tt=Object.assign;function me(e,t,r,n,i){if(e==null||e===!0||e===!1||e==="")return"";if(typeof e!="object")return typeof e=="function"?"":ye(e);if(Et(e)){var o="";i.__k=e;for(var m=0;m<e.length;m++)o+=me(e[m],t,r,n,i),e[m]=$e(e[m]);return o}if(e.constructor!==void 0)return"";e.__=i,C.__b&&C.__b(e);var k=e.type,M=e.props;if(typeof k=="function"){var N;if(k===X)N=M.children;else{N=k.prototype&&typeof k.prototype.render=="function"?function(u,a){var c=u.type,l=Pe(c,a),p=new c(u.props,l);u.__c=p,p.__v=u,p.__d=!0,p.props=u.props,p.state==null&&(p.state={}),p.__s==null&&(p.__s=p.state),p.context=l,c.getDerivedStateFromProps?p.state=Tt({},p.state,c.getDerivedStateFromProps(p.props,p.state)):p.componentWillMount&&(p.componentWillMount(),p.state=p.__s!==p.state?p.__s:p.state);var S=C.__r;return S&&S(u),p.render(p.props,p.state,p.context)}(e,t):function(u,a){var c,l=Bt(u,a),p=Pe(u.type,a);u.__c=l;for(var S=C.__r,U=0;l.__d&&U++<25;)l.__d=!1,S&&S(u),c=u.type.call(l,u.props,p);return c}(e,t);var s=e.__c;s.getChildContext&&(t=Tt({},t,s.getChildContext()))}var B=me(N=N!=null&&N.type===X&&N.key==null?N.props.children:N,t,r,n,e);return C.diffed&&C.diffed(e),e.__=void 0,C.unmount&&C.unmount(e),B}var P,L,D="<";if(D+=k,M)for(var H in P=M.children,M){var A=M[H];if(!(H==="key"||H==="ref"||H==="__self"||H==="__source"||H==="children"||H==="className"&&"class"in M||H==="htmlFor"&&"for"in M||Le.test(H))){if(A=jr(H=Wr(H,r),A),H==="dangerouslySetInnerHTML")L=A&&A.__html;else if(k==="textarea"&&H==="value")P=A;else if((A||A===0||A==="")&&typeof A!="function"){if(A===!0||A===""){A=H,D=D+" "+H;continue}if(H==="value"){if(k==="select"){n=A;continue}k!=="option"||n!=A||"selected"in M||(D+=" selected")}D=D+" "+H+'="'+ye(A)+'"'}}}var j=D;if(D+=">",Le.test(k))throw new Error(k+" is not a valid HTML tag name in "+D);var w="",E=!1;if(L)w+=L,E=!0;else if(typeof P=="string")w+=ye(P),E=!0;else if(Et(P)){e.__k=P;for(var x=0;x<P.length;x++){var b=P[x];if(P[x]=$e(b),b!=null&&b!==!1){var f=me(b,t,k==="svg"||k!=="foreignObject"&&r,n,e);f&&(w+=f,E=!0)}}}else if(P!=null&&P!==!1&&P!==!0){e.__k=[$e(P)];var d=me(P,t,k==="svg"||k!=="foreignObject"&&r,n,e);d&&(w+=d,E=!0)}if(C.diffed&&C.diffed(e),e.__=void 0,C.unmount&&C.unmount(e),E)D+=w;else if(Mt.test(k))return j+" />";return D+"</"+k+">"}ie.shallowRender=Vr;var ue,q,Ye,Dt,le=0,It=[],Be=[],Nt=C.__b,Ot=C.__r,St=C.diffed,Rt=C.__c,Ut=C.unmount;function fe(e,t){C.__h&&C.__h(q,e,le||t),le=0;var r=q.__H||(q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Be}),r.__[e]}function Xe(e){return le=1,Ke(qt,e)}function Ke(e,t,r){var n=fe(ue++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):qt(void 0,t),function(o){var m=n.__N?n.__N[0]:n.__[0],k=n.t(m,o);m!==k&&(n.__N=[k,n.__[1]],n.__c.setState({}))}],n.__c=q,!q.u)){q.u=!0;var i=q.shouldComponentUpdate;q.shouldComponentUpdate=function(o,m,k){if(!n.__c.__H)return!0;var M=n.__c.__H.__.filter(function(s){return s.__c});if(M.every(function(s){return!s.__N}))return!i||i.call(this,o,m,k);var N=!1;return M.forEach(function(s){if(s.__N){var B=s.__[0];s.__=s.__N,s.__N=void 0,B!==s.__[0]&&(N=!0)}}),!(!N&&n.__c.props===o)&&(!i||i.call(this,o,m,k))}}return n.__N||n.__}function se(e,t){var r=fe(ue++,3);!C.__s&&Qe(r.__H,t)&&(r.__=e,r.i=t,q.__H.__h.push(r))}function xe(e,t){var r=fe(ue++,4);!C.__s&&Qe(r.__H,t)&&(r.__=e,r.i=t,q.__h.push(r))}function Ne(e){return le=5,Oe(function(){return{current:e}},[])}function Ht(e,t,r){le=6,xe(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function Oe(e,t){var r=fe(ue++,7);return Qe(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function Vt(e,t){return le=8,Oe(function(){return e},t)}function Wt(e){var t=q.context[e.__c],r=fe(ue++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(q)),t.props.value):e.__}function jt(e,t){C.useDebugValue&&C.useDebugValue(t?t(e):e)}function $t(){var e=fe(ue++,11);if(!e.__){for(var t=q.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function $r(){for(var e;e=It.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(De),e.__H.__h.forEach(Ge),e.__H.__h=[]}catch(t){e.__H.__h=[],C.__e(t,e.__v)}}C.__b=function(e){q=null,Nt&&Nt(e)},C.__r=function(e){Ot&&Ot(e),ue=0;var t=(q=e.__c).__H;t&&(Ye===q?(t.__h=[],q.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Be,r.__N=r.i=void 0})):(t.__h.forEach(De),t.__h.forEach(Ge),t.__h=[])),Ye=q},C.diffed=function(e){St&&St(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(It.push(t)!==1&&Dt===C.requestAnimationFrame||((Dt=C.requestAnimationFrame)||qr)($r)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Be&&(r.__=r.__V),r.i=void 0,r.__V=Be})),Ye=q=null},C.__c=function(e,t){t.some(function(r){try{r.__h.forEach(De),r.__h=r.__h.filter(function(n){return!n.__||Ge(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],C.__e(n,r.__v)}}),Rt&&Rt(e,t)},C.unmount=function(e){Ut&&Ut(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{De(n)}catch(i){t=i}}),r.__H=void 0,t&&C.__e(t,r.__v))};var Ft=typeof requestAnimationFrame=="function";function qr(e){var t,r=function(){clearTimeout(n),Ft&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ft&&(t=requestAnimationFrame(r))}function De(e){var t=q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),q=t}function Ge(e){var t=q;e.__c=e.__(),q=t}function Qe(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function qt(e,t){return typeof t=="function"?t(e):t}function Yr(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Yt=Yr;var Gr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Xr=Yt(function(e){return Gr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Gt=Xr;function rr(e,t){for(var r in t)e[r]=t[r];return e}function Je(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Ze(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function ze(e){this.props=e}function Kr(e,t){function r(i){var o=this.props.ref,m=o==i.ref;return!m&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!m:Je(this.props,i)}function n(i){return this.shouldComponentUpdate=r,I(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(ze.prototype=new te).isPureReactComponent=!0,ze.prototype.shouldComponentUpdate=function(e,t){return Je(this.props,e)||Je(this.state,t)};var Xt=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Xt&&Xt(e)};var Qr=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Zr(e){function t(r){var n=rr({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=Qr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Kt=function(e,t){return e==null?null:ne(ne(e).map(t))},Jr={map:Kt,forEach:Kt,count:function(e){return e?ne(e).length:0},only:function(e){var t=ne(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ne},zr=C.__e;C.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}zr(e,t,r,n)};var Qt=C.unmount;function nr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=rr({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return nr(n,t,r)})),e}function or(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return or(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function Se(){this.__u=0,this.t=null,this.__b=null}function ar(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function en(e){var t,r,n;function i(o){if(t||(t=e()).then(function(m){r=m.default||m},function(m){n=m}),n)throw n;if(!r)throw t;return I(r,o)}return i.displayName="Lazy",i.__f=!0,i}function be(){this.u=null,this.o=null}C.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Qt&&Qt(e)},(Se.prototype=new te).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var i=ar(n.__v),o=!1,m=function(){o||(o=!0,r.__R=null,i?i(k):k())};r.__R=m;var k=function(){if(!--n.__u){if(n.state.__a){var N=n.state.__a;n.__v.__k[0]=or(N,N.__c.__P,N.__c.__O)}var s;for(n.setState({__a:n.__b=null});s=n.t.pop();)s.forceUpdate()}},M=t.__h===!0;n.__u++||M||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(m,m)},Se.prototype.componentWillUnmount=function(){this.t=[]},Se.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=nr(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&I(X,null,e.fallback);return i&&(i.__h=null),[I(X,null,t.__a?null:e.children),i]};var Zt=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function tn(e){return this.getChildContext=function(){return e.context},e.children}function rn(e){var t=this,r=e.i;t.componentWillUnmount=function(){ae(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),e.__v?(t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n)},insertBefore:function(n,i){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),ae(I(tn,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function nn(e,t){var r=I(rn,{__v:e,i:t});return r.containerInfo=t,r}(be.prototype=new te).__a=function(e){var t=this,r=ar(t.__v),n=t.o.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Zt(t,e,n)):i()};r?r(o):o()}},be.prototype.render=function(e){this.u=null,this.o=new Map;var t=ne(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},be.prototype.componentDidUpdate=be.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Zt(e,r,t)})};var ir=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,on=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,an=typeof document!="undefined",un=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};function sn(e,t,r){return t.__k==null&&(t.textContent=""),ae(e,t),typeof r=="function"&&r(),e?e.__c:null}function ln(e,t,r){return Ve(e,t),typeof r=="function"&&r(),e?e.__c:null}te.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(te.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Jt=C.event;function fn(){}function _n(){return this.cancelBubble}function cn(){return this.defaultPrevented}C.event=function(e){return Jt&&(e=Jt(e)),e.persist=fn,e.isPropagationStopped=_n,e.isDefaultPrevented=cn,e.nativeEvent=e};var ur,zt={configurable:!0,get:function(){return this.class}},er=C.vnode;C.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var o in n={},r){var m=r[o];an&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in r&&m==null||(o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&m===!0?m="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!un(r.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&on.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():m===null&&(m=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o="oninputCapture")),n[o]=m)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=ne(r.children).forEach(function(k){k.props.selected=n.value.indexOf(k.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=ne(r.children).forEach(function(k){k.props.selected=n.multiple?n.defaultValue.indexOf(k.props.value)!=-1:n.defaultValue==k.props.value})),e.props=n,r.class!=r.className&&(zt.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",zt))}e.$$typeof=ir,er&&er(e)};var tr=C.__r;C.__r=function(e){tr&&tr(e),ur=e.__c};var pn={ReactCurrentDispatcher:{current:{readContext:function(e){return ur.__n[e.__c].props.value}}}};function dn(e){return I.bind(null,e)}function sr(e){return!!e&&e.$$typeof===ir}function hn(e){return sr(e)?xt.apply(null,arguments):e}function vn(e){return!!e.__k&&(ae(null,e),!0)}function gn(e){return e&&(e.base||e.nodeType===1&&e)||null}var mn=function(e,t){return e(t)},yn=function(e,t){return e(t)},xn=X;function lr(e){e()}function bn(e){return e}function wn(){return[!1,lr]}var kn=xe;function Cn(e,t){var r=t(),n=Xe({h:{__:r,v:t}}),i=n[0].h,o=n[1];return xe(function(){i.__=r,i.v=t,Ze(i.__,t())||o({h:i})},[e,r,t]),se(function(){return Ze(i.__,i.v())||o({h:i}),e(function(){Ze(i.__,i.v())||o({h:i})})},[e]),r}var we={useState:Xe,useId:$t,useReducer:Ke,useEffect:se,useLayoutEffect:xe,useInsertionEffect:kn,useTransition:wn,useDeferredValue:bn,useSyncExternalStore:Cn,startTransition:lr,useRef:Ne,useImperativeHandle:Ht,useMemo:Oe,useCallback:Vt,useContext:Wt,useDebugValue:jt,version:"17.0.2",Children:Jr,render:sn,hydrate:ln,unmountComponentAtNode:vn,createPortal:nn,createElement:I,createContext:We,createFactory:dn,cloneElement:hn,createRef:Ie,Fragment:X,isValidElement:sr,findDOMNode:gn,Component:te,PureComponent:ze,memo:Kr,forwardRef:Zr,flushSync:yn,unstable_batchedUpdates:mn,StrictMode:xn,Suspense:Se,SuspenseList:be,lazy:en,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pn};var An=function(){let t=Array.prototype.slice.call(arguments).filter(Boolean),r={},n=[];t.forEach(o=>{(o?o.split(" "):[]).forEach(k=>{if(k.startsWith("atm_")){let[,M]=k.split("_");r[M]=k}else n.push(k)})});let i=[];for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(r[o]);return i.push(...n),i.join(" ")},Re=An;var En=e=>e.toUpperCase()===e,Tn=e=>t=>e.indexOf(t)===-1,fr=(e,t)=>{let r={};return Object.keys(e).filter(Tn(t)).forEach(n=>{r[n]=e[n]}),r};function Mn(e,t,r){let n=fr(t,r);return typeof e=="string"&&e.indexOf("-")===-1&&!En(e[0])&&Object.keys(n).forEach(i=>{Gt(i)||delete n[i]}),n}var Ln=(e,t)=>{};function Pn(e){return t=>{let r=(i,o)=>{let{as:m=e,class:k}=i,M=Mn(m,i,["as","class"]);M.ref=o,M.className=t.atomic?Re(t.class,M.className||k):Re(M.className||k,t.class);let{vars:N}=t;if(N){let s={};for(let L in N){let D=N[L],H=D[0],A=D[1]||"",j=typeof H=="function"?H(i):H;Ln(j,t.name),s[`--${L}`]=`${j}${A}`}let B=M.style||{},P=Object.keys(B);P.length>0&&P.forEach(L=>{s[L]=B[L]}),M.style=s}return e.__linaria&&e!==m?(M.as=m,we.createElement(e,M)):we.createElement(m,M)},n=we.forwardRef?we.forwardRef(r):i=>{let o=fr(i,["innerRef"]);return r(o,i.innerRef)};return n.displayName=t.name,n.__linaria={className:t.class,extends:e},n}}var _e=Pn;var _r=_e("div")({name:"QRPlaceholder",class:"q1ma0zxq"}),cr=_e("footer")({name:"FooterBar",class:"fef0x5t"}),pr=_e("div")({name:"Page",class:"p1b3vqup"});var dr=_e("a")({name:"WalletLink",class:"wpwjmk",vars:{"wpwjmk-0":[({upperCased:e})=>e?"uppercase":"none"]}});function hr(){return I(cr,null,I("p",null,I("a",{href:"https://taler.net/"},"Learn more about GNU Taler on our website."),I("p",null,"Copyright \xA9 2014\u20142021 Taler Systems SA")))}var xr=Pr(yr());function Bn(e){let t=(0,xr.default)(0,"L");return t.addData(e),t.make(),t.createSvgTag({scalable:!0,margin:0})}function br({text:e}){let t=Ne(null);return se(()=>{t.current&&(t.current.innerHTML=Bn(e))}),I("div",{style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center"}},I("div",{style:{width:"50%",minWidth:200,maxWidth:300},ref:t}))}function wr({order_summary:e}){return I(X,null,I("meta",{charSet:"UTF-8"}),I("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),I("noscript",null,I("meta",{"http-equiv":"refresh",content:"1"})),I("title",null,"Refund available for ",e||"{{ order_summary }}"))}function et({refundURI:e,qr_code:t,order_status_url:r}){return se(()=>{let n;try{n=new URL(r||"{{& order_status_url }}")}catch(m){return}n.searchParams.set("await_refund_obtained","yes");let i=500;function o(){let m=!1;function k(){m||(m=!0,o())}let M=new XMLHttpRequest;M.onreadystatechange=function(){if(M.readyState===XMLHttpRequest.DONE){if(M.status===200)try{JSON.parse(M.responseText).refund_pending||window.location.reload()}catch(N){console.error("could not parse response:",N)}setTimeout(k,i)}},M.onerror=function(){setTimeout(k,i)},M.open("GET",n.href),M.send()}setTimeout(o,i)}),I(pr,null,I("section",null,I("h1",null,"Collect Taler refund"),I("p",null,"Scan this QR code with your Taler mobile wallet:"),I(_r,{dangerouslySetInnerHTML:{__html:t||"{{{ taler_refund_qrcode_svg }}}"}}),I("p",null,I(dr,{href:e||"{{ taler_refund_uri }}"},"Or open your Taler wallet")),I("p",null,I("a",{href:"https://wallet.taler.net/"},"Don't have a Taler wallet yet? Install it!"))),I(hr,null))}function Dn(){try{let e=new URL(window.location.href).searchParams,t=e.get("order_summary")||void 0;t&&ae(I(wr,{order_summary:t}),document.head);let r=e.get("refund_uri")||void 0,n=e.get("order_status_url")||void 0,i=r?ie(I(br,{text:r})):void 0;ae(I(et,{refundURI:r,order_status_url:n,qr_code:i}),document.body)}catch(e){console.error("got error",e),e instanceof Error&&(document.body.innerText=`Fatal error: "${e.message}". Please report this bug at https://bugs.gnunet.org/.`)}}function Nn(){return{head:ie(I(wr,null)),body:ie(I(et,null))}}return Br(On);})();
</script>
- <script>page.mount()</script>
- </body>
-</html> \ No newline at end of file
+ <script>page.mount()</script>
+ </body>
+ </html> \ No newline at end of file
diff --git a/backend/offer_tip.en.html b/backend/offer_tip.en.html
index 7772cc5d2..43b12ed4a 100644
--- a/backend/offer_tip.en.html
+++ b/backend/offer_tip.en.html
@@ -1,4958 +1,49 @@
-<!doctype html>
-<html>
- <head>
- <meta charSet="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><noscript><meta http-equiv="refresh" content="1" /></noscript><title>Tip available</title>
- <style>/*!
+ <!doctype html>
+ <html>
+ <head>
+ <meta charSet="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><noscript><meta http-equiv="refresh" content="1" /></noscript><title>Tip available</title>
+ <style>.q1ma0zxq{margin:auto;text-align:center;width:340px}.fef0x5t{text-align:center;background-color:#033;color:#fff;padding:1em;overflow:auto}.fef0x5t>p>a:link,.fef0x5t>p>a:visited,.fef0x5t>p>a:hover,.fef0x5t>p>a:active{color:#fff}.p1b3vqup{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:100vh;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.p1b3vqup a:link,.p1b3vqup a:visited,.p1b3vqup a:hover,.p1b3vqup a:active{color:#000}.p1b3vqup section{text-align:center;width:600px;margin-bottom:auto}.p1b3vqup section:not(:first-of-type){margin-top:2em}.p1b3vqup>header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:center}.p1b3vqup>footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;width:100%;margin-bottom:0}.c1gnd3xp{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.wpwjmk{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;text-transform:var(--wpwjmk-0);font-family:inherit;font-size:100%;padding:.5em 1em;color:#444;color:#000c;border:1px solid #999;border:none rgba(0,0,0,0);background-color:"#e6e6e6";-webkit-text-decoration:none;text-decoration:none;background-color:#e6e6e6;border-radius:4px;text-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.wpwjmk:focus{outline:0}.wpwjmk:disabled{border:none;background-image:none;-webkit-filter:alpha(opacity=40);filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.wpwjmk:hover{-webkit-filter:alpha(opacity=90);filter:alpha(opacity=90);background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.i1pkgksb{border-radius:.25em;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:1em;border:solid 1px #b8daff;background-color:#cce5ff;color:#004085}.t2c81u8{text-align:left}.t2c81u8 dt{font-weight:700;margin-top:1em}.t2c81u8 dd{margin-inline-start:0px}.t1mav7fx{text-align:left}.t1mav7fx dt{font-weight:700;display:inline-block;width:30%}.t1mav7fx dd{margin-inline-start:0px;display:inline-block;width:70%}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html{font-family:sans-serif}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}.pure-g{letter-spacing:-.31em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,Droid Sans,Helvetica,Arial,sans-serif;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-line-pack:start;align-content:flex-start}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-g [class*=pure-u]{font-family:sans-serif}.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}.pure-button{display:inline-block;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#000c;border:none transparent;background-color:#e6e6e6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{background-image:-webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(40%,rgba(0,0,0,.05)),to(rgba(0,0,0,.1)));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;opacity:.4;cursor:not-allowed;-webkit-box-shadow:none;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{margin:0;border-radius:0;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 3px #ddd;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 3px #ddd;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input[type=color]:focus,.pure-form input[type=date]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=email]:focus,.pure-form input[type=month]:focus,.pure-form input[type=number]:focus,.pure-form input[type=password]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=text]:focus,.pure-form input[type=time]:focus,.pure-form input[type=url]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129fea}.pure-form input:not([type]):focus{outline:0;border-color:#129fea}.pure-form input[type=checkbox]:focus,.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus{outline:thin solid #129fea;outline:1px auto #129fea}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input[type=color][disabled],.pure-form input[type=date][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=email][disabled],.pure-form input[type=month][disabled],.pure-form input[type=number][disabled],.pure-form input[type=password][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=text][disabled],.pure-form input[type=time][disabled],.pure-form input[type=url][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input:not([type])[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input[type=color],.pure-form-stacked input[type=date],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=email],.pure-form-stacked input[type=file],.pure-form-stacked input[type=month],.pure-form-stacked input[type=number],.pure-form-stacked input[type=password],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=text],.pure-form-stacked input[type=time],.pure-form-stacked input[type=url],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-stacked input:not([type]){display:block;margin:.25em 0}.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width: 480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=color],.pure-group input[type=date],.pure-group input[type=datetime-local],.pure-group input[type=datetime],.pure-group input[type=email],.pure-group input[type=month],.pure-group input[type=number],.pure-group input[type=password],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=text],.pure-group input[type=time],.pure-group input[type=url],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.pure-menu{-webkit-box-sizing:border-box;box-sizing:border-box}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;vertical-align:middle}.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25b8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25be"}.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;padding:.5em 0}.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected>.pure-menu-link,.pure-menu-selected>.pure-menu-link:visited{color:#000}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td{background-color:#f2f2f2}.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}.talerbar{text-align:center}.tt{font-family:Lucida Console,Monaco,monospace}.content{overflow-x:auto;padding-left:15%;padding-right:15%}.qr{margin:auto;text-align:center}.qrtext{width:max-content;margin:auto;transition:font-size .2s;font-family:Lucida Console,Monaco,monospace;font-size:.5em}.qrtext:hover{font-size:1em}.talerbar{margin:0;bottom:0;background-color:#033;color:#fff;width:100%;padding:1em;overflow:auto}body{overflow-y:scroll}@media (min-width: 500px){.content{padding-bottom:2em;overflow-y:auto}}#main a:link,#main a:visited,#main a:hover,#main a:active{color:#000}
+/*!
Pure v2.0.3
Copyright 2013 Yahoo!
Licensed under the BSD License.
- https://github.com/pure-ss/pure/blob/master/LICENSE.md
+ https://github.com/pure-cs s/pure/blob/master/LICENSE.md
*/
/*!
- normalize.cs v | MIT License | git.io/normalize
+ normalize.cs s v | MIT License | git.io/normalize
Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
-/*! normalize.ss v8.0.1 | MIT License | github.com/necolas/normalize.cs */
-
-.talerbar {
- text-align: center;
-}
-.tt {
- font-family: "Lucida Console", Monaco, monospace;
-}
-.content {
- overflow-x: auto;
- padding-left: 15%;
- padding-right: 15%;
-}
-.qr {
- margin: auto;
- text-align: center;
-}
-.qrtext {
- width: max-content;
- margin: auto;
- transition: font-size 0.2s;
- font-family: "Lucida Console", Monaco, monospace;
- font-size: 0.5em;
-}
-.qrtext:hover {
- font-size: 1em;
-}
-.talerbar {
- margin: 0;
- bottom: 0;
- background-color: #033;
- color: white;
- width: 100%;
- padding: 1em;
- overflow: auto;
-}
-body {
- overflow-y: scroll;
-}
-@media (min-width: 500px) {
- .content {
- padding-bottom: 2em;
- overflow-y: auto;
- }
-}
-#main a:link,
-#main a:visited,
-#main a:hover,
-#main a:active {
- color: black;
-}/*!
+/*! normalize.cs s v8.0.1 | MIT License | github.com/necolas/normalize.cs s */
+/*!
Pure v2.0.3
Copyright 2013 Yahoo!
Licensed under the BSD License.
- https://github.com/pure-cs s/pure/blob/master/LICENSE.md
+ https://github.com/pure-ss/pure/blob/master/LICENSE.md
*/
/*!
- normalize.cs s v | MIT License | git.io/normalize
+ normalize.cs v | MIT License | git.io/normalize
Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
-/*! normalize.cs s v8.0.1 | MIT License | github.com/necolas/normalize.cs s */
-
-.talerbar {
- text-align: center;
-}
-
-html {
- line-height: 1.15;
- -webkit-text-size-adjust: 100%;
-}
-body {
- margin: 0;
-}
-main {
- display: block;
-}
-h1 {
- font-size: 2em;
- margin: 0.67em 0;
-}
-hr {
- -webkit-box-sizing: content-box;
- box-sizing: content-box;
- height: 0;
- overflow: visible;
-}
-pre {
- font-family: monospace, monospace;
- font-size: 1em;
-}
-a {
- background-color: transparent;
-}
-abbr[title] {
- border-bottom: none;
- text-decoration: underline;
- -webkit-text-decoration: underline dotted;
- text-decoration: underline dotted;
-}
-b,
-strong {
- font-weight: bolder;
-}
-code,
-kbd,
-samp {
- font-family: monospace, monospace;
- font-size: 1em;
-}
-small {
- font-size: 80%;
-}
-sub,
-sup {
- font-size: 75%;
- line-height: 0;
- position: relative;
- vertical-align: baseline;
-}
-sub {
- bottom: -0.25em;
-}
-sup {
- top: -0.5em;
-}
-img {
- border-style: none;
-}
-button,
-input,
-optgroup,
-select,
-textarea {
- font-family: inherit;
- font-size: 100%;
- line-height: 1.15;
- margin: 0;
-}
-button,
-input {
- overflow: visible;
-}
-button,
-select {
- text-transform: none;
-}
-[type="button"],
-[type="reset"],
-[type="submit"],
-button {
- -webkit-appearance: button;
-}
-[type="button"]::-moz-focus-inner,
-[type="reset"]::-moz-focus-inner,
-[type="submit"]::-moz-focus-inner,
-button::-moz-focus-inner {
- border-style: none;
- padding: 0;
-}
-[type="button"]:-moz-focusring,
-[type="reset"]:-moz-focusring,
-[type="submit"]:-moz-focusring,
-button:-moz-focusring {
- outline: 1px dotted ButtonText;
-}
-fieldset {
- padding: 0.35em 0.75em 0.625em;
-}
-legend {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- color: inherit;
- display: table;
- max-width: 100%;
- padding: 0;
- white-space: normal;
-}
-progress {
- vertical-align: baseline;
-}
-textarea {
- overflow: auto;
-}
-[type="checkbox"],
-[type="radio"] {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- padding: 0;
-}
-[type="number"]::-webkit-inner-spin-button,
-[type="number"]::-webkit-outer-spin-button {
- height: auto;
-}
-[type="search"] {
- -webkit-appearance: textfield;
- outline-offset: -2px;
-}
-[type="search"]::-webkit-search-decoration {
- -webkit-appearance: none;
-}
-::-webkit-file-upload-button {
- -webkit-appearance: button;
- font: inherit;
-}
-details {
- display: block;
-}
-summary {
- display: list-item;
-}
-template {
- display: none;
-}
-[hidden] {
- display: none;
-}
-html {
- font-family: sans-serif;
-}
-.hidden,
-[hidden] {
- display: none !important;
-}
-.pure-img {
- max-width: 100%;
- height: auto;
- display: block;
-}
-.pure-g {
- letter-spacing: -0.31em;
- text-rendering: optimizespeed;
- font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-orient: horizontal;
- -webkit-box-direction: normal;
- -ms-flex-flow: row wrap;
- flex-flow: row wrap;
- -ms-flex-line-pack: start;
- align-content: flex-start;
-}
-@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
- table .pure-g {
- display: block;
- }
-}
-.opera-only :-o-prefocus,
-.pure-g {
- word-spacing: -0.43em;
-}
-.pure-u {
- display: inline-block;
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-g [class*="pure-u"] {
- font-family: sans-serif;
-}
-.pure-u-1,
-.pure-u-1-1,
-.pure-u-1-12,
-.pure-u-1-2,
-.pure-u-1-24,
-.pure-u-1-3,
-.pure-u-1-4,
-.pure-u-1-5,
-.pure-u-1-6,
-.pure-u-1-8,
-.pure-u-10-24,
-.pure-u-11-12,
-.pure-u-11-24,
-.pure-u-12-24,
-.pure-u-13-24,
-.pure-u-14-24,
-.pure-u-15-24,
-.pure-u-16-24,
-.pure-u-17-24,
-.pure-u-18-24,
-.pure-u-19-24,
-.pure-u-2-24,
-.pure-u-2-3,
-.pure-u-2-5,
-.pure-u-20-24,
-.pure-u-21-24,
-.pure-u-22-24,
-.pure-u-23-24,
-.pure-u-24-24,
-.pure-u-3-24,
-.pure-u-3-4,
-.pure-u-3-5,
-.pure-u-3-8,
-.pure-u-4-24,
-.pure-u-4-5,
-.pure-u-5-12,
-.pure-u-5-24,
-.pure-u-5-5,
-.pure-u-5-6,
-.pure-u-5-8,
-.pure-u-6-24,
-.pure-u-7-12,
-.pure-u-7-24,
-.pure-u-7-8,
-.pure-u-8-24,
-.pure-u-9-24 {
- display: inline-block;
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-u-1-24 {
- width: 4.1667%;
-}
-.pure-u-1-12,
-.pure-u-2-24 {
- width: 8.3333%;
-}
-.pure-u-1-8,
-.pure-u-3-24 {
- width: 12.5%;
-}
-.pure-u-1-6,
-.pure-u-4-24 {
- width: 16.6667%;
-}
-.pure-u-1-5 {
- width: 20%;
-}
-.pure-u-5-24 {
- width: 20.8333%;
-}
-.pure-u-1-4,
-.pure-u-6-24 {
- width: 25%;
-}
-.pure-u-7-24 {
- width: 29.1667%;
-}
-.pure-u-1-3,
-.pure-u-8-24 {
- width: 33.3333%;
-}
-.pure-u-3-8,
-.pure-u-9-24 {
- width: 37.5%;
-}
-.pure-u-2-5 {
- width: 40%;
-}
-.pure-u-10-24,
-.pure-u-5-12 {
- width: 41.6667%;
-}
-.pure-u-11-24 {
- width: 45.8333%;
-}
-.pure-u-1-2,
-.pure-u-12-24 {
- width: 50%;
-}
-.pure-u-13-24 {
- width: 54.1667%;
-}
-.pure-u-14-24,
-.pure-u-7-12 {
- width: 58.3333%;
-}
-.pure-u-3-5 {
- width: 60%;
-}
-.pure-u-15-24,
-.pure-u-5-8 {
- width: 62.5%;
-}
-.pure-u-16-24,
-.pure-u-2-3 {
- width: 66.6667%;
-}
-.pure-u-17-24 {
- width: 70.8333%;
-}
-.pure-u-18-24,
-.pure-u-3-4 {
- width: 75%;
-}
-.pure-u-19-24 {
- width: 79.1667%;
-}
-.pure-u-4-5 {
- width: 80%;
-}
-.pure-u-20-24,
-.pure-u-5-6 {
- width: 83.3333%;
-}
-.pure-u-21-24,
-.pure-u-7-8 {
- width: 87.5%;
-}
-.pure-u-11-12,
-.pure-u-22-24 {
- width: 91.6667%;
-}
-.pure-u-23-24 {
- width: 95.8333%;
-}
-.pure-u-1,
-.pure-u-1-1,
-.pure-u-24-24,
-.pure-u-5-5 {
- width: 100%;
-}
-.pure-button {
- display: inline-block;
- line-height: normal;
- white-space: nowrap;
- vertical-align: middle;
- text-align: center;
- cursor: pointer;
- -webkit-user-drag: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-button::-moz-focus-inner {
- padding: 0;
- border: 0;
-}
-.pure-button-group {
- letter-spacing: -0.31em;
- text-rendering: optimizespeed;
-}
-.opera-only :-o-prefocus,
-.pure-button-group {
- word-spacing: -0.43em;
-}
-.pure-button-group .pure-button {
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-button {
- font-family: inherit;
- font-size: 100%;
- padding: 0.5em 1em;
- color: rgba(0, 0, 0, 0.8);
- border: none transparent;
- background-color: #e6e6e6;
- text-decoration: none;
- border-radius: 2px;
-}
-.pure-button-hover,
-.pure-button:focus,
-.pure-button:hover {
- background-image: -webkit-gradient(
- linear,
- left top,
- left bottom,
- from(transparent),
- color-stop(40%, rgba(0, 0, 0, 0.05)),
- to(rgba(0, 0, 0, 0.1))
- );
- background-image: linear-gradient(
- transparent,
- rgba(0, 0, 0, 0.05) 40%,
- rgba(0, 0, 0, 0.1)
- );
-}
-.pure-button:focus {
- outline: 0;
-}
-.pure-button-active,
-.pure-button:active {
- -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset,
- 0 0 6px rgba(0, 0, 0, 0.2) inset;
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset,
- 0 0 6px rgba(0, 0, 0, 0.2) inset;
- border-color: #000;
-}
-.pure-button-disabled,
-.pure-button-disabled:active,
-.pure-button-disabled:focus,
-.pure-button-disabled:hover,
-.pure-button[disabled] {
- border: none;
- background-image: none;
- opacity: 0.4;
- cursor: not-allowed;
- -webkit-box-shadow: none;
- box-shadow: none;
- pointer-events: none;
-}
-.pure-button-hidden {
- display: none;
-}
-.pure-button-primary,
-.pure-button-selected,
-a.pure-button-primary,
-a.pure-button-selected {
- background-color: #0078e7;
- color: #fff;
-}
-.pure-button-group .pure-button {
- margin: 0;
- border-radius: 0;
- border-right: 1px solid rgba(0, 0, 0, 0.2);
-}
-.pure-button-group .pure-button:first-child {
- border-top-left-radius: 2px;
- border-bottom-left-radius: 2px;
-}
-.pure-button-group .pure-button:last-child {
- border-top-right-radius: 2px;
- border-bottom-right-radius: 2px;
- border-right: none;
-}
-.pure-form input[type="color"],
-.pure-form input[type="date"],
-.pure-form input[type="datetime-local"],
-.pure-form input[type="datetime"],
-.pure-form input[type="email"],
-.pure-form input[type="month"],
-.pure-form input[type="number"],
-.pure-form input[type="password"],
-.pure-form input[type="search"],
-.pure-form input[type="tel"],
-.pure-form input[type="text"],
-.pure-form input[type="time"],
-.pure-form input[type="url"],
-.pure-form input[type="week"],
-.pure-form select,
-.pure-form textarea {
- padding: 0.5em 0.6em;
- display: inline-block;
- border: 1px solid #ccc;
- -webkit-box-shadow: inset 0 1px 3px #ddd;
- box-shadow: inset 0 1px 3px #ddd;
- border-radius: 4px;
- vertical-align: middle;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-form input:not([type]) {
- padding: 0.5em 0.6em;
- display: inline-block;
- border: 1px solid #ccc;
- -webkit-box-shadow: inset 0 1px 3px #ddd;
- box-shadow: inset 0 1px 3px #ddd;
- border-radius: 4px;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-form input[type="color"] {
- padding: 0.2em 0.5em;
-}
-.pure-form input[type="color"]:focus,
-.pure-form input[type="date"]:focus,
-.pure-form input[type="datetime-local"]:focus,
-.pure-form input[type="datetime"]:focus,
-.pure-form input[type="email"]:focus,
-.pure-form input[type="month"]:focus,
-.pure-form input[type="number"]:focus,
-.pure-form input[type="password"]:focus,
-.pure-form input[type="search"]:focus,
-.pure-form input[type="tel"]:focus,
-.pure-form input[type="text"]:focus,
-.pure-form input[type="time"]:focus,
-.pure-form input[type="url"]:focus,
-.pure-form input[type="week"]:focus,
-.pure-form select:focus,
-.pure-form textarea:focus {
- outline: 0;
- border-color: #129fea;
-}
-.pure-form input:not([type]):focus {
- outline: 0;
- border-color: #129fea;
-}
-.pure-form input[type="checkbox"]:focus,
-.pure-form input[type="file"]:focus,
-.pure-form input[type="radio"]:focus {
- outline: thin solid #129fea;
- outline: 1px auto #129fea;
-}
-.pure-form .pure-checkbox,
-.pure-form .pure-radio {
- margin: 0.5em 0;
- display: block;
-}
-.pure-form input[type="color"][disabled],
-.pure-form input[type="date"][disabled],
-.pure-form input[type="datetime-local"][disabled],
-.pure-form input[type="datetime"][disabled],
-.pure-form input[type="email"][disabled],
-.pure-form input[type="month"][disabled],
-.pure-form input[type="number"][disabled],
-.pure-form input[type="password"][disabled],
-.pure-form input[type="search"][disabled],
-.pure-form input[type="tel"][disabled],
-.pure-form input[type="text"][disabled],
-.pure-form input[type="time"][disabled],
-.pure-form input[type="url"][disabled],
-.pure-form input[type="week"][disabled],
-.pure-form select[disabled],
-.pure-form textarea[disabled] {
- cursor: not-allowed;
- background-color: #eaeded;
- color: #cad2d3;
-}
-.pure-form input:not([type])[disabled] {
- cursor: not-allowed;
- background-color: #eaeded;
- color: #cad2d3;
-}
-.pure-form input[readonly],
-.pure-form select[readonly],
-.pure-form textarea[readonly] {
- background-color: #eee;
- color: #777;
- border-color: #ccc;
-}
-.pure-form input:focus:invalid,
-.pure-form select:focus:invalid,
-.pure-form textarea:focus:invalid {
- color: #b94a48;
- border-color: #e9322d;
-}
-.pure-form input[type="checkbox"]:focus:invalid:focus,
-.pure-form input[type="file"]:focus:invalid:focus,
-.pure-form input[type="radio"]:focus:invalid:focus {
- outline-color: #e9322d;
-}
-.pure-form select {
- height: 2.25em;
- border: 1px solid #ccc;
- background-color: #fff;
-}
-.pure-form select[multiple] {
- height: auto;
-}
-.pure-form label {
- margin: 0.5em 0 0.2em;
-}
-.pure-form fieldset {
- margin: 0;
- padding: 0.35em 0 0.75em;
- border: 0;
-}
-.pure-form legend {
- display: block;
- width: 100%;
- padding: 0.3em 0;
- margin-bottom: 0.3em;
- color: #333;
- border-bottom: 1px solid #e5e5e5;
-}
-.pure-form-stacked input[type="color"],
-.pure-form-stacked input[type="date"],
-.pure-form-stacked input[type="datetime-local"],
-.pure-form-stacked input[type="datetime"],
-.pure-form-stacked input[type="email"],
-.pure-form-stacked input[type="file"],
-.pure-form-stacked input[type="month"],
-.pure-form-stacked input[type="number"],
-.pure-form-stacked input[type="password"],
-.pure-form-stacked input[type="search"],
-.pure-form-stacked input[type="tel"],
-.pure-form-stacked input[type="text"],
-.pure-form-stacked input[type="time"],
-.pure-form-stacked input[type="url"],
-.pure-form-stacked input[type="week"],
-.pure-form-stacked label,
-.pure-form-stacked select,
-.pure-form-stacked textarea {
- display: block;
- margin: 0.25em 0;
-}
-.pure-form-stacked input:not([type]) {
- display: block;
- margin: 0.25em 0;
-}
-.pure-form-aligned input,
-.pure-form-aligned select,
-.pure-form-aligned textarea,
-.pure-form-message-inline {
- display: inline-block;
- vertical-align: middle;
-}
-.pure-form-aligned textarea {
- vertical-align: top;
-}
-.pure-form-aligned .pure-control-group {
- margin-bottom: 0.5em;
-}
-.pure-form-aligned .pure-control-group label {
- text-align: right;
- display: inline-block;
- vertical-align: middle;
- width: 10em;
- margin: 0 1em 0 0;
-}
-.pure-form-aligned .pure-controls {
- margin: 1.5em 0 0 11em;
-}
-.pure-form .pure-input-rounded,
-.pure-form input.pure-input-rounded {
- border-radius: 2em;
- padding: 0.5em 1em;
-}
-.pure-form .pure-group fieldset {
- margin-bottom: 10px;
-}
-.pure-form .pure-group input,
-.pure-form .pure-group textarea {
- display: block;
- padding: 10px;
- margin: 0 0 -1px;
- border-radius: 0;
- position: relative;
- top: -1px;
-}
-.pure-form .pure-group input:focus,
-.pure-form .pure-group textarea:focus {
- z-index: 3;
-}
-.pure-form .pure-group input:first-child,
-.pure-form .pure-group textarea:first-child {
- top: 1px;
- border-radius: 4px 4px 0 0;
- margin: 0;
-}
-.pure-form .pure-group input:first-child:last-child,
-.pure-form .pure-group textarea:first-child:last-child {
- top: 1px;
- border-radius: 4px;
- margin: 0;
-}
-.pure-form .pure-group input:last-child,
-.pure-form .pure-group textarea:last-child {
- top: -2px;
- border-radius: 0 0 4px 4px;
- margin: 0;
-}
-.pure-form .pure-group button {
- margin: 0.35em 0;
-}
-.pure-form .pure-input-1 {
- width: 100%;
-}
-.pure-form .pure-input-3-4 {
- width: 75%;
-}
-.pure-form .pure-input-2-3 {
- width: 66%;
-}
-.pure-form .pure-input-1-2 {
- width: 50%;
-}
-.pure-form .pure-input-1-3 {
- width: 33%;
-}
-.pure-form .pure-input-1-4 {
- width: 25%;
-}
-.pure-form-message-inline {
- display: inline-block;
- padding-left: 0.3em;
- color: #666;
- vertical-align: middle;
- font-size: 0.875em;
-}
-.pure-form-message {
- display: block;
- color: #666;
- font-size: 0.875em;
-}
-@media only screen and (max-width: 480px) {
- .pure-form button[type="submit"] {
- margin: 0.7em 0 0;
- }
- .pure-form input:not([type]),
- .pure-form input[type="color"],
- .pure-form input[type="date"],
- .pure-form input[type="datetime-local"],
- .pure-form input[type="datetime"],
- .pure-form input[type="email"],
- .pure-form input[type="month"],
- .pure-form input[type="number"],
- .pure-form input[type="password"],
- .pure-form input[type="search"],
- .pure-form input[type="tel"],
- .pure-form input[type="text"],
- .pure-form input[type="time"],
- .pure-form input[type="url"],
- .pure-form input[type="week"],
- .pure-form label {
- margin-bottom: 0.3em;
- display: block;
- }
- .pure-group input:not([type]),
- .pure-group input[type="color"],
- .pure-group input[type="date"],
- .pure-group input[type="datetime-local"],
- .pure-group input[type="datetime"],
- .pure-group input[type="email"],
- .pure-group input[type="month"],
- .pure-group input[type="number"],
- .pure-group input[type="password"],
- .pure-group input[type="search"],
- .pure-group input[type="tel"],
- .pure-group input[type="text"],
- .pure-group input[type="time"],
- .pure-group input[type="url"],
- .pure-group input[type="week"] {
- margin-bottom: 0;
- }
- .pure-form-aligned .pure-control-group label {
- margin-bottom: 0.3em;
- text-align: left;
- display: block;
- width: 100%;
- }
- .pure-form-aligned .pure-controls {
- margin: 1.5em 0 0 0;
- }
- .pure-form-message,
- .pure-form-message-inline {
- display: block;
- font-size: 0.75em;
- padding: 0.2em 0 0.8em;
- }
-}
-.pure-menu {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-menu-fixed {
- position: fixed;
- left: 0;
- top: 0;
- z-index: 3;
-}
-.pure-menu-item,
-.pure-menu-list {
- position: relative;
-}
-.pure-menu-list {
- list-style: none;
- margin: 0;
- padding: 0;
-}
-.pure-menu-item {
- padding: 0;
- margin: 0;
- height: 100%;
-}
-.pure-menu-heading,
-.pure-menu-link {
- display: block;
- text-decoration: none;
- white-space: nowrap;
-}
-.pure-menu-horizontal {
- width: 100%;
- white-space: nowrap;
-}
-.pure-menu-horizontal .pure-menu-list {
- display: inline-block;
-}
-.pure-menu-horizontal .pure-menu-heading,
-.pure-menu-horizontal .pure-menu-item,
-.pure-menu-horizontal .pure-menu-separator {
- display: inline-block;
- vertical-align: middle;
-}
-.pure-menu-item .pure-menu-item {
- display: block;
-}
-.pure-menu-children {
- display: none;
- position: absolute;
- left: 100%;
- top: 0;
- margin: 0;
- padding: 0;
- z-index: 3;
-}
-.pure-menu-horizontal .pure-menu-children {
- left: 0;
- top: auto;
- width: inherit;
-}
-.pure-menu-active > .pure-menu-children,
-.pure-menu-allow-hover:hover > .pure-menu-children {
- display: block;
- position: absolute;
-}
-.pure-menu-has-children > .pure-menu-link:after {
- padding-left: 0.5em;
- content: "\25B8";
- font-size: small;
-}
-.pure-menu-horizontal .pure-menu-has-children > .pure-menu-link:after {
- content: "\25BE";
-}
-.pure-menu-scrollable {
- overflow-y: scroll;
- overflow-x: hidden;
-}
-.pure-menu-scrollable .pure-menu-list {
- display: block;
-}
-.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list {
- display: inline-block;
-}
-.pure-menu-horizontal.pure-menu-scrollable {
- white-space: nowrap;
- overflow-y: hidden;
- overflow-x: auto;
- padding: 0.5em 0;
-}
-.pure-menu-horizontal .pure-menu-children .pure-menu-separator,
-.pure-menu-separator {
- background-color: #ccc;
- height: 1px;
- margin: 0.3em 0;
-}
-.pure-menu-horizontal .pure-menu-separator {
- width: 1px;
- height: 1.3em;
- margin: 0 0.3em;
-}
-.pure-menu-horizontal .pure-menu-children .pure-menu-separator {
- display: block;
- width: auto;
-}
-.pure-menu-heading {
- text-transform: uppercase;
- color: #565d64;
-}
-.pure-menu-link {
- color: #777;
-}
-.pure-menu-children {
- background-color: #fff;
-}
-.pure-menu-disabled,
-.pure-menu-heading,
-.pure-menu-link {
- padding: 0.5em 1em;
-}
-.pure-menu-disabled {
- opacity: 0.5;
-}
-.pure-menu-disabled .pure-menu-link:hover {
- background-color: transparent;
-}
-.pure-menu-active > .pure-menu-link,
-.pure-menu-link:focus,
-.pure-menu-link:hover {
- background-color: #eee;
-}
-.pure-menu-selected > .pure-menu-link,
-.pure-menu-selected > .pure-menu-link:visited {
- color: #000;
-}
-.pure-table {
- border-collapse: collapse;
- border-spacing: 0;
- empty-cells: show;
- border: 1px solid #cbcbcb;
-}
-.pure-table caption {
- color: #000;
- font: italic 85%/1 arial, sans-serif;
- padding: 1em 0;
- text-align: center;
-}
-.pure-table td,
-.pure-table th {
- border-left: 1px solid #cbcbcb;
- border-width: 0 0 0 1px;
- font-size: inherit;
- margin: 0;
- overflow: visible;
- padding: 0.5em 1em;
-}
-.pure-table thead {
- background-color: #e0e0e0;
- color: #000;
- text-align: left;
- vertical-align: bottom;
-}
-.pure-table td {
- background-color: transparent;
-}
-.pure-table-odd td {
- background-color: #f2f2f2;
-}
-.pure-table-striped tr:nth-child(2n-1) td {
- background-color: #f2f2f2;
-}
-.pure-table-bordered td {
- border-bottom: 1px solid #cbcbcb;
-}
-.pure-table-bordered tbody > tr:last-child > td {
- border-bottom-width: 0;
-}
-.pure-table-horizontal td,
-.pure-table-horizontal th {
- border-width: 0 0 1px 0;
- border-bottom: 1px solid #cbcbcb;
-}
-.pure-table-horizontal tbody > tr:last-child > td {
- border-bottom-width: 0;
-}
-.q1ma0zxq{margin:auto;text-align:center;width:340px;}
-.fef0x5t{text-align:center;background-color:#033;color:white;padding:1em;overflow:auto;}.fef0x5t > p > a:link,.fef0x5t > p > a:visited,.fef0x5t > p > a:hover,.fef0x5t > p > a:active{color:white;}
-.p1b3vqup{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:100vh;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.p1b3vqup a:link,.p1b3vqup a:visited,.p1b3vqup a:hover,.p1b3vqup a:active{color:black;}.p1b3vqup section{text-align:center;width:600px;margin-bottom:auto;}.p1b3vqup section:not(:first-of-type){margin-top:2em;}.p1b3vqup > header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:center;}.p1b3vqup > footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;width:100%;margin-bottom:0px;}
-.c1gnd3xp{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
-.wpwjmk{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;text-transform:var(--wpwjmk-0);font-family:inherit;font-size:100%;padding:0.5em 1em;color:#444;color:rgba(0,0,0,0.8);border:1px solid #999;border:none rgba(0,0,0,0);background-color:'#e6e6e6';-webkit-text-decoration:none;text-decoration:none;border-radius:2px;background-color:#e6e6e6;border-radius:4px;text-shadow:0 1px 1px rgba(0,0,0,0.2);box-shadow:0 0 0 1px rgba(0,0,0,0.15) inset, 0 0 6px rgba(0,0,0,0.2) inset;border-color:#000;}.wpwjmk:focus{outline:0;}.wpwjmk:disabled{border:none;background-image:none;-webkit-filter:alpha(opacity=40);filter:alpha(opacity=40);opacity:0.4;cursor:not-allowed;box-shadow:none;pointer-events:none;}.wpwjmk:hover{-webkit-filter:alpha(opacity=90);filter:alpha(opacity=90);background-image:linear-gradient( transparent, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.1) );}
-.i1pkgksb{border-radius:0.25em;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:1em;border:solid 1px #b8daff;background-color:#cce5ff;color:#004085;}
-.t2c81u8{text-align:left;}.t2c81u8 dt{font-weight:bold;margin-top:1em;}.t2c81u8 dd{margin-inline-start:0px;}
-.t1mav7fx{text-align:left;}.t1mav7fx dt{font-weight:bold;display:inline-block;width:30%;}.t1mav7fx dd{margin-inline-start:0px;display:inline-block;width:70%;}
-/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3NlYmFzam0vV29yay90YWxlci93YWxsZXQtY29yZS9wYWNrYWdlcy9tZXJjaGFudC1iYWNrZW5kLXVpL3NyYy9zdHlsZWQvaW5kZXgudHN4Il0sIm5hbWVzIjpbIi5xMW1hMHp4cSIsIi5mZWYweDV0IiwiLnAxYjN2cXVwIiwiLmMxZ25kM3hwIiwiLndwd2ptayIsIi5pMXBrZ2tzYiIsIi50MmM4MXU4IiwiLnQxbWF2N2Z4Il0sIm1hcHBpbmdzIjoiQUFvQmFBO0FBS0FDO0FBY0FDO0FBdUNBQztBQUlBQztBQXVEQUM7QUFVQUM7QUFVQUMiLCJmaWxlIjoiL2hvbWUvc2ViYXNqbS9Xb3JrL3RhbGVyL3dhbGxldC1jb3JlL3BhY2thZ2VzL21lcmNoYW50LWJhY2tlbmQtdWkvc3JjL3N0eWxlZC9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgZmlsZSBpcyBwYXJ0IG9mIEdOVSBUYWxlclxuIChDKSAyMDIxIFRhbGVyIFN5c3RlbXMgUy5BLlxuXG4gR05VIFRhbGVyIGlzIGZyZWUgc29mdHdhcmU7IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnkgaXQgdW5kZXIgdGhlXG4gdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieSB0aGUgRnJlZSBTb2Z0d2FyZVxuIEZvdW5kYXRpb247IGVpdGhlciB2ZXJzaW9uIDMsIG9yIChhdCB5b3VyIG9wdGlvbikgYW55IGxhdGVyIHZlcnNpb24uXG5cbiBHTlUgVGFsZXIgaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCwgYnV0IFdJVEhPVVQgQU5ZXG4gV0FSUkFOVFk7IHdpdGhvdXQgZXZlbiB0aGUgaW1wbGllZCB3YXJyYW50eSBvZiBNRVJDSEFOVEFCSUxJVFkgb3IgRklUTkVTUyBGT1JcbiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4gIFNlZSB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0YWlscy5cblxuIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFsb25nIHdpdGhcbiBHTlUgVGFsZXI7IHNlZSB0aGUgZmlsZSBDT1BZSU5HLiAgSWYgbm90LCBzZWUgPGh0dHA6Ly93d3cuZ251Lm9yZy9saWNlbnNlcy8+XG4gKi9cbi8qKlxuKlxuKiBAYXV0aG9yIFNlYmFzdGlhbiBKYXZpZXIgTWFyY2hhbm8gKHNlYmFzam0pXG4qL1xuaW1wb3J0IHsgc3R5bGVkIH0gZnJvbSAnQGxpbmFyaWEvcmVhY3QnO1xuZXhwb3J0IGNvbnN0IFFSUGxhY2Vob2xkZXIgPSBzdHlsZWQuZGl2IGBcbiAgbWFyZ2luOiBhdXRvO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHdpZHRoOiAzNDBweDsgXG5gO1xuZXhwb3J0IGNvbnN0IEZvb3RlckJhciA9IHN0eWxlZC5mb290ZXIgYFxuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGJhY2tncm91bmQtY29sb3I6ICMwMzM7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgcGFkZGluZzogMWVtO1xuICBvdmVyZmxvdzogYXV0bztcblxuICAmID4gcCA+IGE6bGluayxcbiAgJiA+IHAgPiBhOnZpc2l0ZWQsXG4gICYgPiBwID4gYTpob3ZlcixcbiAgJiA+IHAgPiBhOmFjdGl2ZSB7XG4gICAgY29sb3I6IHdoaXRlO1xuICB9XG5gO1xuZXhwb3J0IGNvbnN0IFBhZ2UgPSBzdHlsZWQuZGl2IGBcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICBtaW4taGVpZ2h0OiAxMDB2aDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgXG4gIGE6bGluayxcbiAgYTp2aXNpdGVkLFxuICBhOmhvdmVyLFxuICBhOmFjdGl2ZSB7XG4gICAgY29sb3I6IGJsYWNrO1xuICB9XG4gIFxuICBzZWN0aW9uIHtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgd2lkdGg6IDYwMHB4O1xuICAgIC8qIG1hcmdpbjogYXV0bzsgKi9cbiAgICAvKiBtYXJnaW4tdG9wOiAwcHg7ICovXG4gICAgbWFyZ2luLWJvdHRvbTogYXV0bztcbiAgICAvKiBvdmVyZmxvdzogYXV0bzsgKi9cbiAgfVxuICBzZWN0aW9uOm5vdCg6Zmlyc3Qtb2YtdHlwZSkge1xuICAgIG1hcmdpbi10b3A6IDJlbTtcbiAgfVxuICAmID4gaGVhZGVyIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgfVxuICAmID4gZm9vdGVyIHtcbiAgICBkaXNwbGF5OiBmbGV4OyAgICBcbiAgICBmbGV4LWRpcmVjdGlvbjogcm93O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIG1hcmdpbi1ib3R0b206IDBweDtcbiAgfVxuYDtcbmV4cG9ydCBjb25zdCBDZW50ZXIgPSBzdHlsZWQuZGl2IGBcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5gO1xuZXhwb3J0IGNvbnN0IFdhbGxldExpbmsgPSBzdHlsZWQuYSBgXG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgem9vbTogMTtcbiAgbGluZS1oZWlnaHQ6IG5vcm1hbDtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgdmVydGljYWwtYWxpZ246IG1pZGRsZTtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIHVzZXItc2VsZWN0OiBub25lO1xuICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICB0ZXh0LXRyYW5zZm9ybTogJHsoeyB1cHBlckNhc2VkIH0pID0+IHVwcGVyQ2FzZWQgPyAndXBwZXJjYXNlJyA6ICdub25lJ307XG5cbiAgZm9udC1mYW1pbHk6IGluaGVyaXQ7XG4gIGZvbnQtc2l6ZTogMTAwJTtcbiAgcGFkZGluZzogMC41ZW0gMWVtO1xuICBjb2xvcjogIzQ0NDsgLyogcmdiYSBub3Qgc3VwcG9ydGVkIChJRSA4KSAqL1xuICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjgpOyAvKiByZ2JhIHN1cHBvcnRlZCAqL1xuICBib3JkZXI6IDFweCBzb2xpZCAjOTk5OyAvKklFIDYvNy84Ki9cbiAgYm9yZGVyOiBub25lIHJnYmEoMCwgMCwgMCwgMCk7IC8qSUU5ICsgZXZlcnl0aGluZyBlbHNlKi9cbiAgYmFja2dyb3VuZC1jb2xvcjogJyNlNmU2ZTYnO1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIGJvcmRlci1yYWRpdXM6IDJweDtcblxuICA6Zm9jdXMge1xuICAgIG91dGxpbmU6IDA7XG4gIH1cblxuICAmOmRpc2FibGVkIHtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogbm9uZTtcbiAgICAvKiBjc3NsaW50IGlnbm9yZTpzdGFydCAqL1xuICAgIGZpbHRlcjogYWxwaGEob3BhY2l0eT00MCk7XG4gICAgLyogY3NzbGludCBpZ25vcmU6ZW5kICovXG4gICAgb3BhY2l0eTogMC40O1xuICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgYm94LXNoYWRvdzogbm9uZTtcbiAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcbiAgfVxuXG4gIDpob3ZlciB7XG4gICAgZmlsdGVyOiBhbHBoYShvcGFjaXR5PTkwKTtcbiAgICBiYWNrZ3JvdW5kLWltYWdlOiBsaW5lYXItZ3JhZGllbnQoXG4gICAgICB0cmFuc3BhcmVudCxcbiAgICAgIHJnYmEoMCwgMCwgMCwgMC4wNSkgNDAlLFxuICAgICAgcmdiYSgwLCAwLCAwLCAwLjEpXG4gICAgKTtcbiAgfVxuXG4gIGJhY2tncm91bmQtY29sb3I6ICNlNmU2ZTY7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgdGV4dC1zaGFkb3c6IDAgMXB4IDFweCByZ2JhKDAsIDAsIDAsIDAuMik7XG4gIGJveC1zaGFkb3c6IDAgMCAwIDFweCByZ2JhKDAsIDAsIDAsIDAuMTUpIGluc2V0LFxuICAgIDAgMCA2cHggcmdiYSgwLCAwLCAwLCAwLjIpIGluc2V0O1xuICBib3JkZXItY29sb3I6ICMwMDA7XG5gO1xuZXhwb3J0IGNvbnN0IEluZm9Cb3ggPSBzdHlsZWQuZGl2IGBcbiAgYm9yZGVyLXJhZGl1czogMC4yNWVtO1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAvKiBtYXJnaW46IDAuNWVtOyAqL1xuICBwYWRkaW5nOiAxZW07XG4gIC8qIHdpZHRoOiAxMDAlOyAqL1xuICBib3JkZXI6c29saWQgMXB4ICNiOGRhZmY7XG4gIGJhY2tncm91bmQtY29sb3I6I2NjZTVmZjtcbiAgY29sb3I6IzAwNDA4NTtcbmA7XG5leHBvcnQgY29uc3QgVGFibGVFeHBhbmRlZCA9IHN0eWxlZC5kbCBgXG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIGR0IHtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICBtYXJnaW4tdG9wOiAxZW07XG4gIH1cbiAgZGQge1xuICAgIG1hcmdpbi1pbmxpbmUtc3RhcnQ6IDBweDtcbiAgfVxuYDtcbmV4cG9ydCBjb25zdCBUYWJsZVNpbXBsZSA9IHN0eWxlZC5kbCBgXG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIGR0IHtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgd2lkdGg6MzAlO1xuICB9XG4gIGRkIHtcbiAgICBtYXJnaW4taW5saW5lLXN0YXJ0OiAwcHg7XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIHdpZHRoOjcwJTtcbiAgfVxuYDtcbiJdfQ==*/</style>
- </head>
- <script id="built_time_data">
- </script>
- <body>
- <div class="p1b3vqup"><header><h1>Details of order {{ contract_terms.order_id }}</h1></header><section><section><dl class="t2c81u8"><dt>Order summary:</dt><dd>{{ contract_terms.summary }}</dd><dt>Amount paid:</dt><dd>{{ contract_terms.amount }}</dd><dt>Order date:</dt><dd>{{ contract_terms.timestamp_str }} </dd><dt>Merchant name:</dt><dd>{{ contract_terms.merchant.name }}</dd></dl></section><section><h2>Full payment information</h2><dl class="t2c81u8"><dt>Amount paid:</dt><dd>{{ contract_terms.amount }}</dd><dt>Wire transfer method:</dt><dd>{{ contract_terms.wire_method }}</dd><dt>Payment deadline:</dt><dd>{{ contract_terms.pay_deadline_str }} </dd><dt>Exchange transfer deadline:</dt><dd>{{ contract_terms.wire_transfer_deadline_str }} </dd><dt>Maximum deposit fee:</dt><dd>{{ contract_terms.max_fee }}</dd><dt>Maximum wire fee:</dt><dd>{{ contract_terms.max_wire_fee }}</dd><dt>Wire fee amortization:</dt><dd>{{ contract_terms.wire_fee_amortization }} transactions</dd></dl></section><section><h2>Refund information</h2><dl class="t2c81u8"><dt>Refund deadline:</dt><dd>{{ contract_terms.refund_deadline_str }} </dd></dl></section><section><h2>Additional order details</h2><dl class="t2c81u8"><dt>Public reorder URL:</dt><dd> -- not defined yet -- </dd></dl></section><section><h2>Full merchant information</h2><dl class="t2c81u8"><dt>Merchant name:</dt><dd>{{ contract_terms.merchant.name }}</dd><dt>Merchant address:</dt><dd> </dd><dd> </dd><dd></dd><dd></dd><dd></dd><dd></dd><dd></dd><dt>Merchant's jurisdiction:</dt><dd> </dd><dd> </dd><dd></dd><dd></dd><dd></dd><dd></dd><dd></dd><dt>Merchant URI:</dt><dd>{{ contract_terms.merchant_base_url }}</dd><dt>Merchant's public key:</dt><dd>{{ contract_terms.merchant_pub }}</dd></dl></section></section><footer class="fef0x5t"><p><a href="https://taler.net/">Learn more about GNU Taler on our website.</a><p>Copyright © 2014—2021 Taler Systems SA</p></p></footer></div>
- <script>var page = (function (exports) {
- 'use strict';
-
- var n$1,l$2,u$2,t$1,o$2,r$1,f$2={},e$1=[],c$2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s$2(n,l){for(var u in l)n[u]=l[u];return n}function a$2(n){var l=n.parentNode;l&&l.removeChild(n);}function h$2(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v$2(l,f,t,o,null)}function v$2(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$2:r};return null==r&&null!=l$2.vnode&&l$2.vnode(f),f}function y$2(){return {current:null}}function p$2(n){return n.children}function d$2(n,l){this.props=n,this.context=l;}function _$2(n,l){if(null==l)return n.__?_$2(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?_$2(n):null}function k$3(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k$3(n)}}function b$2(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$3.__r++||o$2!==l$2.debounceRendering)&&((o$2=l$2.debounceRendering)||setTimeout)(g$3);}function g$3(){for(var n;g$3.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s$2({},t)).__v=t.__v+1,j$3(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_$2(t):o,t.__h),z$2(u,t),t.__e!=o&&k$3(t)));});}function w$3(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e$1,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$2(null,k,null,null,k):Array.isArray(k)?v$2(p$2,{children:k},null,null,null):k.__b>0?v$2(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j$3(n,k,d=d||f$2,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m$2(k,s,n):s=A$3(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_$2(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&N$1(x[h],x[h]);if(w)for(h=0;h<w.length;h++)M$1(w[h],w[++h],w[++h]);}function m$2(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m$2(i,l,u):A$3(u,i,i,t,i.__e,l));return l}function x$3(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){x$3(n,l);}):l.push(n)),l}function A$3(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C$2(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H$1(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H$1(n,o,l[o],u[o],i);}function $$1(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c$2.test(l)?u:u+"px";}function H$1(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$$1(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$$1(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$2:I$1,o):n.removeEventListener(l,o?T$2:I$1,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function I$1(n){this.l[n.type+!1](l$2.event?l$2.event(n):n);}function T$2(n){this.l[n.type+!0](l$2.event?l$2.event(n):n);}function j$3(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H,I,T=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l$2.__b)&&a(u);try{n:if("function"==typeof T){if(g=u.props,m=(a=T.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in T&&T.prototype.render?u.__c=h=new T(g,x):(u.__c=h=new d$2(g,x),h.constructor=T,h.render=O$2),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s$2({},h.__s)),s$2(h.__s,T.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==T.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){for(h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,C=l$2.__r,$=0,"prototype"in T&&T.prototype.render){for(h.state=h.__s,h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(t=s$2(s$2({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),I=null!=a&&a.type===p$2&&null==a.key?a.props.children:a,w$3(n,Array.isArray(I)?I:[I],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L$1(i.__e,u,i,t,o,r,f,c);(a=l$2.diffed)&&a(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$2.__e(n,u,i);}}function z$2(n,u){l$2.__c&&l$2.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$2.__e(n,u.__v);}});}function L$1(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n$1.call(l.childNodes),h=(y=i.props||f$2).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C$2(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w$3(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_$2(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a$2(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H$1(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H$1(l,"checked",k,y.checked,!1));}return l}function M$1(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$2.__e(n,i);}}function N$1(n,u,i){var t,o;if(l$2.unmount&&l$2.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M$1(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$2.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N$1(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||a$2(n.__e),n.__=n.__e=n.__d=void 0;}function O$2(n,l,u){return this.constructor(n,u)}function P$1(u,i,t){var o,r,e;l$2.__&&l$2.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j$3(i,u=(!o&&t||i).__k=h$2(p$2,null,[u]),r||f$2,f$2,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n$1.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z$2(e,u);}function S$1(n,l){P$1(n,l,S$1);}function q$2(l,u,i){var t,o,r,f=s$2({},l.props);for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];return arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):i),v$2(l.type,f,t||l.key,o||l.ref,null)}function B$2(n,l){var u={__c:l="__cC"+r$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(b$2);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n$1=e$1.slice,l$2={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$2=0,d$2.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s$2({},this.state),"function"==typeof n&&(n=n(s$2({},u),this.props)),n&&s$2(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),b$2(this));},d$2.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b$2(this));},d$2.prototype.render=p$2,t$1=[],g$3.__r=0,r$1=0;
-
- var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,o$1=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,i$1=/[\s\n\\/='"\0<>]/,l$1=/^xlink:?./,a$1=/["&<]/;function s$1(e){if(!1===a$1.test(e+=""))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1;}return r!==t&&(n+=e.slice(t,r)),n}var f$1=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},u$1=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},c$1={},_$1=/([A-Z])/g;function p$1(e){var t="";for(var r in e){var o=e[r];null!=o&&""!==o&&(t&&(t+=" "),t+="-"==r[0]?r:c$1[r]||(c$1[r]=r.replace(_$1,"-$1").toLowerCase()),t="number"==typeof o&&!1===n.test(r)?t+": "+o+"px;":t+": "+o+";");}return t||void 0}function d$1(e,t){return Array.isArray(t)?t.reduce(d$1,e):null!=t&&!1!==t&&e.push(t),e}function v$1(){this.__d=!0;}function h$1(e,t){return {__v:e,context:t,props:e.props,setState:v$1,forceUpdate:v$1,__d:!0,__h:[]}}function g$2(e,t){var r=e.contextType,n=r&&t[r.__c];return null!=r?n?n.props.value:r.__:t}var y$1=[];function m$1(r,n,a,c,_,v){if(null==r||"boolean"==typeof r)return "";if("object"!=typeof r)return "function"==typeof r?"":s$1(r);var b=a.pretty,x=b&&"string"==typeof b?b:"\t";if(Array.isArray(r)){for(var k="",S=0;S<r.length;S++)b&&S>0&&(k+="\n"),k+=m$1(r[S],n,a,c,_,v);return k}if(void 0!==r.constructor)return "";var w,C=r.type,O=r.props,j=!1;if("function"==typeof C){if(j=!0,!a.shallow||!c&&!1!==a.renderRootComponent){if(C===p$2){var A=[];return d$1(A,r.props.children),m$1(A,n,a,!1!==a.shallowHighOrder,_,v)}var F,H=r.__c=h$1(r,n);l$2.__b&&l$2.__b(r);var M=l$2.__r;if(C.prototype&&"function"==typeof C.prototype.render){var L=g$2(C,n);(H=r.__c=new C(O,L)).__v=r,H._dirty=H.__d=!0,H.props=O,null==H.state&&(H.state={}),null==H._nextState&&null==H.__s&&(H._nextState=H.__s=H.state),H.context=L,C.getDerivedStateFromProps?H.state=Object.assign({},H.state,C.getDerivedStateFromProps(H.props,H.state)):H.componentWillMount&&(H.componentWillMount(),H.state=H._nextState!==H.state?H._nextState:H.__s!==H.state?H.__s:H.state),M&&M(r),F=H.render(H.props,H.state,H.context);}else for(var T=g$2(C,n),E=0;H.__d&&E++<25;)H.__d=!1,M&&M(r),F=C.call(r.__c,O,T);return H.getChildContext&&(n=Object.assign({},n,H.getChildContext())),l$2.diffed&&l$2.diffed(r),m$1(F,n,a,!1!==a.shallowHighOrder,_,v)}C=(w=C).displayName||w!==Function&&w.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=y$1.length;n--;)if(y$1[n]===e){r=n;break}r<0&&(r=y$1.push(e)-1),t="UnnamedComponent"+r;}return t}(w);}var $,D,N="<"+C;if(O){var P=Object.keys(O);a&&!0===a.sortAttributes&&P.sort();for(var W=0;W<P.length;W++){var I=P[W],R=O[I];if("children"!==I){if(!i$1.test(I)&&(a&&a.allAttributes||"key"!==I&&"ref"!==I&&"__self"!==I&&"__source"!==I)){if("defaultValue"===I)I="value";else if("defaultChecked"===I)I="checked";else if("defaultSelected"===I)I="selected";else if("className"===I){if(void 0!==O.class)continue;I="class";}else _&&l$1.test(I)&&(I=I.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===I){if(O.for)continue;I="for";}"style"===I&&R&&"object"==typeof R&&(R=p$1(R)),"a"===I[0]&&"r"===I[1]&&"boolean"==typeof R&&(R=String(R));var U=a.attributeHook&&a.attributeHook(I,R,n,a,j);if(U||""===U)N+=U;else if("dangerouslySetInnerHTML"===I)D=R&&R.__html;else if("textarea"===C&&"value"===I)$=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=I,a&&a.xml))){N=N+" "+I;continue}if("value"===I){if("select"===C){v=R;continue}"option"===C&&v==R&&void 0===O.selected&&(N+=" selected");}N=N+" "+I+'="'+s$1(R)+'"';}}}else $=R;}}if(b){var V=N.replace(/\n\s*/," ");V===N||~V.indexOf("\n")?b&&~N.indexOf("\n")&&(N+="\n"):N=V;}if(N+=">",i$1.test(C))throw new Error(C+" is not a valid HTML tag name in "+N);var q,z=o$1.test(C)||a.voidElements&&a.voidElements.test(C),Z=[];if(D)b&&u$1(D)&&(D="\n"+x+f$1(D,x)),N+=D;else if(null!=$&&d$1(q=[],$).length){for(var B=b&&~N.indexOf("\n"),G=!1,J=0;J<q.length;J++){var K=q[J];if(null!=K&&!1!==K){var Q=m$1(K,n,a,!0,"svg"===C||"foreignObject"!==C&&_,v);if(b&&!B&&u$1(Q)&&(B=!0),Q)if(b){var X=Q.length>0&&"<"!=Q[0];G&&X?Z[Z.length-1]+=Q:Z.push(Q),G=X;}else Z.push(Q);}}if(b&&B)for(var Y=Z.length;Y--;)Z[Y]="\n"+x+f$1(Z[Y],x);}if(Z.length||D)N+=Z.join("");else if(a&&a.xml)return N.substring(0,N.length-1)+" />";return !z||q||D?(b&&~N.indexOf("\n")&&(N+="\n"),N=N+"</"+C+">"):N=N.replace(/>$/," />"),N}var b$1={shallow:!0};S.render=S;var x$2=function(e,t){return S(e,t,b$1)},k$2=[];function S(n,o,i){o=o||{};var l=l$2.__s;l$2.__s=!0;var a,s=h$2(p$2,null);return s.__k=[n],a=i&&(i.pretty||i.voidElements||i.sortAttributes||i.shallow||i.allAttributes||i.xml||i.attributeHook)?m$1(n,o,i):F$2(n,o,!1,void 0,s),l$2.__c&&l$2.__c(n,k$2),l$2.__s=l,k$2.length=0,a}function w$2(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?h$2(null,null,e):e}function C$1(e,t){return "className"===e?"class":"htmlFor"===e?"for":"defaultValue"===e?"value":"defaultChecked"===e?"checked":"defaultSelected"===e?"selected":t&&l$1.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function O$1(e,t){return "style"===e&&null!=t&&"object"==typeof t?p$1(t):"a"===e[0]&&"r"===e[1]&&"boolean"==typeof t?String(t):t}var j$2=Array.isArray,A$2=Object.assign;function F$2(r,n,l,a,f){if(null==r||!0===r||!1===r||""===r)return "";if("object"!=typeof r)return "function"==typeof r?"":s$1(r);if(j$2(r)){var u="";f.__k=r;for(var c=0;c<r.length;c++)u+=F$2(r[c],n,l,a,f),r[c]=w$2(r[c]);return u}if(void 0!==r.constructor)return "";r.__=f,l$2.__b&&l$2.__b(r);var _=r.type,p=r.props;if("function"==typeof _){var d;if(_===p$2)d=p.children;else {d=_.prototype&&"function"==typeof _.prototype.render?function(e,r){var n=e.type,o=g$2(n,r),i=new n(e.props,o);e.__c=i,i.__v=e,i.__d=!0,i.props=e.props,null==i.state&&(i.state={}),null==i.__s&&(i.__s=i.state),i.context=o,n.getDerivedStateFromProps?i.state=A$2({},i.state,n.getDerivedStateFromProps(i.props,i.state)):i.componentWillMount&&(i.componentWillMount(),i.state=i.__s!==i.state?i.__s:i.state);var l=l$2.__r;return l&&l(e),i.render(i.props,i.state,i.context)}(r,n):function(e,r){var n,o=h$1(e,r),i=g$2(e.type,r);e.__c=o;for(var l=l$2.__r,a=0;o.__d&&a++<25;)o.__d=!1,l&&l(e),n=e.type.call(o,e.props,i);return n}(r,n);var v=r.__c;v.getChildContext&&(n=A$2({},n,v.getChildContext()));}var y=F$2(d=null!=d&&d.type===p$2&&null==d.key?d.props.children:d,n,l,a,r);return l$2.diffed&&l$2.diffed(r),r.__=void 0,l$2.unmount&&l$2.unmount(r),y}var m,b,x="<";if(x+=_,p)for(var k in m=p.children,p){var S=p[k];if(!("key"===k||"ref"===k||"__self"===k||"__source"===k||"children"===k||"className"===k&&"class"in p||"htmlFor"===k&&"for"in p||i$1.test(k)))if(S=O$1(k=C$1(k,l),S),"dangerouslySetInnerHTML"===k)b=S&&S.__html;else if("textarea"===_&&"value"===k)m=S;else if((S||0===S||""===S)&&"function"!=typeof S){if(!0===S||""===S){S=k,x=x+" "+k;continue}if("value"===k){if("select"===_){a=S;continue}"option"!==_||a!=S||"selected"in p||(x+=" selected");}x=x+" "+k+'="'+s$1(S)+'"';}}var H=x;if(x+=">",i$1.test(_))throw new Error(_+" is not a valid HTML tag name in "+x);var M="",L=!1;if(b)M+=b,L=!0;else if("string"==typeof m)M+=s$1(m),L=!0;else if(j$2(m)){r.__k=m;for(var T=0;T<m.length;T++){var E=m[T];if(m[T]=w$2(E),null!=E&&!1!==E){var $=F$2(E,n,"svg"===_||"foreignObject"!==_&&l,a,r);$&&(M+=$,L=!0);}}}else if(null!=m&&!1!==m&&!0!==m){r.__k=[w$2(m)];var D=F$2(m,n,"svg"===_||"foreignObject"!==_&&l,a,r);D&&(M+=D,L=!0);}if(l$2.diffed&&l$2.diffed(r),r.__=void 0,l$2.unmount&&l$2.unmount(r),L)x+=M;else if(o$1.test(_))return H+" />";return x+"</"+_+">"}S.shallowRender=x$2;
-
- var t,r,u,i,o=0,f=[],c=[],e=l$2.__b,a=l$2.__r,v=l$2.diffed,l=l$2.__c,m=l$2.unmount;function d(t,u){l$2.__h&&l$2.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function p(n){return o=1,y(B$1,n)}function y(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$1(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){r.u=!0;var f=r.shouldComponentUpdate;r.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!f||f.call(this,n,t,r))};}return o.__N||o.__}function h(u,i){var o=d(t++,3);!l$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function s(u,i){var o=d(t++,4);!l$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o));}function _(n){return o=5,F$1(function(){return {current:n}},[])}function A$1(n,t,r){o=6,s(function(){return "function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n));}function F$1(n,r){var u=d(t++,7);return z$1(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$1(n,t){return o=8,F$1(function(){return n},t)}function q$1(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x$1(t,r){l$2.useDebugValue&&l$2.useDebugValue(r?r(t):t);}function V$1(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++;}return n.__}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k$1),t.__H.__h.forEach(w$1),t.__H.__h=[];}catch(r){t.__H.__h=[],l$2.__e(r,t.__v);}}l$2.__b=function(n){r=null,e&&e(n);},l$2.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k$1),i.__h.forEach(w$1),i.__h=[])),u=r;},l$2.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$2.requestAnimationFrame||((i=l$2.requestAnimationFrame)||j$1)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},l$2.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$1),t.__h=t.__h.filter(function(n){return !n.__||w$1(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$2.__e(u,t.__v);}}),l&&l(t,r);},l$2.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k$1(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$2.__e(r,u.__v));};var g$1="function"==typeof requestAnimationFrame;function j$1(n){var t,r=function(){clearTimeout(u),g$1&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$1&&(t=requestAnimationFrame(r));}function k$1(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w$1(n){var t=r;n.__c=n.__(),r=t;}function z$1(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$1(n,t){return "function"==typeof t?t(n):t}
-
- function memoize(fn) {
- var cache = {};
- return function (arg) {
- if (cache[arg] === undefined) cache[arg] = fn(arg);
- return cache[arg];
- };
- }
-
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
-
- var index = memoize(function (prop) {
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
- /* o */
- && prop.charCodeAt(1) === 110
- /* n */
- && prop.charCodeAt(2) < 91;
- }
- /* Z+1 */
- );
-
- function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n,t){return n===t&&(0!==n||1/n==1/t)||n!=n&&t!=t}function w(n){this.props=n;}function R(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return !r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C(this.props,n)}function u(e){return this.shouldComponentUpdate=r,h$2(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(w.prototype=new d$2).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var x=l$2.__b;l$2.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x&&x(n);};var N="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function k(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var A=function(n,t){return null==n?null:x$3(x$3(n).map(t))},O={map:A,forEach:A,count:function(n){return n?x$3(n).length:0},only:function(n){var t=x$3(n);if(1!==t.length)throw "Children.only";return t[0]},toArray:x$3},T=l$2.__e;l$2.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r);};var I=l$2.unmount;function L(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)})),n}function U(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null;}function F(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function M(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n;},function(n){u=n;}),u)throw u;if(!r)throw e;return h$2(r,o)}return o.displayName="Lazy",o.__f=!0,o}function V(){this.u=null,this.o=null;}l$2.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),I&&I(n);},(D.prototype=new d$2).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=F(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=U(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate();}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i);},D.prototype.componentWillUnmount=function(){this.t=[];},D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=L(this.__b,r,o.__O=o.__P);}this.__b=null;}var i=e.__a&&h$2(p$2,null,n.fallback);return i&&(i.__h=null),[h$2(p$2,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function P(n){return this.getChildContext=function(){return n.context},n.children}function $(n){var e=this,r=n.i;e.componentWillUnmount=function(){P$1(null,e.l),e.l=null,e.i=null;},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n);},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n);}}),P$1(h$2(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount();}function j(n,e){var r=h$2($,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new d$2).__a=function(n){var t=this,e=F(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u();};e?e(o):o();}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=x$3(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t);});};var z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H="undefined"!=typeof document,Z=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function Y(n,t,e){return null==t.__k&&(t.textContent=""),P$1(n,t),"function"==typeof e&&e(),n?n.__c:null}function q(n,t,e){return S$1(n,t),"function"==typeof e&&e(),n?n.__c:null}d$2.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(d$2.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});}});});var G=l$2.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}l$2.event=function(n){return G&&(n=G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var X,nn={configurable:!0,get:function(){return this.class}},tn=l$2.vnode;l$2.vnode=function(n){var t=n.type,e=n.props,u=e;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in u={},e){var l=e[i];H&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in e&&null==l||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Z(e.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&B.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i="oninputCapture")),u[i]=l);}"select"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=x$3(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),"select"==t&&null!=u.defaultValue&&(u.value=x$3(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;})),n.props=u,e.class!=e.className&&(nn.enumerable="className"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,"className",nn));}n.$$typeof=z,tn&&tn(n);};var en=l$2.__r;l$2.__r=function(n){en&&en(n),X=n.__c;};var rn={ReactCurrentDispatcher:{current:{readContext:function(n){return X.__n[n.__c].props.value}}}};function on(n){return h$2.bind(null,n)}function ln(n){return !!n&&n.$$typeof===z}function cn(n){return ln(n)?q$2.apply(null,arguments):n}function fn(n){return !!n.__k&&(P$1(null,n),!0)}function an(n){return n&&(n.base||1===n.nodeType&&n)||null}var sn=function(n,t){return n(t)},hn=function(n,t){return n(t)},vn=p$2;function dn(n){n();}function pn(n){return n}function mn(){return [!1,dn]}var yn=s;function _n(n,t){var e=t(),r=p({h:{__:e,v:t}}),u=r[0].h,o=r[1];return s(function(){u.__=e,u.v=t,E(u.__,t())||o({h:u});},[n,e,t]),h(function(){return E(u.__,u.v())||o({h:u}),n(function(){E(u.__,u.v())||o({h:u});})},[n]),e}var bn={useState:p,useId:V$1,useReducer:y,useEffect:h,useLayoutEffect:s,useInsertionEffect:yn,useTransition:mn,useDeferredValue:pn,useSyncExternalStore:_n,startTransition:dn,useRef:_,useImperativeHandle:A$1,useMemo:F$1,useCallback:T$1,useContext:q$1,useDebugValue:x$1,version:"17.0.2",Children:O,render:Y,hydrate:q,unmountComponentAtNode:fn,createPortal:j,createElement:h$2,createContext:B$2,createFactory:on,cloneElement:cn,createRef:y$2,Fragment:p$2,isValidElement:ln,findDOMNode:an,Component:d$2,PureComponent:w,memo:R,forwardRef:k,flushSync:hn,unstable_batchedUpdates:sn,StrictMode:vn,Suspense:D,SuspenseList:V,lazy:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:rn};
-
- /**
- * Takes a list of class names and filters for truthy ones, joining them into a single class name for convenience.
- * eg.
- * ```js
- * cx('red', isBig && 'big') // returns 'red big' if `isBig` is true, otherwise returns 'red'
- * ```
- * If space separated atomic styles are provided, they are deduplicated according to the first hashed valued:
- *
- * ```js
- * cx('atm_a_class1 atm_b_class2', 'atm_a_class3') // returns `atm_a_class3 atm_b_class2`
- * ```
- *
- * @returns the combined, space separated class names that can be applied directly to the class attribute
- */
- const cx = function cx() {
- const presentClassNames = Array.prototype.slice // eslint-disable-next-line prefer-rest-params
- .call(arguments).filter(Boolean);
- const atomicClasses = {};
- const nonAtomicClasses = [];
- presentClassNames.forEach(arg => {
- // className could be the output of a previous cx call, so split by ' ' first
- const individualClassNames = arg ? arg.split(' ') : [];
- individualClassNames.forEach(className => {
- if (className.startsWith('atm_')) {
- const [, keyHash] = className.split('_');
- atomicClasses[keyHash] = className;
- } else {
- nonAtomicClasses.push(className);
- }
- });
- });
- const result = []; // eslint-disable-next-line no-restricted-syntax
-
- for (const keyHash in atomicClasses) {
- if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
- result.push(atomicClasses[keyHash]);
- }
- }
-
- result.push(...nonAtomicClasses);
- return result.join(' ');
- };
-
- var cx$1 = cx;
-
- /* eslint-disable @typescript-eslint/no-explicit-any */
-
- const isCapital = ch => ch.toUpperCase() === ch;
-
- const filterKey = keys => key => keys.indexOf(key) === -1;
-
- const omit = (obj, keys) => {
- const res = {};
- Object.keys(obj).filter(filterKey(keys)).forEach(key => {
- res[key] = obj[key];
- });
- return res;
- };
-
- function filterProps(component, props, omitKeys) {
- const filteredProps = omit(props, omitKeys); // Check if it's an HTML tag and not a custom element
-
- if (typeof component === 'string' && component.indexOf('-') === -1 && !isCapital(component[0])) {
- Object.keys(filteredProps).forEach(key => {
- if (!index(key)) {
- // Don't pass through invalid attributes to HTML elements
- delete filteredProps[key];
- }
- });
- }
-
- return filteredProps;
- }
-
- const warnIfInvalid = (value, componentName) => {
- };
-
- function styled(tag) {
- return options => {
-
- const render = (props, ref) => {
- const {
- as: component = tag,
- class: className
- } = props;
- const filteredProps = filterProps(component, props, ['as', 'class']);
- filteredProps.ref = ref;
- filteredProps.className = options.atomic ? cx$1(options.class, filteredProps.className || className) : cx$1(filteredProps.className || className, options.class);
- const {
- vars
- } = options;
-
- if (vars) {
- const style = {}; // eslint-disable-next-line guard-for-in,no-restricted-syntax
-
- for (const name in vars) {
- const variable = vars[name];
- const result = variable[0];
- const unit = variable[1] || '';
- const value = typeof result === 'function' ? result(props) : result;
- warnIfInvalid(value, options.name);
- style[`--${name}`] = `${value}${unit}`;
- }
-
- const ownStyle = filteredProps.style || {};
- const keys = Object.keys(ownStyle);
-
- if (keys.length > 0) {
- keys.forEach(key => {
- style[key] = ownStyle[key];
- });
- }
-
- filteredProps.style = style;
- }
-
- if (tag.__linaria && tag !== component) {
- // If the underlying tag is a styled component, forward the `as` prop
- // Otherwise the styles from the underlying component will be ignored
- filteredProps.as = component;
- return /*#__PURE__*/bn.createElement(tag, filteredProps);
- }
-
- return /*#__PURE__*/bn.createElement(component, filteredProps);
- };
-
- const Result = bn.forwardRef ? /*#__PURE__*/bn.forwardRef(render) : // React.forwardRef won't available on older React versions and in Preact
- // Fallback to a innerRef prop in that case
- props => {
- const rest = omit(props, ['innerRef']);
- return render(rest, props.innerRef);
- };
- Result.displayName = options.name; // These properties will be read by the babel plugin for interpolation
-
- Result.__linaria = {
- className: options.class,
- extends: tag
- };
- return Result;
- };
- }
-
- var styled$1 = styled;
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- const QRPlaceholder = /*#__PURE__*/styled$1('div')({
- name: "QRPlaceholder",
- class: "q1ma0zxq"
- });
- const FooterBar = /*#__PURE__*/styled$1('footer')({
- name: "FooterBar",
- class: "fef0x5t"
- });
- const Page = /*#__PURE__*/styled$1('div')({
- name: "Page",
- class: "p1b3vqup"
- });
- const WalletLink = /*#__PURE__*/styled$1('a')({
- name: "WalletLink",
- class: "wpwjmk",
- vars: {
- "wpwjmk-0": [({
- upperCased
- }) => upperCased ? 'uppercase' : 'none']
- }
- });
- const InfoBox = /*#__PURE__*/styled$1('div')({
- name: "InfoBox",
- class: "i1pkgksb"
- });
- const TableExpanded = /*#__PURE__*/styled$1('dl')({
- name: "TableExpanded",
- class: "t2c81u8"
- });
- const TableSimple = /*#__PURE__*/styled$1('dl')({
- name: "TableSimple",
- class: "t1mav7fx"
- });
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- function Footer() {
- return (h$2(FooterBar, null,
- h$2("p", null,
- h$2("a", { href: "https://taler.net/" }, "Learn more about GNU Taler on our website."),
- h$2("p", null, "Copyright \u00A9 2014\u20142021 Taler Systems SA"))));
- }
-
- function toInteger(dirtyNumber) {
- if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
- return NaN;
- }
-
- var number = Number(dirtyNumber);
-
- if (isNaN(number)) {
- return number;
- }
-
- return number < 0 ? Math.ceil(number) : Math.floor(number);
- }
-
- function requiredArgs(required, args) {
- if (args.length < required) {
- throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
- }
- }
-
- function _typeof$2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$2 = function _typeof(obj) { return typeof obj; }; } else { _typeof$2 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$2(obj); }
- /**
- * @name toDate
- * @category Common Helpers
- * @summary Convert the given argument to an instance of Date.
- *
- * @description
- * Convert the given argument to an instance of Date.
- *
- * If the argument is an instance of Date, the function returns its clone.
- *
- * If the argument is a number, it is treated as a timestamp.
- *
- * If the argument is none of the above, the function returns Invalid Date.
- *
- * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
- *
- * @param {Date|Number} argument - the value to convert
- * @returns {Date} the parsed date in the local time zone
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // Clone the date:
- * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
- * //=> Tue Feb 11 2014 11:30:30
- *
- * @example
- * // Convert the timestamp to date:
- * const result = toDate(1392098430000)
- * //=> Tue Feb 11 2014 11:30:30
- */
-
- function toDate(argument) {
- requiredArgs(1, arguments);
- var argStr = Object.prototype.toString.call(argument); // Clone the date
-
- if (argument instanceof Date || _typeof$2(argument) === 'object' && argStr === '[object Date]') {
- // Prevent the date to lose the milliseconds when passed to new Date() in IE10
- return new Date(argument.getTime());
- } else if (typeof argument === 'number' || argStr === '[object Number]') {
- return new Date(argument);
- } else {
- if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
- // eslint-disable-next-line no-console
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console
-
- console.warn(new Error().stack);
- }
-
- return new Date(NaN);
- }
- }
-
- /**
- * @name addDays
- * @category Day Helpers
- * @summary Add the specified number of days to the given date.
- *
- * @description
- * Add the specified number of days to the given date.
- *
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} - the new date with the days added
- * @throws {TypeError} - 2 arguments required
- *
- * @example
- * // Add 10 days to 1 September 2014:
- * const result = addDays(new Date(2014, 8, 1), 10)
- * //=> Thu Sep 11 2014 00:00:00
- */
-
- function addDays(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var date = toDate(dirtyDate);
- var amount = toInteger(dirtyAmount);
-
- if (isNaN(amount)) {
- return new Date(NaN);
- }
-
- if (!amount) {
- // If 0 days, no-op to avoid changing times in the hour before end of DST
- return date;
- }
-
- date.setDate(date.getDate() + amount);
- return date;
- }
-
- /**
- * @name addMonths
- * @category Month Helpers
- * @summary Add the specified number of months to the given date.
- *
- * @description
- * Add the specified number of months to the given date.
- *
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the months added
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // Add 5 months to 1 September 2014:
- * const result = addMonths(new Date(2014, 8, 1), 5)
- * //=> Sun Feb 01 2015 00:00:00
- */
-
- function addMonths(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var date = toDate(dirtyDate);
- var amount = toInteger(dirtyAmount);
-
- if (isNaN(amount)) {
- return new Date(NaN);
- }
-
- if (!amount) {
- // If 0 months, no-op to avoid changing times in the hour before end of DST
- return date;
- }
-
- var dayOfMonth = date.getDate(); // The JS Date object supports date math by accepting out-of-bounds values for
- // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and
- // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we
- // want except that dates will wrap around the end of a month, meaning that
- // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So
- // we'll default to the end of the desired month by adding 1 to the desired
- // month and using a date of 0 to back up one day to the end of the desired
- // month.
-
- var endOfDesiredMonth = new Date(date.getTime());
- endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0);
- var daysInMonth = endOfDesiredMonth.getDate();
-
- if (dayOfMonth >= daysInMonth) {
- // If we're already at the end of the month, then this is the correct date
- // and we're done.
- return endOfDesiredMonth;
- } else {
- // Otherwise, we now know that setting the original day-of-month value won't
- // cause an overflow, so set the desired day-of-month. Note that we can't
- // just set the date of `endOfDesiredMonth` because that object may have had
- // its time changed in the unusual case where where a DST transition was on
- // the last day of the month and its local time was in the hour skipped or
- // repeated next to a DST transition. So we use `date` instead which is
- // guaranteed to still have the original time.
- date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);
- return date;
- }
- }
-
- function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
-
- /**
- * @name add
- * @category Common Helpers
- * @summary Add the specified years, months, weeks, days, hours, minutes and seconds to the given date.
- *
- * @description
- * Add the specified years, months, weeks, days, hours, minutes and seconds to the given date.
- *
- * @param {Date|Number} date - the date to be changed
- * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- *
- * | Key | Description |
- * |----------------|------------------------------------|
- * | years | Amount of years to be added |
- * | months | Amount of months to be added |
- * | weeks | Amount of weeks to be added |
- * | days | Amount of days to be added |
- * | hours | Amount of hours to be added |
- * | minutes | Amount of minutes to be added |
- * | seconds | Amount of seconds to be added |
- *
- * All values default to 0
- *
- * @returns {Date} the new date with the seconds added
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // Add the following duration to 1 September 2014, 10:19:50
- * const result = add(new Date(2014, 8, 1, 10, 19, 50), {
- * years: 2,
- * months: 9,
- * weeks: 1,
- * days: 7,
- * hours: 5,
- * minutes: 9,
- * seconds: 30,
- * })
- * //=> Thu Jun 15 2017 15:29:20
- */
- function add(dirtyDate, duration) {
- requiredArgs(2, arguments);
- if (!duration || _typeof$1(duration) !== 'object') return new Date(NaN);
- var years = duration.years ? toInteger(duration.years) : 0;
- var months = duration.months ? toInteger(duration.months) : 0;
- var weeks = duration.weeks ? toInteger(duration.weeks) : 0;
- var days = duration.days ? toInteger(duration.days) : 0;
- var hours = duration.hours ? toInteger(duration.hours) : 0;
- var minutes = duration.minutes ? toInteger(duration.minutes) : 0;
- var seconds = duration.seconds ? toInteger(duration.seconds) : 0; // Add years and months
-
- var date = toDate(dirtyDate);
- var dateWithMonths = months || years ? addMonths(date, months + years * 12) : date; // Add weeks and days
-
- var dateWithDays = days || weeks ? addDays(dateWithMonths, days + weeks * 7) : dateWithMonths; // Add days, hours, minutes and seconds
-
- var minutesToAdd = minutes + hours * 60;
- var secondsToAdd = seconds + minutesToAdd * 60;
- var msToAdd = secondsToAdd * 1000;
- var finalDate = new Date(dateWithDays.getTime() + msToAdd);
- return finalDate;
- }
-
- /**
- * @name addMilliseconds
- * @category Millisecond Helpers
- * @summary Add the specified number of milliseconds to the given date.
- *
- * @description
- * Add the specified number of milliseconds to the given date.
- *
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the milliseconds added
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // Add 750 milliseconds to 10 July 2014 12:45:30.000:
- * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
- * //=> Thu Jul 10 2014 12:45:30.750
- */
-
- function addMilliseconds(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var timestamp = toDate(dirtyDate).getTime();
- var amount = toInteger(dirtyAmount);
- return new Date(timestamp + amount);
- }
-
- var defaultOptions = {};
- function getDefaultOptions() {
- return defaultOptions;
- }
-
- /**
- * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
- * They usually appear for dates that denote time before the timezones were introduced
- * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
- * and GMT+01:00:00 after that date)
- *
- * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
- * which would lead to incorrect calculations.
- *
- * This function returns the timezone offset in milliseconds that takes seconds in account.
- */
- function getTimezoneOffsetInMilliseconds(date) {
- var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
- utcDate.setUTCFullYear(date.getFullYear());
- return date.getTime() - utcDate.getTime();
- }
-
- /**
- * @name startOfDay
- * @category Day Helpers
- * @summary Return the start of a day for the given date.
- *
- * @description
- * Return the start of a day for the given date.
- * The result will be in the local timezone.
- *
- * @param {Date|Number} date - the original date
- * @returns {Date} the start of a day
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // The start of a day for 2 September 2014 11:55:00:
- * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
- * //=> Tue Sep 02 2014 00:00:00
- */
-
- function startOfDay(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- date.setHours(0, 0, 0, 0);
- return date;
- }
-
- var MILLISECONDS_IN_DAY$1 = 86400000;
- /**
- * @name differenceInCalendarDays
- * @category Day Helpers
- * @summary Get the number of calendar days between the given dates.
- *
- * @description
- * Get the number of calendar days between the given dates. This means that the times are removed
- * from the dates and then the difference in days is calculated.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of calendar days
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many calendar days are between
- * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
- * const result = differenceInCalendarDays(
- * new Date(2012, 6, 2, 0, 0),
- * new Date(2011, 6, 2, 23, 0)
- * )
- * //=> 366
- * // How many calendar days are between
- * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
- * const result = differenceInCalendarDays(
- * new Date(2011, 6, 3, 0, 1),
- * new Date(2011, 6, 2, 23, 59)
- * )
- * //=> 1
- */
-
- function differenceInCalendarDays(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var startOfDayLeft = startOfDay(dirtyDateLeft);
- var startOfDayRight = startOfDay(dirtyDateRight);
- var timestampLeft = startOfDayLeft.getTime() - getTimezoneOffsetInMilliseconds(startOfDayLeft);
- var timestampRight = startOfDayRight.getTime() - getTimezoneOffsetInMilliseconds(startOfDayRight); // Round the number of days to the nearest integer
- // because the number of milliseconds in a day is not constant
- // (e.g. it's different in the day of the daylight saving time clock shift)
-
- return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY$1);
- }
-
- /**
- * @name compareAsc
- * @category Common Helpers
- * @summary Compare the two dates and return -1, 0 or 1.
- *
- * @description
- * Compare the two dates and return 1 if the first date is after the second,
- * -1 if the first date is before the second or 0 if dates are equal.
- *
- * @param {Date|Number} dateLeft - the first date to compare
- * @param {Date|Number} dateRight - the second date to compare
- * @returns {Number} the result of the comparison
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // Compare 11 February 1987 and 10 July 1989:
- * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))
- * //=> -1
- *
- * @example
- * // Sort the array of dates:
- * const result = [
- * new Date(1995, 6, 2),
- * new Date(1987, 1, 11),
- * new Date(1989, 6, 10)
- * ].sort(compareAsc)
- * //=> [
- * // Wed Feb 11 1987 00:00:00,
- * // Mon Jul 10 1989 00:00:00,
- * // Sun Jul 02 1995 00:00:00
- * // ]
- */
-
- function compareAsc(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var dateLeft = toDate(dirtyDateLeft);
- var dateRight = toDate(dirtyDateRight);
- var diff = dateLeft.getTime() - dateRight.getTime();
-
- if (diff < 0) {
- return -1;
- } else if (diff > 0) {
- return 1; // Return 0 if diff is 0; return NaN if diff is NaN
- } else {
- return diff;
- }
- }
-
- /**
- * Days in 1 week.
- *
- * @name daysInWeek
- * @constant
- * @type {number}
- * @default
- */
- /**
- * Milliseconds in 1 minute
- *
- * @name millisecondsInMinute
- * @constant
- * @type {number}
- * @default
- */
-
- var millisecondsInMinute = 60000;
- /**
- * Milliseconds in 1 hour
- *
- * @name millisecondsInHour
- * @constant
- * @type {number}
- * @default
- */
-
- var millisecondsInHour = 3600000;
-
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
- /**
- * @name isDate
- * @category Common Helpers
- * @summary Is the given value a date?
- *
- * @description
- * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
- *
- * @param {*} value - the value to check
- * @returns {boolean} true if the given value is a date
- * @throws {TypeError} 1 arguments required
- *
- * @example
- * // For a valid date:
- * const result = isDate(new Date())
- * //=> true
- *
- * @example
- * // For an invalid date:
- * const result = isDate(new Date(NaN))
- * //=> true
- *
- * @example
- * // For some value:
- * const result = isDate('2014-02-31')
- * //=> false
- *
- * @example
- * // For an object:
- * const result = isDate({})
- * //=> false
- */
-
- function isDate(value) {
- requiredArgs(1, arguments);
- return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
- }
-
- /**
- * @name isValid
- * @category Common Helpers
- * @summary Is the given date valid?
- *
- * @description
- * Returns false if argument is Invalid Date and true otherwise.
- * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
- * Invalid Date is a Date, whose time value is NaN.
- *
- * Time value of Date: http://es5.github.io/#x15.9.1.1
- *
- * @param {*} date - the date to check
- * @returns {Boolean} the date is valid
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // For the valid date:
- * const result = isValid(new Date(2014, 1, 31))
- * //=> true
- *
- * @example
- * // For the value, convertable into a date:
- * const result = isValid(1393804800000)
- * //=> true
- *
- * @example
- * // For the invalid date:
- * const result = isValid(new Date(''))
- * //=> false
- */
-
- function isValid(dirtyDate) {
- requiredArgs(1, arguments);
-
- if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
- return false;
- }
-
- var date = toDate(dirtyDate);
- return !isNaN(Number(date));
- }
-
- /**
- * @name differenceInCalendarMonths
- * @category Month Helpers
- * @summary Get the number of calendar months between the given dates.
- *
- * @description
- * Get the number of calendar months between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of calendar months
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many calendar months are between 31 January 2014 and 1 September 2014?
- * const result = differenceInCalendarMonths(
- * new Date(2014, 8, 1),
- * new Date(2014, 0, 31)
- * )
- * //=> 8
- */
-
- function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var dateLeft = toDate(dirtyDateLeft);
- var dateRight = toDate(dirtyDateRight);
- var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();
- var monthDiff = dateLeft.getMonth() - dateRight.getMonth();
- return yearDiff * 12 + monthDiff;
- }
-
- /**
- * @name differenceInCalendarYears
- * @category Year Helpers
- * @summary Get the number of calendar years between the given dates.
- *
- * @description
- * Get the number of calendar years between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of calendar years
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many calendar years are between 31 December 2013 and 11 February 2015?
- * const result = differenceInCalendarYears(
- * new Date(2015, 1, 11),
- * new Date(2013, 11, 31)
- * )
- * //=> 2
- */
-
- function differenceInCalendarYears(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var dateLeft = toDate(dirtyDateLeft);
- var dateRight = toDate(dirtyDateRight);
- return dateLeft.getFullYear() - dateRight.getFullYear();
- }
-
- // for accurate equality comparisons of UTC timestamps that end up
- // having the same representation in local time, e.g. one hour before
- // DST ends vs. the instant that DST ends.
-
- function compareLocalAsc(dateLeft, dateRight) {
- var diff = dateLeft.getFullYear() - dateRight.getFullYear() || dateLeft.getMonth() - dateRight.getMonth() || dateLeft.getDate() - dateRight.getDate() || dateLeft.getHours() - dateRight.getHours() || dateLeft.getMinutes() - dateRight.getMinutes() || dateLeft.getSeconds() - dateRight.getSeconds() || dateLeft.getMilliseconds() - dateRight.getMilliseconds();
-
- if (diff < 0) {
- return -1;
- } else if (diff > 0) {
- return 1; // Return 0 if diff is 0; return NaN if diff is NaN
- } else {
- return diff;
- }
- }
- /**
- * @name differenceInDays
- * @category Day Helpers
- * @summary Get the number of full days between the given dates.
- *
- * @description
- * Get the number of full day periods between two dates. Fractional days are
- * truncated towards zero.
- *
- * One "full day" is the distance between a local time in one day to the same
- * local time on the next or previous day. A full day can sometimes be less than
- * or more than 24 hours if a daylight savings change happens between two dates.
- *
- * To ignore DST and only measure exact 24-hour periods, use this instead:
- * `Math.floor(differenceInHours(dateLeft, dateRight)/24)|0`.
- *
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of full days according to the local timezone
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many full days are between
- * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
- * const result = differenceInDays(
- * new Date(2012, 6, 2, 0, 0),
- * new Date(2011, 6, 2, 23, 0)
- * )
- * //=> 365
- * // How many full days are between
- * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
- * const result = differenceInDays(
- * new Date(2011, 6, 3, 0, 1),
- * new Date(2011, 6, 2, 23, 59)
- * )
- * //=> 0
- * // How many full days are between
- * // 1 March 2020 0:00 and 1 June 2020 0:00 ?
- * // Note: because local time is used, the
- * // result will always be 92 days, even in
- * // time zones where DST starts and the
- * // period has only 92*24-1 hours.
- * const result = differenceInDays(
- * new Date(2020, 5, 1),
- * new Date(2020, 2, 1)
- * )
- //=> 92
- */
-
-
- function differenceInDays(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var dateLeft = toDate(dirtyDateLeft);
- var dateRight = toDate(dirtyDateRight);
- var sign = compareLocalAsc(dateLeft, dateRight);
- var difference = Math.abs(differenceInCalendarDays(dateLeft, dateRight));
- dateLeft.setDate(dateLeft.getDate() - sign * difference); // Math.abs(diff in full days - diff in calendar days) === 1 if last calendar day is not full
- // If so, result must be decreased by 1 in absolute value
-
- var isLastDayNotFull = Number(compareLocalAsc(dateLeft, dateRight) === -sign);
- var result = sign * (difference - isLastDayNotFull); // Prevent negative zero
-
- return result === 0 ? 0 : result;
- }
-
- /**
- * @name differenceInMilliseconds
- * @category Millisecond Helpers
- * @summary Get the number of milliseconds between the given dates.
- *
- * @description
- * Get the number of milliseconds between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of milliseconds
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many milliseconds are between
- * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?
- * const result = differenceInMilliseconds(
- * new Date(2014, 6, 2, 12, 30, 21, 700),
- * new Date(2014, 6, 2, 12, 30, 20, 600)
- * )
- * //=> 1100
- */
-
- function differenceInMilliseconds(dateLeft, dateRight) {
- requiredArgs(2, arguments);
- return toDate(dateLeft).getTime() - toDate(dateRight).getTime();
- }
-
- var roundingMap = {
- ceil: Math.ceil,
- round: Math.round,
- floor: Math.floor,
- trunc: function trunc(value) {
- return value < 0 ? Math.ceil(value) : Math.floor(value);
- } // Math.trunc is not supported by IE
-
- };
- var defaultRoundingMethod = 'trunc';
- function getRoundingMethod(method) {
- return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];
- }
-
- /**
- * @name differenceInHours
- * @category Hour Helpers
- * @summary Get the number of hours between the given dates.
- *
- * @description
- * Get the number of hours between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @param {Object} [options] - an object with options.
- * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)
- * @returns {Number} the number of hours
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00?
- * const result = differenceInHours(
- * new Date(2014, 6, 2, 19, 0),
- * new Date(2014, 6, 2, 6, 50)
- * )
- * //=> 12
- */
-
- function differenceInHours(dateLeft, dateRight, options) {
- requiredArgs(2, arguments);
- var diff = differenceInMilliseconds(dateLeft, dateRight) / millisecondsInHour;
- return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
- }
-
- /**
- * @name differenceInMinutes
- * @category Minute Helpers
- * @summary Get the number of minutes between the given dates.
- *
- * @description
- * Get the signed number of full (rounded towards 0) minutes between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @param {Object} [options] - an object with options.
- * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)
- * @returns {Number} the number of minutes
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00?
- * const result = differenceInMinutes(
- * new Date(2014, 6, 2, 12, 20, 0),
- * new Date(2014, 6, 2, 12, 7, 59)
- * )
- * //=> 12
- *
- * @example
- * // How many minutes are between 10:01:59 and 10:00:00
- * const result = differenceInMinutes(
- * new Date(2000, 0, 1, 10, 0, 0),
- * new Date(2000, 0, 1, 10, 1, 59)
- * )
- * //=> -1
- */
-
- function differenceInMinutes(dateLeft, dateRight, options) {
- requiredArgs(2, arguments);
- var diff = differenceInMilliseconds(dateLeft, dateRight) / millisecondsInMinute;
- return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
- }
-
- /**
- * @name endOfDay
- * @category Day Helpers
- * @summary Return the end of a day for the given date.
- *
- * @description
- * Return the end of a day for the given date.
- * The result will be in the local timezone.
- *
- * @param {Date|Number} date - the original date
- * @returns {Date} the end of a day
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // The end of a day for 2 September 2014 11:55:00:
- * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))
- * //=> Tue Sep 02 2014 23:59:59.999
- */
-
- function endOfDay(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- date.setHours(23, 59, 59, 999);
- return date;
- }
-
- /**
- * @name endOfMonth
- * @category Month Helpers
- * @summary Return the end of a month for the given date.
- *
- * @description
- * Return the end of a month for the given date.
- * The result will be in the local timezone.
- *
- * @param {Date|Number} date - the original date
- * @returns {Date} the end of a month
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // The end of a month for 2 September 2014 11:55:00:
- * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
- * //=> Tue Sep 30 2014 23:59:59.999
- */
-
- function endOfMonth(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var month = date.getMonth();
- date.setFullYear(date.getFullYear(), month + 1, 0);
- date.setHours(23, 59, 59, 999);
- return date;
- }
-
- /**
- * @name isLastDayOfMonth
- * @category Month Helpers
- * @summary Is the given date the last day of a month?
- *
- * @description
- * Is the given date the last day of a month?
- *
- * @param {Date|Number} date - the date to check
- * @returns {Boolean} the date is the last day of a month
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // Is 28 February 2014 the last day of a month?
- * const result = isLastDayOfMonth(new Date(2014, 1, 28))
- * //=> true
- */
-
- function isLastDayOfMonth(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- return endOfDay(date).getTime() === endOfMonth(date).getTime();
- }
-
- /**
- * @name differenceInMonths
- * @category Month Helpers
- * @summary Get the number of full months between the given dates.
- *
- * @description
- * Get the number of full months between the given dates using trunc as a default rounding method.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of full months
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many full months are between 31 January 2014 and 1 September 2014?
- * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))
- * //=> 7
- */
-
- function differenceInMonths(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var dateLeft = toDate(dirtyDateLeft);
- var dateRight = toDate(dirtyDateRight);
- var sign = compareAsc(dateLeft, dateRight);
- var difference = Math.abs(differenceInCalendarMonths(dateLeft, dateRight));
- var result; // Check for the difference of less than month
-
- if (difference < 1) {
- result = 0;
- } else {
- if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) {
- // This will check if the date is end of Feb and assign a higher end of month date
- // to compare it with Jan
- dateLeft.setDate(30);
- }
-
- dateLeft.setMonth(dateLeft.getMonth() - sign * difference); // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full
- // If so, result must be decreased by 1 in absolute value
-
- var isLastMonthNotFull = compareAsc(dateLeft, dateRight) === -sign; // Check for cases of one full calendar month
-
- if (isLastDayOfMonth(toDate(dirtyDateLeft)) && difference === 1 && compareAsc(dirtyDateLeft, dateRight) === 1) {
- isLastMonthNotFull = false;
- }
-
- result = sign * (difference - Number(isLastMonthNotFull));
- } // Prevent negative zero
-
-
- return result === 0 ? 0 : result;
- }
-
- /**
- * @name differenceInSeconds
- * @category Second Helpers
- * @summary Get the number of seconds between the given dates.
- *
- * @description
- * Get the number of seconds between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @param {Object} [options] - an object with options.
- * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)
- * @returns {Number} the number of seconds
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many seconds are between
- * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?
- * const result = differenceInSeconds(
- * new Date(2014, 6, 2, 12, 30, 20, 0),
- * new Date(2014, 6, 2, 12, 30, 7, 999)
- * )
- * //=> 12
- */
-
- function differenceInSeconds(dateLeft, dateRight, options) {
- requiredArgs(2, arguments);
- var diff = differenceInMilliseconds(dateLeft, dateRight) / 1000;
- return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
- }
-
- /**
- * @name differenceInYears
- * @category Year Helpers
- * @summary Get the number of full years between the given dates.
- *
- * @description
- * Get the number of full years between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of full years
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many full years are between 31 December 2013 and 11 February 2015?
- * const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31))
- * //=> 1
- */
-
- function differenceInYears(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var dateLeft = toDate(dirtyDateLeft);
- var dateRight = toDate(dirtyDateRight);
- var sign = compareAsc(dateLeft, dateRight);
- var difference = Math.abs(differenceInCalendarYears(dateLeft, dateRight)); // Set both dates to a valid leap year for accurate comparison when dealing
- // with leap days
-
- dateLeft.setFullYear(1584);
- dateRight.setFullYear(1584); // Math.abs(diff in full years - diff in calendar years) === 1 if last calendar year is not full
- // If so, result must be decreased by 1 in absolute value
-
- var isLastYearNotFull = compareAsc(dateLeft, dateRight) === -sign;
- var result = sign * (difference - Number(isLastYearNotFull)); // Prevent negative zero
-
- return result === 0 ? 0 : result;
- }
-
- /**
- * @name subMilliseconds
- * @category Millisecond Helpers
- * @summary Subtract the specified number of milliseconds from the given date.
- *
- * @description
- * Subtract the specified number of milliseconds from the given date.
- *
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the milliseconds subtracted
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
- * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
- * //=> Thu Jul 10 2014 12:45:29.250
- */
-
- function subMilliseconds(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var amount = toInteger(dirtyAmount);
- return addMilliseconds(dirtyDate, -amount);
- }
-
- var MILLISECONDS_IN_DAY = 86400000;
- function getUTCDayOfYear(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var timestamp = date.getTime();
- date.setUTCMonth(0, 1);
- date.setUTCHours(0, 0, 0, 0);
- var startOfYearTimestamp = date.getTime();
- var difference = timestamp - startOfYearTimestamp;
- return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
- }
-
- function startOfUTCISOWeek(dirtyDate) {
- requiredArgs(1, arguments);
- var weekStartsOn = 1;
- var date = toDate(dirtyDate);
- var day = date.getUTCDay();
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
- date.setUTCDate(date.getUTCDate() - diff);
- date.setUTCHours(0, 0, 0, 0);
- return date;
- }
-
- function getUTCISOWeekYear(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var year = date.getUTCFullYear();
- var fourthOfJanuaryOfNextYear = new Date(0);
- fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
- fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
- var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);
- var fourthOfJanuaryOfThisYear = new Date(0);
- fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
- fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
- var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
-
- if (date.getTime() >= startOfNextYear.getTime()) {
- return year + 1;
- } else if (date.getTime() >= startOfThisYear.getTime()) {
- return year;
- } else {
- return year - 1;
- }
- }
-
- function startOfUTCISOWeekYear(dirtyDate) {
- requiredArgs(1, arguments);
- var year = getUTCISOWeekYear(dirtyDate);
- var fourthOfJanuary = new Date(0);
- fourthOfJanuary.setUTCFullYear(year, 0, 4);
- fourthOfJanuary.setUTCHours(0, 0, 0, 0);
- var date = startOfUTCISOWeek(fourthOfJanuary);
- return date;
- }
-
- var MILLISECONDS_IN_WEEK$1 = 604800000;
- function getUTCISOWeek(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer
- // because the number of milliseconds in a week is not constant
- // (e.g. it's different in the week of the daylight saving time clock shift)
-
- return Math.round(diff / MILLISECONDS_IN_WEEK$1) + 1;
- }
-
- function startOfUTCWeek(dirtyDate, options) {
- var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
-
- requiredArgs(1, arguments);
- var defaultOptions = getDefaultOptions();
- var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
-
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- }
-
- var date = toDate(dirtyDate);
- var day = date.getUTCDay();
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
- date.setUTCDate(date.getUTCDate() - diff);
- date.setUTCHours(0, 0, 0, 0);
- return date;
- }
-
- function getUTCWeekYear(dirtyDate, options) {
- var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
-
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var year = date.getUTCFullYear();
- var defaultOptions = getDefaultOptions();
- var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
-
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
- }
-
- var firstWeekOfNextYear = new Date(0);
- firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
- firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
- var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);
- var firstWeekOfThisYear = new Date(0);
- firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
- firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
- var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
-
- if (date.getTime() >= startOfNextYear.getTime()) {
- return year + 1;
- } else if (date.getTime() >= startOfThisYear.getTime()) {
- return year;
- } else {
- return year - 1;
- }
- }
-
- function startOfUTCWeekYear(dirtyDate, options) {
- var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
-
- requiredArgs(1, arguments);
- var defaultOptions = getDefaultOptions();
- var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
- var year = getUTCWeekYear(dirtyDate, options);
- var firstWeek = new Date(0);
- firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
- firstWeek.setUTCHours(0, 0, 0, 0);
- var date = startOfUTCWeek(firstWeek, options);
- return date;
- }
-
- var MILLISECONDS_IN_WEEK = 604800000;
- function getUTCWeek(dirtyDate, options) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer
- // because the number of milliseconds in a week is not constant
- // (e.g. it's different in the week of the daylight saving time clock shift)
-
- return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
- }
-
- function addLeadingZeros(number, targetLength) {
- var sign = number < 0 ? '-' : '';
- var output = Math.abs(number).toString();
-
- while (output.length < targetLength) {
- output = '0' + output;
- }
-
- return sign + output;
- }
-
- /*
- * | | Unit | | Unit |
- * |-----|--------------------------------|-----|--------------------------------|
- * | a | AM, PM | A* | |
- * | d | Day of month | D | |
- * | h | Hour [1-12] | H | Hour [0-23] |
- * | m | Minute | M | Month |
- * | s | Second | S | Fraction of second |
- * | y | Year (abs) | Y | |
- *
- * Letters marked by * are not implemented but reserved by Unicode standard.
- */
-
- var formatters$2 = {
- // Year
- y: function y(date, token) {
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
- // | Year | y | yy | yyy | yyyy | yyyyy |
- // |----------|-------|----|-------|-------|-------|
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
-
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
- return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
- },
- // Month
- M: function M(date, token) {
- var month = date.getUTCMonth();
- return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
- },
- // Day of the month
- d: function d(date, token) {
- return addLeadingZeros(date.getUTCDate(), token.length);
- },
- // AM or PM
- a: function a(date, token) {
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
-
- switch (token) {
- case 'a':
- case 'aa':
- return dayPeriodEnumValue.toUpperCase();
-
- case 'aaa':
- return dayPeriodEnumValue;
-
- case 'aaaaa':
- return dayPeriodEnumValue[0];
-
- case 'aaaa':
- default:
- return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
- }
- },
- // Hour [1-12]
- h: function h(date, token) {
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
- },
- // Hour [0-23]
- H: function H(date, token) {
- return addLeadingZeros(date.getUTCHours(), token.length);
- },
- // Minute
- m: function m(date, token) {
- return addLeadingZeros(date.getUTCMinutes(), token.length);
- },
- // Second
- s: function s(date, token) {
- return addLeadingZeros(date.getUTCSeconds(), token.length);
- },
- // Fraction of second
- S: function S(date, token) {
- var numberOfDigits = token.length;
- var milliseconds = date.getUTCMilliseconds();
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
- return addLeadingZeros(fractionalSeconds, token.length);
- }
- };
- var formatters$3 = formatters$2;
-
- var dayPeriodEnum = {
- am: 'am',
- pm: 'pm',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- };
-
- /*
- * | | Unit | | Unit |
- * |-----|--------------------------------|-----|--------------------------------|
- * | a | AM, PM | A* | Milliseconds in day |
- * | b | AM, PM, noon, midnight | B | Flexible day period |
- * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
- * | d | Day of month | D | Day of year |
- * | e | Local day of week | E | Day of week |
- * | f | | F* | Day of week in month |
- * | g* | Modified Julian day | G | Era |
- * | h | Hour [1-12] | H | Hour [0-23] |
- * | i! | ISO day of week | I! | ISO week of year |
- * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
- * | k | Hour [1-24] | K | Hour [0-11] |
- * | l* | (deprecated) | L | Stand-alone month |
- * | m | Minute | M | Month |
- * | n | | N | |
- * | o! | Ordinal number modifier | O | Timezone (GMT) |
- * | p! | Long localized time | P! | Long localized date |
- * | q | Stand-alone quarter | Q | Quarter |
- * | r* | Related Gregorian year | R! | ISO week-numbering year |
- * | s | Second | S | Fraction of second |
- * | t! | Seconds timestamp | T! | Milliseconds timestamp |
- * | u | Extended year | U* | Cyclic year |
- * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
- * | w | Local week of year | W* | Week of month |
- * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
- * | y | Year (abs) | Y | Local week-numbering year |
- * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
- *
- * Letters marked by * are not implemented but reserved by Unicode standard.
- *
- * Letters marked by ! are non-standard, but implemented by date-fns:
- * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
- * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
- * i.e. 7 for Sunday, 1 for Monday, etc.
- * - `I` is ISO week of year, as opposed to `w` which is local week of year.
- * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
- * `R` is supposed to be used in conjunction with `I` and `i`
- * for universal ISO week-numbering date, whereas
- * `Y` is supposed to be used in conjunction with `w` and `e`
- * for week-numbering date specific to the locale.
- * - `P` is long localized date format
- * - `p` is long localized time format
- */
- var formatters = {
- // Era
- G: function G(date, token, localize) {
- var era = date.getUTCFullYear() > 0 ? 1 : 0;
-
- switch (token) {
- // AD, BC
- case 'G':
- case 'GG':
- case 'GGG':
- return localize.era(era, {
- width: 'abbreviated'
- });
- // A, B
-
- case 'GGGGG':
- return localize.era(era, {
- width: 'narrow'
- });
- // Anno Domini, Before Christ
-
- case 'GGGG':
- default:
- return localize.era(era, {
- width: 'wide'
- });
- }
- },
- // Year
- y: function y(date, token, localize) {
- // Ordinal number
- if (token === 'yo') {
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
-
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
- return localize.ordinalNumber(year, {
- unit: 'year'
- });
- }
-
- return formatters$3.y(date, token);
- },
- // Local week-numbering year
- Y: function Y(date, token, localize, options) {
- var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
-
- var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
-
- if (token === 'YY') {
- var twoDigitYear = weekYear % 100;
- return addLeadingZeros(twoDigitYear, 2);
- } // Ordinal number
-
-
- if (token === 'Yo') {
- return localize.ordinalNumber(weekYear, {
- unit: 'year'
- });
- } // Padding
-
-
- return addLeadingZeros(weekYear, token.length);
- },
- // ISO week-numbering year
- R: function R(date, token) {
- var isoWeekYear = getUTCISOWeekYear(date); // Padding
-
- return addLeadingZeros(isoWeekYear, token.length);
- },
- // Extended year. This is a single number designating the year of this calendar system.
- // The main difference between `y` and `u` localizers are B.C. years:
- // | Year | `y` | `u` |
- // |------|-----|-----|
- // | AC 1 | 1 | 1 |
- // | BC 1 | 1 | 0 |
- // | BC 2 | 2 | -1 |
- // Also `yy` always returns the last two digits of a year,
- // while `uu` pads single digit years to 2 characters and returns other years unchanged.
- u: function u(date, token) {
- var year = date.getUTCFullYear();
- return addLeadingZeros(year, token.length);
- },
- // Quarter
- Q: function Q(date, token, localize) {
- var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
-
- switch (token) {
- // 1, 2, 3, 4
- case 'Q':
- return String(quarter);
- // 01, 02, 03, 04
-
- case 'QQ':
- return addLeadingZeros(quarter, 2);
- // 1st, 2nd, 3rd, 4th
-
- case 'Qo':
- return localize.ordinalNumber(quarter, {
- unit: 'quarter'
- });
- // Q1, Q2, Q3, Q4
-
- case 'QQQ':
- return localize.quarter(quarter, {
- width: 'abbreviated',
- context: 'formatting'
- });
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
-
- case 'QQQQQ':
- return localize.quarter(quarter, {
- width: 'narrow',
- context: 'formatting'
- });
- // 1st quarter, 2nd quarter, ...
-
- case 'QQQQ':
- default:
- return localize.quarter(quarter, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // Stand-alone quarter
- q: function q(date, token, localize) {
- var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
-
- switch (token) {
- // 1, 2, 3, 4
- case 'q':
- return String(quarter);
- // 01, 02, 03, 04
-
- case 'qq':
- return addLeadingZeros(quarter, 2);
- // 1st, 2nd, 3rd, 4th
-
- case 'qo':
- return localize.ordinalNumber(quarter, {
- unit: 'quarter'
- });
- // Q1, Q2, Q3, Q4
-
- case 'qqq':
- return localize.quarter(quarter, {
- width: 'abbreviated',
- context: 'standalone'
- });
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
-
- case 'qqqqq':
- return localize.quarter(quarter, {
- width: 'narrow',
- context: 'standalone'
- });
- // 1st quarter, 2nd quarter, ...
-
- case 'qqqq':
- default:
- return localize.quarter(quarter, {
- width: 'wide',
- context: 'standalone'
- });
- }
- },
- // Month
- M: function M(date, token, localize) {
- var month = date.getUTCMonth();
-
- switch (token) {
- case 'M':
- case 'MM':
- return formatters$3.M(date, token);
- // 1st, 2nd, ..., 12th
-
- case 'Mo':
- return localize.ordinalNumber(month + 1, {
- unit: 'month'
- });
- // Jan, Feb, ..., Dec
-
- case 'MMM':
- return localize.month(month, {
- width: 'abbreviated',
- context: 'formatting'
- });
- // J, F, ..., D
-
- case 'MMMMM':
- return localize.month(month, {
- width: 'narrow',
- context: 'formatting'
- });
- // January, February, ..., December
-
- case 'MMMM':
- default:
- return localize.month(month, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // Stand-alone month
- L: function L(date, token, localize) {
- var month = date.getUTCMonth();
-
- switch (token) {
- // 1, 2, ..., 12
- case 'L':
- return String(month + 1);
- // 01, 02, ..., 12
-
- case 'LL':
- return addLeadingZeros(month + 1, 2);
- // 1st, 2nd, ..., 12th
-
- case 'Lo':
- return localize.ordinalNumber(month + 1, {
- unit: 'month'
- });
- // Jan, Feb, ..., Dec
-
- case 'LLL':
- return localize.month(month, {
- width: 'abbreviated',
- context: 'standalone'
- });
- // J, F, ..., D
-
- case 'LLLLL':
- return localize.month(month, {
- width: 'narrow',
- context: 'standalone'
- });
- // January, February, ..., December
-
- case 'LLLL':
- default:
- return localize.month(month, {
- width: 'wide',
- context: 'standalone'
- });
- }
- },
- // Local week of year
- w: function w(date, token, localize, options) {
- var week = getUTCWeek(date, options);
-
- if (token === 'wo') {
- return localize.ordinalNumber(week, {
- unit: 'week'
- });
- }
-
- return addLeadingZeros(week, token.length);
- },
- // ISO week of year
- I: function I(date, token, localize) {
- var isoWeek = getUTCISOWeek(date);
-
- if (token === 'Io') {
- return localize.ordinalNumber(isoWeek, {
- unit: 'week'
- });
- }
-
- return addLeadingZeros(isoWeek, token.length);
- },
- // Day of the month
- d: function d(date, token, localize) {
- if (token === 'do') {
- return localize.ordinalNumber(date.getUTCDate(), {
- unit: 'date'
- });
- }
-
- return formatters$3.d(date, token);
- },
- // Day of year
- D: function D(date, token, localize) {
- var dayOfYear = getUTCDayOfYear(date);
-
- if (token === 'Do') {
- return localize.ordinalNumber(dayOfYear, {
- unit: 'dayOfYear'
- });
- }
-
- return addLeadingZeros(dayOfYear, token.length);
- },
- // Day of week
- E: function E(date, token, localize) {
- var dayOfWeek = date.getUTCDay();
-
- switch (token) {
- // Tue
- case 'E':
- case 'EE':
- case 'EEE':
- return localize.day(dayOfWeek, {
- width: 'abbreviated',
- context: 'formatting'
- });
- // T
-
- case 'EEEEE':
- return localize.day(dayOfWeek, {
- width: 'narrow',
- context: 'formatting'
- });
- // Tu
-
- case 'EEEEEE':
- return localize.day(dayOfWeek, {
- width: 'short',
- context: 'formatting'
- });
- // Tuesday
-
- case 'EEEE':
- default:
- return localize.day(dayOfWeek, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // Local day of week
- e: function e(date, token, localize, options) {
- var dayOfWeek = date.getUTCDay();
- var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
-
- switch (token) {
- // Numerical value (Nth day of week with current locale or weekStartsOn)
- case 'e':
- return String(localDayOfWeek);
- // Padded numerical value
-
- case 'ee':
- return addLeadingZeros(localDayOfWeek, 2);
- // 1st, 2nd, ..., 7th
-
- case 'eo':
- return localize.ordinalNumber(localDayOfWeek, {
- unit: 'day'
- });
-
- case 'eee':
- return localize.day(dayOfWeek, {
- width: 'abbreviated',
- context: 'formatting'
- });
- // T
-
- case 'eeeee':
- return localize.day(dayOfWeek, {
- width: 'narrow',
- context: 'formatting'
- });
- // Tu
-
- case 'eeeeee':
- return localize.day(dayOfWeek, {
- width: 'short',
- context: 'formatting'
- });
- // Tuesday
-
- case 'eeee':
- default:
- return localize.day(dayOfWeek, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // Stand-alone local day of week
- c: function c(date, token, localize, options) {
- var dayOfWeek = date.getUTCDay();
- var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
-
- switch (token) {
- // Numerical value (same as in `e`)
- case 'c':
- return String(localDayOfWeek);
- // Padded numerical value
-
- case 'cc':
- return addLeadingZeros(localDayOfWeek, token.length);
- // 1st, 2nd, ..., 7th
-
- case 'co':
- return localize.ordinalNumber(localDayOfWeek, {
- unit: 'day'
- });
-
- case 'ccc':
- return localize.day(dayOfWeek, {
- width: 'abbreviated',
- context: 'standalone'
- });
- // T
-
- case 'ccccc':
- return localize.day(dayOfWeek, {
- width: 'narrow',
- context: 'standalone'
- });
- // Tu
-
- case 'cccccc':
- return localize.day(dayOfWeek, {
- width: 'short',
- context: 'standalone'
- });
- // Tuesday
-
- case 'cccc':
- default:
- return localize.day(dayOfWeek, {
- width: 'wide',
- context: 'standalone'
- });
- }
- },
- // ISO day of week
- i: function i(date, token, localize) {
- var dayOfWeek = date.getUTCDay();
- var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
-
- switch (token) {
- // 2
- case 'i':
- return String(isoDayOfWeek);
- // 02
-
- case 'ii':
- return addLeadingZeros(isoDayOfWeek, token.length);
- // 2nd
-
- case 'io':
- return localize.ordinalNumber(isoDayOfWeek, {
- unit: 'day'
- });
- // Tue
-
- case 'iii':
- return localize.day(dayOfWeek, {
- width: 'abbreviated',
- context: 'formatting'
- });
- // T
-
- case 'iiiii':
- return localize.day(dayOfWeek, {
- width: 'narrow',
- context: 'formatting'
- });
- // Tu
-
- case 'iiiiii':
- return localize.day(dayOfWeek, {
- width: 'short',
- context: 'formatting'
- });
- // Tuesday
-
- case 'iiii':
- default:
- return localize.day(dayOfWeek, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // AM or PM
- a: function a(date, token, localize) {
- var hours = date.getUTCHours();
- var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
-
- switch (token) {
- case 'a':
- case 'aa':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
- });
-
- case 'aaa':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
- }).toLowerCase();
-
- case 'aaaaa':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'narrow',
- context: 'formatting'
- });
-
- case 'aaaa':
- default:
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // AM, PM, midnight, noon
- b: function b(date, token, localize) {
- var hours = date.getUTCHours();
- var dayPeriodEnumValue;
-
- if (hours === 12) {
- dayPeriodEnumValue = dayPeriodEnum.noon;
- } else if (hours === 0) {
- dayPeriodEnumValue = dayPeriodEnum.midnight;
- } else {
- dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
- }
-
- switch (token) {
- case 'b':
- case 'bb':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
- });
-
- case 'bbb':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
- }).toLowerCase();
-
- case 'bbbbb':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'narrow',
- context: 'formatting'
- });
-
- case 'bbbb':
- default:
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // in the morning, in the afternoon, in the evening, at night
- B: function B(date, token, localize) {
- var hours = date.getUTCHours();
- var dayPeriodEnumValue;
-
- if (hours >= 17) {
- dayPeriodEnumValue = dayPeriodEnum.evening;
- } else if (hours >= 12) {
- dayPeriodEnumValue = dayPeriodEnum.afternoon;
- } else if (hours >= 4) {
- dayPeriodEnumValue = dayPeriodEnum.morning;
- } else {
- dayPeriodEnumValue = dayPeriodEnum.night;
- }
-
- switch (token) {
- case 'B':
- case 'BB':
- case 'BBB':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
- });
-
- case 'BBBBB':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'narrow',
- context: 'formatting'
- });
-
- case 'BBBB':
- default:
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // Hour [1-12]
- h: function h(date, token, localize) {
- if (token === 'ho') {
- var hours = date.getUTCHours() % 12;
- if (hours === 0) hours = 12;
- return localize.ordinalNumber(hours, {
- unit: 'hour'
- });
- }
-
- return formatters$3.h(date, token);
- },
- // Hour [0-23]
- H: function H(date, token, localize) {
- if (token === 'Ho') {
- return localize.ordinalNumber(date.getUTCHours(), {
- unit: 'hour'
- });
- }
-
- return formatters$3.H(date, token);
- },
- // Hour [0-11]
- K: function K(date, token, localize) {
- var hours = date.getUTCHours() % 12;
-
- if (token === 'Ko') {
- return localize.ordinalNumber(hours, {
- unit: 'hour'
- });
- }
-
- return addLeadingZeros(hours, token.length);
- },
- // Hour [1-24]
- k: function k(date, token, localize) {
- var hours = date.getUTCHours();
- if (hours === 0) hours = 24;
-
- if (token === 'ko') {
- return localize.ordinalNumber(hours, {
- unit: 'hour'
- });
- }
-
- return addLeadingZeros(hours, token.length);
- },
- // Minute
- m: function m(date, token, localize) {
- if (token === 'mo') {
- return localize.ordinalNumber(date.getUTCMinutes(), {
- unit: 'minute'
- });
- }
-
- return formatters$3.m(date, token);
- },
- // Second
- s: function s(date, token, localize) {
- if (token === 'so') {
- return localize.ordinalNumber(date.getUTCSeconds(), {
- unit: 'second'
- });
- }
-
- return formatters$3.s(date, token);
- },
- // Fraction of second
- S: function S(date, token) {
- return formatters$3.S(date, token);
- },
- // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
- X: function X(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timezoneOffset = originalDate.getTimezoneOffset();
-
- if (timezoneOffset === 0) {
- return 'Z';
- }
-
- switch (token) {
- // Hours and optional minutes
- case 'X':
- return formatTimezoneWithOptionalMinutes(timezoneOffset);
- // Hours, minutes and optional seconds without `:` delimiter
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
- // so this token always has the same output as `XX`
-
- case 'XXXX':
- case 'XX':
- // Hours and minutes without `:` delimiter
- return formatTimezone(timezoneOffset);
- // Hours, minutes and optional seconds with `:` delimiter
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
- // so this token always has the same output as `XXX`
-
- case 'XXXXX':
- case 'XXX': // Hours and minutes with `:` delimiter
-
- default:
- return formatTimezone(timezoneOffset, ':');
- }
- },
- // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
- x: function x(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timezoneOffset = originalDate.getTimezoneOffset();
-
- switch (token) {
- // Hours and optional minutes
- case 'x':
- return formatTimezoneWithOptionalMinutes(timezoneOffset);
- // Hours, minutes and optional seconds without `:` delimiter
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
- // so this token always has the same output as `xx`
-
- case 'xxxx':
- case 'xx':
- // Hours and minutes without `:` delimiter
- return formatTimezone(timezoneOffset);
- // Hours, minutes and optional seconds with `:` delimiter
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
- // so this token always has the same output as `xxx`
-
- case 'xxxxx':
- case 'xxx': // Hours and minutes with `:` delimiter
-
- default:
- return formatTimezone(timezoneOffset, ':');
- }
- },
- // Timezone (GMT)
- O: function O(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timezoneOffset = originalDate.getTimezoneOffset();
-
- switch (token) {
- // Short
- case 'O':
- case 'OO':
- case 'OOO':
- return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
- // Long
-
- case 'OOOO':
- default:
- return 'GMT' + formatTimezone(timezoneOffset, ':');
- }
- },
- // Timezone (specific non-location)
- z: function z(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timezoneOffset = originalDate.getTimezoneOffset();
-
- switch (token) {
- // Short
- case 'z':
- case 'zz':
- case 'zzz':
- return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
- // Long
-
- case 'zzzz':
- default:
- return 'GMT' + formatTimezone(timezoneOffset, ':');
- }
- },
- // Seconds timestamp
- t: function t(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timestamp = Math.floor(originalDate.getTime() / 1000);
- return addLeadingZeros(timestamp, token.length);
- },
- // Milliseconds timestamp
- T: function T(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timestamp = originalDate.getTime();
- return addLeadingZeros(timestamp, token.length);
- }
- };
-
- function formatTimezoneShort(offset, dirtyDelimiter) {
- var sign = offset > 0 ? '-' : '+';
- var absOffset = Math.abs(offset);
- var hours = Math.floor(absOffset / 60);
- var minutes = absOffset % 60;
-
- if (minutes === 0) {
- return sign + String(hours);
- }
-
- var delimiter = dirtyDelimiter || '';
- return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
- }
-
- function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
- if (offset % 60 === 0) {
- var sign = offset > 0 ? '-' : '+';
- return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
- }
-
- return formatTimezone(offset, dirtyDelimiter);
- }
-
- function formatTimezone(offset, dirtyDelimiter) {
- var delimiter = dirtyDelimiter || '';
- var sign = offset > 0 ? '-' : '+';
- var absOffset = Math.abs(offset);
- var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);
- var minutes = addLeadingZeros(absOffset % 60, 2);
- return sign + hours + delimiter + minutes;
- }
-
- var formatters$1 = formatters;
-
- var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
- switch (pattern) {
- case 'P':
- return formatLong.date({
- width: 'short'
- });
-
- case 'PP':
- return formatLong.date({
- width: 'medium'
- });
-
- case 'PPP':
- return formatLong.date({
- width: 'long'
- });
-
- case 'PPPP':
- default:
- return formatLong.date({
- width: 'full'
- });
- }
- };
-
- var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
- switch (pattern) {
- case 'p':
- return formatLong.time({
- width: 'short'
- });
-
- case 'pp':
- return formatLong.time({
- width: 'medium'
- });
-
- case 'ppp':
- return formatLong.time({
- width: 'long'
- });
-
- case 'pppp':
- default:
- return formatLong.time({
- width: 'full'
- });
- }
- };
-
- var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
- var matchResult = pattern.match(/(P+)(p+)?/) || [];
- var datePattern = matchResult[1];
- var timePattern = matchResult[2];
-
- if (!timePattern) {
- return dateLongFormatter(pattern, formatLong);
- }
-
- var dateTimeFormat;
-
- switch (datePattern) {
- case 'P':
- dateTimeFormat = formatLong.dateTime({
- width: 'short'
- });
- break;
-
- case 'PP':
- dateTimeFormat = formatLong.dateTime({
- width: 'medium'
- });
- break;
-
- case 'PPP':
- dateTimeFormat = formatLong.dateTime({
- width: 'long'
- });
- break;
-
- case 'PPPP':
- default:
- dateTimeFormat = formatLong.dateTime({
- width: 'full'
- });
- break;
- }
-
- return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
- };
-
- var longFormatters = {
- p: timeLongFormatter,
- P: dateTimeLongFormatter
- };
- var longFormatters$1 = longFormatters;
-
- var protectedDayOfYearTokens = ['D', 'DD'];
- var protectedWeekYearTokens = ['YY', 'YYYY'];
- function isProtectedDayOfYearToken(token) {
- return protectedDayOfYearTokens.indexOf(token) !== -1;
- }
- function isProtectedWeekYearToken(token) {
- return protectedWeekYearTokens.indexOf(token) !== -1;
- }
- function throwProtectedError(token, format, input) {
- if (token === 'YYYY') {
- throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
- } else if (token === 'YY') {
- throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
- } else if (token === 'D') {
- throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
- } else if (token === 'DD') {
- throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
- }
- }
-
- var formatDistanceLocale = {
- lessThanXSeconds: {
- one: 'less than a second',
- other: 'less than {{count}} seconds'
- },
- xSeconds: {
- one: '1 second',
- other: '{{count}} seconds'
- },
- halfAMinute: 'half a minute',
- lessThanXMinutes: {
- one: 'less than a minute',
- other: 'less than {{count}} minutes'
- },
- xMinutes: {
- one: '1 minute',
- other: '{{count}} minutes'
- },
- aboutXHours: {
- one: 'about 1 hour',
- other: 'about {{count}} hours'
- },
- xHours: {
- one: '1 hour',
- other: '{{count}} hours'
- },
- xDays: {
- one: '1 day',
- other: '{{count}} days'
- },
- aboutXWeeks: {
- one: 'about 1 week',
- other: 'about {{count}} weeks'
- },
- xWeeks: {
- one: '1 week',
- other: '{{count}} weeks'
- },
- aboutXMonths: {
- one: 'about 1 month',
- other: 'about {{count}} months'
- },
- xMonths: {
- one: '1 month',
- other: '{{count}} months'
- },
- aboutXYears: {
- one: 'about 1 year',
- other: 'about {{count}} years'
- },
- xYears: {
- one: '1 year',
- other: '{{count}} years'
- },
- overXYears: {
- one: 'over 1 year',
- other: 'over {{count}} years'
- },
- almostXYears: {
- one: 'almost 1 year',
- other: 'almost {{count}} years'
- }
- };
-
- var formatDistance = function formatDistance(token, count, options) {
- var result;
- var tokenValue = formatDistanceLocale[token];
-
- if (typeof tokenValue === 'string') {
- result = tokenValue;
- } else if (count === 1) {
- result = tokenValue.one;
- } else {
- result = tokenValue.other.replace('{{count}}', count.toString());
- }
-
- if (options !== null && options !== void 0 && options.addSuffix) {
- if (options.comparison && options.comparison > 0) {
- return 'in ' + result;
- } else {
- return result + ' ago';
- }
- }
-
- return result;
- };
-
- var formatDistance$1 = formatDistance;
-
- function buildFormatLongFn(args) {
- return function () {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- // TODO: Remove String()
- var width = options.width ? String(options.width) : args.defaultWidth;
- var format = args.formats[width] || args.formats[args.defaultWidth];
- return format;
- };
- }
-
- var dateFormats = {
- full: 'EEEE, MMMM do, y',
- long: 'MMMM do, y',
- medium: 'MMM d, y',
- short: 'MM/dd/yyyy'
- };
- var timeFormats = {
- full: 'h:mm:ss a zzzz',
- long: 'h:mm:ss a z',
- medium: 'h:mm:ss a',
- short: 'h:mm a'
- };
- var dateTimeFormats = {
- full: "{{date}} 'at' {{time}}",
- long: "{{date}} 'at' {{time}}",
- medium: '{{date}}, {{time}}',
- short: '{{date}}, {{time}}'
- };
- var formatLong = {
- date: buildFormatLongFn({
- formats: dateFormats,
- defaultWidth: 'full'
- }),
- time: buildFormatLongFn({
- formats: timeFormats,
- defaultWidth: 'full'
- }),
- dateTime: buildFormatLongFn({
- formats: dateTimeFormats,
- defaultWidth: 'full'
- })
- };
- var formatLong$1 = formatLong;
-
- var formatRelativeLocale = {
- lastWeek: "'last' eeee 'at' p",
- yesterday: "'yesterday at' p",
- today: "'today at' p",
- tomorrow: "'tomorrow at' p",
- nextWeek: "eeee 'at' p",
- other: 'P'
- };
-
- var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
- return formatRelativeLocale[token];
- };
-
- var formatRelative$1 = formatRelative;
-
- function buildLocalizeFn(args) {
- return function (dirtyIndex, options) {
- var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
- var valuesArray;
-
- if (context === 'formatting' && args.formattingValues) {
- var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
- var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
- valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
- } else {
- var _defaultWidth = args.defaultWidth;
-
- var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
-
- valuesArray = args.values[_width] || args.values[_defaultWidth];
- }
-
- var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
-
- return valuesArray[index];
- };
- }
-
- var eraValues = {
- narrow: ['B', 'A'],
- abbreviated: ['BC', 'AD'],
- wide: ['Before Christ', 'Anno Domini']
- };
- var quarterValues = {
- narrow: ['1', '2', '3', '4'],
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
- }; // Note: in English, the names of days of the week and months are capitalized.
- // If you are making a new locale based on this one, check if the same is true for the language you're working on.
- // Generally, formatted dates should look like they are in the middle of a sentence,
- // e.g. in Spanish language the weekdays and months should be in the lowercase.
-
- var monthValues = {
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
- abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
- wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
- };
- var dayValues = {
- narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
- short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
- abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
- wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
- };
- var dayPeriodValues = {
- narrow: {
- am: 'a',
- pm: 'p',
- midnight: 'mi',
- noon: 'n',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- abbreviated: {
- am: 'AM',
- pm: 'PM',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- wide: {
- am: 'a.m.',
- pm: 'p.m.',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- }
- };
- var formattingDayPeriodValues = {
- narrow: {
- am: 'a',
- pm: 'p',
- midnight: 'mi',
- noon: 'n',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- },
- abbreviated: {
- am: 'AM',
- pm: 'PM',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- },
- wide: {
- am: 'a.m.',
- pm: 'p.m.',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- }
- };
-
- var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
- var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
- // if they are different for different grammatical genders,
- // use `options.unit`.
- //
- // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
- // 'day', 'hour', 'minute', 'second'.
-
- var rem100 = number % 100;
-
- if (rem100 > 20 || rem100 < 10) {
- switch (rem100 % 10) {
- case 1:
- return number + 'st';
-
- case 2:
- return number + 'nd';
-
- case 3:
- return number + 'rd';
- }
- }
-
- return number + 'th';
- };
-
- var localize = {
- ordinalNumber: ordinalNumber,
- era: buildLocalizeFn({
- values: eraValues,
- defaultWidth: 'wide'
- }),
- quarter: buildLocalizeFn({
- values: quarterValues,
- defaultWidth: 'wide',
- argumentCallback: function argumentCallback(quarter) {
- return quarter - 1;
- }
- }),
- month: buildLocalizeFn({
- values: monthValues,
- defaultWidth: 'wide'
- }),
- day: buildLocalizeFn({
- values: dayValues,
- defaultWidth: 'wide'
- }),
- dayPeriod: buildLocalizeFn({
- values: dayPeriodValues,
- defaultWidth: 'wide',
- formattingValues: formattingDayPeriodValues,
- defaultFormattingWidth: 'wide'
- })
- };
- var localize$1 = localize;
-
- function buildMatchFn(args) {
- return function (string) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var width = options.width;
- var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
- var matchResult = string.match(matchPattern);
-
- if (!matchResult) {
- return null;
- }
-
- var matchedString = matchResult[0];
- var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
- var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
- return pattern.test(matchedString);
- }) : findKey(parsePatterns, function (pattern) {
- return pattern.test(matchedString);
- });
- var value;
- value = args.valueCallback ? args.valueCallback(key) : key;
- value = options.valueCallback ? options.valueCallback(value) : value;
- var rest = string.slice(matchedString.length);
- return {
- value: value,
- rest: rest
- };
- };
- }
-
- function findKey(object, predicate) {
- for (var key in object) {
- if (object.hasOwnProperty(key) && predicate(object[key])) {
- return key;
- }
- }
-
- return undefined;
- }
-
- function findIndex(array, predicate) {
- for (var key = 0; key < array.length; key++) {
- if (predicate(array[key])) {
- return key;
- }
- }
-
- return undefined;
- }
-
- function buildMatchPatternFn(args) {
- return function (string) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var matchResult = string.match(args.matchPattern);
- if (!matchResult) return null;
- var matchedString = matchResult[0];
- var parseResult = string.match(args.parsePattern);
- if (!parseResult) return null;
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
- value = options.valueCallback ? options.valueCallback(value) : value;
- var rest = string.slice(matchedString.length);
- return {
- value: value,
- rest: rest
- };
- };
- }
-
- var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
- var parseOrdinalNumberPattern = /\d+/i;
- var matchEraPatterns = {
- narrow: /^(b|a)/i,
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
- wide: /^(before christ|before common era|anno domini|common era)/i
- };
- var parseEraPatterns = {
- any: [/^b/i, /^(a|c)/i]
- };
- var matchQuarterPatterns = {
- narrow: /^[1234]/i,
- abbreviated: /^q[1234]/i,
- wide: /^[1234](th|st|nd|rd)? quarter/i
- };
- var parseQuarterPatterns = {
- any: [/1/i, /2/i, /3/i, /4/i]
- };
- var matchMonthPatterns = {
- narrow: /^[jfmasond]/i,
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
- };
- var parseMonthPatterns = {
- narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
- any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
- };
- var matchDayPatterns = {
- narrow: /^[smtwf]/i,
- short: /^(su|mo|tu|we|th|fr|sa)/i,
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
- };
- var parseDayPatterns = {
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
- };
- var matchDayPeriodPatterns = {
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
- };
- var parseDayPeriodPatterns = {
- any: {
- am: /^a/i,
- pm: /^p/i,
- midnight: /^mi/i,
- noon: /^no/i,
- morning: /morning/i,
- afternoon: /afternoon/i,
- evening: /evening/i,
- night: /night/i
- }
- };
- var match = {
- ordinalNumber: buildMatchPatternFn({
- matchPattern: matchOrdinalNumberPattern,
- parsePattern: parseOrdinalNumberPattern,
- valueCallback: function valueCallback(value) {
- return parseInt(value, 10);
- }
- }),
- era: buildMatchFn({
- matchPatterns: matchEraPatterns,
- defaultMatchWidth: 'wide',
- parsePatterns: parseEraPatterns,
- defaultParseWidth: 'any'
- }),
- quarter: buildMatchFn({
- matchPatterns: matchQuarterPatterns,
- defaultMatchWidth: 'wide',
- parsePatterns: parseQuarterPatterns,
- defaultParseWidth: 'any',
- valueCallback: function valueCallback(index) {
- return index + 1;
- }
- }),
- month: buildMatchFn({
- matchPatterns: matchMonthPatterns,
- defaultMatchWidth: 'wide',
- parsePatterns: parseMonthPatterns,
- defaultParseWidth: 'any'
- }),
- day: buildMatchFn({
- matchPatterns: matchDayPatterns,
- defaultMatchWidth: 'wide',
- parsePatterns: parseDayPatterns,
- defaultParseWidth: 'any'
- }),
- dayPeriod: buildMatchFn({
- matchPatterns: matchDayPeriodPatterns,
- defaultMatchWidth: 'any',
- parsePatterns: parseDayPeriodPatterns,
- defaultParseWidth: 'any'
- })
- };
- var match$1 = match;
-
- /**
- * @type {Locale}
- * @category Locales
- * @summary English locale (United States).
- * @language English
- * @iso-639-2 eng
- * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
- * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
- */
- var locale = {
- code: 'en-US',
- formatDistance: formatDistance$1,
- formatLong: formatLong$1,
- formatRelative: formatRelative$1,
- localize: localize$1,
- match: match$1,
- options: {
- weekStartsOn: 0
- /* Sunday */
- ,
- firstWeekContainsDate: 1
- }
- };
- var defaultLocale = locale;
-
- // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
- // (one of the certain letters followed by `o`)
- // - (\w)\1* matches any sequences of the same letter
- // - '' matches two quote characters in a row
- // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
- // except a single quote symbol, which ends the sequence.
- // Two quote characters do not end the sequence.
- // If there is no matching single quote
- // then the sequence will continue until the end of the string.
- // - . matches any single character unmatched by previous parts of the RegExps
-
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
- // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
-
- var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
- var escapedStringRegExp = /^'([^]*?)'?$/;
- var doubleQuoteRegExp = /''/g;
- var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
- /**
- * @name format
- * @category Common Helpers
- * @summary Format the date.
- *
- * @description
- * Return the formatted date string in the given format. The result may vary by locale.
- *
- * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
- * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- *
- * The characters wrapped between two single quotes characters (') are escaped.
- * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
- * (see the last example)
- *
- * Format of the string is based on Unicode Technical Standard #35:
- * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
- * with a few additions (see note 7 below the table).
- *
- * Accepted patterns:
- * | Unit | Pattern | Result examples | Notes |
- * |---------------------------------|---------|-----------------------------------|-------|
- * | Era | G..GGG | AD, BC | |
- * | | GGGG | Anno Domini, Before Christ | 2 |
- * | | GGGGG | A, B | |
- * | Calendar year | y | 44, 1, 1900, 2017 | 5 |
- * | | yo | 44th, 1st, 0th, 17th | 5,7 |
- * | | yy | 44, 01, 00, 17 | 5 |
- * | | yyy | 044, 001, 1900, 2017 | 5 |
- * | | yyyy | 0044, 0001, 1900, 2017 | 5 |
- * | | yyyyy | ... | 3,5 |
- * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |
- * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |
- * | | YY | 44, 01, 00, 17 | 5,8 |
- * | | YYY | 044, 001, 1900, 2017 | 5 |
- * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |
- * | | YYYYY | ... | 3,5 |
- * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |
- * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |
- * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |
- * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |
- * | | RRRRR | ... | 3,5,7 |
- * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |
- * | | uu | -43, 01, 1900, 2017 | 5 |
- * | | uuu | -043, 001, 1900, 2017 | 5 |
- * | | uuuu | -0043, 0001, 1900, 2017 | 5 |
- * | | uuuuu | ... | 3,5 |
- * | Quarter (formatting) | Q | 1, 2, 3, 4 | |
- * | | Qo | 1st, 2nd, 3rd, 4th | 7 |
- * | | QQ | 01, 02, 03, 04 | |
- * | | QQQ | Q1, Q2, Q3, Q4 | |
- * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
- * | | QQQQQ | 1, 2, 3, 4 | 4 |
- * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |
- * | | qo | 1st, 2nd, 3rd, 4th | 7 |
- * | | qq | 01, 02, 03, 04 | |
- * | | qqq | Q1, Q2, Q3, Q4 | |
- * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
- * | | qqqqq | 1, 2, 3, 4 | 4 |
- * | Month (formatting) | M | 1, 2, ..., 12 | |
- * | | Mo | 1st, 2nd, ..., 12th | 7 |
- * | | MM | 01, 02, ..., 12 | |
- * | | MMM | Jan, Feb, ..., Dec | |
- * | | MMMM | January, February, ..., December | 2 |
- * | | MMMMM | J, F, ..., D | |
- * | Month (stand-alone) | L | 1, 2, ..., 12 | |
- * | | Lo | 1st, 2nd, ..., 12th | 7 |
- * | | LL | 01, 02, ..., 12 | |
- * | | LLL | Jan, Feb, ..., Dec | |
- * | | LLLL | January, February, ..., December | 2 |
- * | | LLLLL | J, F, ..., D | |
- * | Local week of year | w | 1, 2, ..., 53 | |
- * | | wo | 1st, 2nd, ..., 53th | 7 |
- * | | ww | 01, 02, ..., 53 | |
- * | ISO week of year | I | 1, 2, ..., 53 | 7 |
- * | | Io | 1st, 2nd, ..., 53th | 7 |
- * | | II | 01, 02, ..., 53 | 7 |
- * | Day of month | d | 1, 2, ..., 31 | |
- * | | do | 1st, 2nd, ..., 31st | 7 |
- * | | dd | 01, 02, ..., 31 | |
- * | Day of year | D | 1, 2, ..., 365, 366 | 9 |
- * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |
- * | | DD | 01, 02, ..., 365, 366 | 9 |
- * | | DDD | 001, 002, ..., 365, 366 | |
- * | | DDDD | ... | 3 |
- * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
- * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
- * | | EEEEE | M, T, W, T, F, S, S | |
- * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
- * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
- * | | io | 1st, 2nd, ..., 7th | 7 |
- * | | ii | 01, 02, ..., 07 | 7 |
- * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
- * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
- * | | iiiii | M, T, W, T, F, S, S | 7 |
- * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
- * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
- * | | eo | 2nd, 3rd, ..., 1st | 7 |
- * | | ee | 02, 03, ..., 01 | |
- * | | eee | Mon, Tue, Wed, ..., Sun | |
- * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
- * | | eeeee | M, T, W, T, F, S, S | |
- * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
- * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
- * | | co | 2nd, 3rd, ..., 1st | 7 |
- * | | cc | 02, 03, ..., 01 | |
- * | | ccc | Mon, Tue, Wed, ..., Sun | |
- * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
- * | | ccccc | M, T, W, T, F, S, S | |
- * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
- * | AM, PM | a..aa | AM, PM | |
- * | | aaa | am, pm | |
- * | | aaaa | a.m., p.m. | 2 |
- * | | aaaaa | a, p | |
- * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
- * | | bbb | am, pm, noon, midnight | |
- * | | bbbb | a.m., p.m., noon, midnight | 2 |
- * | | bbbbb | a, p, n, mi | |
- * | Flexible day period | B..BBB | at night, in the morning, ... | |
- * | | BBBB | at night, in the morning, ... | 2 |
- * | | BBBBB | at night, in the morning, ... | |
- * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |
- * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |
- * | | hh | 01, 02, ..., 11, 12 | |
- * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |
- * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |
- * | | HH | 00, 01, 02, ..., 23 | |
- * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |
- * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |
- * | | KK | 01, 02, ..., 11, 00 | |
- * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |
- * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |
- * | | kk | 24, 01, 02, ..., 23 | |
- * | Minute | m | 0, 1, ..., 59 | |
- * | | mo | 0th, 1st, ..., 59th | 7 |
- * | | mm | 00, 01, ..., 59 | |
- * | Second | s | 0, 1, ..., 59 | |
- * | | so | 0th, 1st, ..., 59th | 7 |
- * | | ss | 00, 01, ..., 59 | |
- * | Fraction of second | S | 0, 1, ..., 9 | |
- * | | SS | 00, 01, ..., 99 | |
- * | | SSS | 000, 001, ..., 999 | |
- * | | SSSS | ... | 3 |
- * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
- * | | XX | -0800, +0530, Z | |
- * | | XXX | -08:00, +05:30, Z | |
- * | | XXXX | -0800, +0530, Z, +123456 | 2 |
- * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
- * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |
- * | | xx | -0800, +0530, +0000 | |
- * | | xxx | -08:00, +05:30, +00:00 | 2 |
- * | | xxxx | -0800, +0530, +0000, +123456 | |
- * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
- * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |
- * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |
- * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |
- * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |
- * | Seconds timestamp | t | 512969520 | 7 |
- * | | tt | ... | 3,7 |
- * | Milliseconds timestamp | T | 512969520900 | 7 |
- * | | TT | ... | 3,7 |
- * | Long localized date | P | 04/29/1453 | 7 |
- * | | PP | Apr 29, 1453 | 7 |
- * | | PPP | April 29th, 1453 | 7 |
- * | | PPPP | Friday, April 29th, 1453 | 2,7 |
- * | Long localized time | p | 12:00 AM | 7 |
- * | | pp | 12:00:00 AM | 7 |
- * | | ppp | 12:00:00 AM GMT+2 | 7 |
- * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
- * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
- * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
- * | | PPPppp | April 29th, 1453 at ... | 7 |
- * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
- * Notes:
- * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
- * are the same as "stand-alone" units, but are different in some languages.
- * "Formatting" units are declined according to the rules of the language
- * in the context of a date. "Stand-alone" units are always nominative singular:
- *
- * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
- *
- * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
- *
- * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
- * the single quote characters (see below).
- * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)
- * the output will be the same as default pattern for this unit, usually
- * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units
- * are marked with "2" in the last column of the table.
- *
- * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`
- *
- * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`
- *
- * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`
- *
- * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`
- *
- * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`
- *
- * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).
- * The output will be padded with zeros to match the length of the pattern.
- *
- * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`
- *
- * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
- * These tokens represent the shortest form of the quarter.
- *
- * 5. The main difference between `y` and `u` patterns are B.C. years:
- *
- * | Year | `y` | `u` |
- * |------|-----|-----|
- * | AC 1 | 1 | 1 |
- * | BC 1 | 1 | 0 |
- * | BC 2 | 2 | -1 |
- *
- * Also `yy` always returns the last two digits of a year,
- * while `uu` pads single digit years to 2 characters and returns other years unchanged:
- *
- * | Year | `yy` | `uu` |
- * |------|------|------|
- * | 1 | 01 | 01 |
- * | 14 | 14 | 14 |
- * | 376 | 76 | 376 |
- * | 1453 | 53 | 1453 |
- *
- * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
- * except local week-numbering years are dependent on `options.weekStartsOn`
- * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}
- * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).
- *
- * 6. Specific non-location timezones are currently unavailable in `date-fns`,
- * so right now these tokens fall back to GMT timezones.
- *
- * 7. These patterns are not in the Unicode Technical Standard #35:
- * - `i`: ISO day of week
- * - `I`: ISO week of year
- * - `R`: ISO week-numbering year
- * - `t`: seconds timestamp
- * - `T`: milliseconds timestamp
- * - `o`: ordinal number modifier
- * - `P`: long localized date
- * - `p`: long localized time
- *
- * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- *
- * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- *
- * @param {Date|Number} date - the original date
- * @param {String} format - the string of tokens
- * @param {Object} [options] - an object with options.
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
- * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is
- * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
- * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
- * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @returns {String} the formatted date string
- * @throws {TypeError} 2 arguments required
- * @throws {RangeError} `date` must not be Invalid Date
- * @throws {RangeError} `options.locale` must contain `localize` property
- * @throws {RangeError} `options.locale` must contain `formatLong` property
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
- * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @throws {RangeError} format string contains an unescaped latin alphabet character
- *
- * @example
- * // Represent 11 February 2014 in middle-endian format:
- * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
- * //=> '02/11/2014'
- *
- * @example
- * // Represent 2 July 2014 in Esperanto:
- * import { eoLocale } from 'date-fns/locale/eo'
- * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
- * locale: eoLocale
- * })
- * //=> '2-a de julio 2014'
- *
- * @example
- * // Escape string by single quote characters:
- * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
- * //=> "3 o'clock"
- */
-
- function format(dirtyDate, dirtyFormatStr, options) {
- var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
-
- requiredArgs(2, arguments);
- var formatStr = String(dirtyFormatStr);
- var defaultOptions = getDefaultOptions();
- var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;
- var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
-
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
- }
-
- var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
-
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- }
-
- if (!locale.localize) {
- throw new RangeError('locale must contain localize property');
- }
-
- if (!locale.formatLong) {
- throw new RangeError('locale must contain formatLong property');
- }
-
- var originalDate = toDate(dirtyDate);
-
- if (!isValid(originalDate)) {
- throw new RangeError('Invalid time value');
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
- // This ensures that when UTC functions will be implemented, locales will be compatible with them.
- // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
-
-
- var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
- var utcDate = subMilliseconds(originalDate, timezoneOffset);
- var formatterOptions = {
- firstWeekContainsDate: firstWeekContainsDate,
- weekStartsOn: weekStartsOn,
- locale: locale,
- _originalDate: originalDate
- };
- var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
- var firstCharacter = substring[0];
-
- if (firstCharacter === 'p' || firstCharacter === 'P') {
- var longFormatter = longFormatters$1[firstCharacter];
- return longFormatter(substring, locale.formatLong);
- }
-
- return substring;
- }).join('').match(formattingTokensRegExp).map(function (substring) {
- // Replace two single quote characters with one single quote character
- if (substring === "''") {
- return "'";
- }
-
- var firstCharacter = substring[0];
-
- if (firstCharacter === "'") {
- return cleanEscapedString(substring);
- }
-
- var formatter = formatters$1[firstCharacter];
-
- if (formatter) {
- if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
- throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
- }
-
- if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
- throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
- }
-
- return formatter(utcDate, substring, locale.localize, formatterOptions);
- }
-
- if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
- throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
- }
-
- return substring;
- }).join('');
- return result;
- }
-
- function cleanEscapedString(input) {
- var matched = input.match(escapedStringRegExp);
-
- if (!matched) {
- return input;
- }
-
- return matched[1].replace(doubleQuoteRegExp, "'");
- }
-
- var defaultFormat = ['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds'];
- /**
- * @name formatDuration
- * @category Common Helpers
- * @summary Formats a duration in human-readable format
- *
- * @description
- * Return human-readable duration string i.e. "9 months 2 days"
- *
- * @param {Duration} duration - the duration to format
- * @param {Object} [options] - an object with options.
- * @param {string[]} [options.format=['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds']] - the array of units to format
- * @param {boolean} [options.zero=false] - should zeros be included in the output?
- * @param {string} [options.delimiter=' '] - delimiter string
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
- * @returns {string} the formatted date string
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // Format full duration
- * formatDuration({
- * years: 2,
- * months: 9,
- * weeks: 1,
- * days: 7,
- * hours: 5,
- * minutes: 9,
- * seconds: 30
- * })
- * //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds'
- *
- * @example
- * // Format partial duration
- * formatDuration({ months: 9, days: 2 })
- * //=> '9 months 2 days'
- *
- * @example
- * // Customize the format
- * formatDuration(
- * {
- * years: 2,
- * months: 9,
- * weeks: 1,
- * days: 7,
- * hours: 5,
- * minutes: 9,
- * seconds: 30
- * },
- * { format: ['months', 'weeks'] }
- * ) === '9 months 1 week'
- *
- * @example
- * // Customize the zeros presence
- * formatDuration({ years: 0, months: 9 })
- * //=> '9 months'
- * formatDuration({ years: 0, months: 9 }, { zero: true })
- * //=> '0 years 9 months'
- *
- * @example
- * // Customize the delimiter
- * formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' })
- * //=> '2 years, 9 months, 3 weeks'
- */
-
- function formatDuration(duration, options) {
- var _ref, _options$locale, _options$format, _options$zero, _options$delimiter;
-
- if (arguments.length < 1) {
- throw new TypeError("1 argument required, but only ".concat(arguments.length, " present"));
- }
-
- var defaultOptions = getDefaultOptions();
- var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;
- var format = (_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : defaultFormat;
- var zero = (_options$zero = options === null || options === void 0 ? void 0 : options.zero) !== null && _options$zero !== void 0 ? _options$zero : false;
- var delimiter = (_options$delimiter = options === null || options === void 0 ? void 0 : options.delimiter) !== null && _options$delimiter !== void 0 ? _options$delimiter : ' ';
-
- if (!locale.formatDistance) {
- return '';
- }
-
- var result = format.reduce(function (acc, unit) {
- var token = "x".concat(unit.replace(/(^.)/, function (m) {
- return m.toUpperCase();
- }));
- var value = duration[unit];
-
- if (typeof value === 'number' && (zero || duration[unit])) {
- return acc.concat(locale.formatDistance(token, value));
- }
-
- return acc;
- }, []).join(delimiter);
- return result;
- }
-
- /**
- * @name intervalToDuration
- * @category Common Helpers
- * @summary Convert interval to duration
- *
- * @description
- * Convert a interval object to a duration object.
- *
- * @param {Interval} interval - the interval to convert to duration
- *
- * @returns {Duration} The duration Object
- * @throws {TypeError} Requires 2 arguments
- * @throws {RangeError} `start` must not be Invalid Date
- * @throws {RangeError} `end` must not be Invalid Date
- *
- * @example
- * // Get the duration between January 15, 1929 and April 4, 1968.
- * intervalToDuration({
- * start: new Date(1929, 0, 15, 12, 0, 0),
- * end: new Date(1968, 3, 4, 19, 5, 0)
- * })
- * // => { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 }
- */
-
- function intervalToDuration(interval) {
- requiredArgs(1, arguments);
- var start = toDate(interval.start);
- var end = toDate(interval.end);
- if (isNaN(start.getTime())) throw new RangeError('Start Date is invalid');
- if (isNaN(end.getTime())) throw new RangeError('End Date is invalid');
- var duration = {};
- duration.years = Math.abs(differenceInYears(end, start));
- var sign = compareAsc(end, start);
- var remainingMonths = add(start, {
- years: sign * duration.years
- });
- duration.months = Math.abs(differenceInMonths(end, remainingMonths));
- var remainingDays = add(remainingMonths, {
- months: sign * duration.months
- });
- duration.days = Math.abs(differenceInDays(end, remainingDays));
- var remainingHours = add(remainingDays, {
- days: sign * duration.days
- });
- duration.hours = Math.abs(differenceInHours(end, remainingHours));
- var remainingMinutes = add(remainingHours, {
- hours: sign * duration.hours
- });
- duration.minutes = Math.abs(differenceInMinutes(end, remainingMinutes));
- var remainingSeconds = add(remainingMinutes, {
- minutes: sign * duration.minutes
- });
- duration.seconds = Math.abs(differenceInSeconds(end, remainingSeconds));
- return duration;
- }
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- function Location({ templateName, location, btr, }) {
- //FIXME: mustache strings show be constructed in a way that ends in the final output of the html but is not present in the
- // javascript code, otherwise when mustache render engine run over the html it will also replace string in the javascript code
- // that is made to run when the browser has javascript enable leading into undefined behavior.
- // that's why in the next fields we are using concatenations to build the mustache placeholder.
- return (h$2(p$2, null,
- btr && `{{` + `#${templateName}.building_name}}`,
- h$2("dd", null,
- (location === null || location === void 0 ? void 0 : location.building_name) ||
- (btr && `{{ ${templateName}.building_name }}`),
- " ",
- (location === null || location === void 0 ? void 0 : location.building_number) ||
- (btr && `{{ ${templateName}.building_number }}`)),
- btr && `{{` + `/${templateName}.building_name}}`,
- btr && `{{` + `#${templateName}.country}}`,
- h$2("dd", null,
- (location === null || location === void 0 ? void 0 : location.country) || (btr && `{{ ${templateName}.country }}`),
- " ",
- (location === null || location === void 0 ? void 0 : location.country_subdivision) ||
- (btr && `{{ ${templateName}.country_subdivision }}`)),
- btr && `{{` + `/${templateName}.country}}`,
- btr && `{{` + `#${templateName}.district}}`,
- h$2("dd", null, (location === null || location === void 0 ? void 0 : location.district) || (btr && `{{ ${templateName}.district }}`)),
- btr && `{{` + `/${templateName}.district}}`,
- btr && `{{` + `#${templateName}.post_code}}`,
- h$2("dd", null, (location === null || location === void 0 ? void 0 : location.post_code) || (btr && `{{ ${templateName}.post_code }}`)),
- btr && `{{` + `/${templateName}.post_code}}`,
- btr && `{{` + `#${templateName}.street}}`,
- h$2("dd", null, (location === null || location === void 0 ? void 0 : location.street) || (btr && `{{ ${templateName}.street }}`)),
- btr && `{{` + `/${templateName}.street}}`,
- btr && `{{` + `#${templateName}.town}}`,
- h$2("dd", null, (location === null || location === void 0 ? void 0 : location.town) || (btr && `{{ ${templateName}.town }}`)),
- btr && `{{` + `/${templateName}.town}}`,
- btr && `{{` + `#${templateName}.town_location}}`,
- h$2("dd", null, (location === null || location === void 0 ? void 0 : location.town_location) ||
- (btr && `{{ ${templateName}.town_location }}`)),
- btr && `{{` + `/${templateName}.town_location}}`));
- }
- function ShowOrderDetails({ order_summary, refund_amount, contract_terms, btr, }) {
- const productList = btr
- ? [{}]
- : (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.products) || [];
- const auditorsList = btr
- ? [{}]
- : (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.auditors) || [];
- const exchangesList = btr
- ? [{}]
- : (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.exchanges) || [];
- const hasDeliveryInfo = btr ||
- !!(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_date) ||
- !!(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_location);
- return (h$2(Page, null,
- h$2("header", null,
- h$2("h1", null,
- "Details of order",
- " ",
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.order_id) || `{{ contract_terms.order_id }}`)),
- h$2("section", null,
- btr && `{{#refund_amount}}`,
- (btr || refund_amount) && (h$2("section", null,
- h$2(InfoBox, null,
- h$2("b", null, "Refunded:"),
- " The merchant refunded you",
- " ",
- h$2("b", null, refund_amount || `{{ refund_amount }}`),
- "."))),
- btr && `{{/refund_amount}}`,
- h$2("section", null,
- h$2(TableExpanded, null,
- h$2("dt", null, "Order summary:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.summary) || `{{ contract_terms.summary }}`),
- h$2("dt", null, "Amount paid:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.amount) || `{{ contract_terms.amount }}`),
- h$2("dt", null, "Order date:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.timestamp)
- ? (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.timestamp.t_s) != "never"
- ? format(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.timestamp.t_s, "dd MMM yyyy HH:mm:ss")
- : "never"
- : `{{ contract_terms.timestamp_str }}`,
- " "),
- h$2("dt", null, "Merchant name:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.merchant.name) ||
- `{{ contract_terms.merchant.name }}`))),
- btr && `{{#contract_terms.hasProducts}}`,
- !productList.length ? null : (h$2("section", null,
- h$2("h2", null, "Products purchased"),
- h$2(TableSimple, null,
- btr && "{{" + "#contract_terms.products" + "}}",
- productList.map((p, i) => {
- const taxList = btr
- ? [{}]
- : p.taxes || [];
- return (h$2(p$2, { key: i },
- h$2("p", null, p.description || `{{description}}`),
- h$2("dl", null,
- h$2("dt", null, "Quantity:"),
- h$2("dd", null, p.quantity || `{{quantity}}`),
- h$2("dt", null, "Price:"),
- h$2("dd", null, p.price || `{{price}}`),
- btr && `{{#hasTaxes}}`,
- !taxList.length ? null : (h$2(p$2, null,
- btr && "{{" + "#taxes" + "}}",
- taxList.map((t, i) => {
- return (h$2(p$2, { key: i },
- h$2("dt", null, t.name || `{{name}}`),
- h$2("dd", null, t.tax || `{{tax}}`)));
- }),
- btr && "{{" + "/taxes" + "}}")),
- btr && `{{/hasTaxes}}`,
- btr && `{{#delivery_date}}`,
- (btr || p.delivery_date) && (h$2(p$2, null,
- h$2("dt", null, "Delivered on:"),
- h$2("dd", null,
- p.delivery_date
- ? p.delivery_date.t_s != "never"
- ? format(p.delivery_date.t_s, "dd MMM yyyy HH:mm:ss")
- : "never"
- : `{{ delivery_date_str }}`,
- " "))),
- btr && `{{/delivery_date}}`,
- btr && `{{#unit}}`,
- (btr || p.unit) && (h$2(p$2, null,
- h$2("dt", null, "Product unit:"),
- h$2("dd", null, p.unit || `{{.}}`))),
- btr && `{{/unit}}`,
- btr && `{{#product_id}}`,
- (btr || p.product_id) && (h$2(p$2, null,
- h$2("dt", null, "Product ID:"),
- h$2("dd", null, p.product_id || `{{.}}`))),
- btr && `{{/product_id}}`)));
- }),
- btr && "{{" + "/contract_terms.products" + "}}"))),
- btr && `{{/contract_terms.hasProducts}}`,
- btr && `{{#contract_terms.has_delivery_info}}`,
- !hasDeliveryInfo ? null : (h$2("section", null,
- h$2("h2", null, "Delivery information"),
- h$2(TableExpanded, null,
- btr && `{{#contract_terms.delivery_date}}`,
- (btr || (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_date)) && (h$2(p$2, null,
- h$2("dt", null, "Delivery date:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_date)
- ? (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_date.t_s) != "never"
- ? format(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_date.t_s, "dd MMM yyyy HH:mm:ss")
- : "never"
- : `{{ contract_terms.delivery_date_str }}`,
- " "))),
- btr && `{{/contract_terms.delivery_date}}`,
- btr && `{{#contract_terms.delivery_location}}`,
- (btr || (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_location)) && (h$2(p$2, null,
- h$2("dt", null, "Delivery address:"),
- h$2(Location, { btr: btr, location: contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_location, templateName: "contract_terms.delivery_location" }))),
- btr && `{{/contract_terms.delivery_location}}`))),
- btr && `{{/contract_terms.has_delivery_info}}`,
- h$2("section", null,
- h$2("h2", null, "Full payment information"),
- h$2(TableExpanded, null,
- h$2("dt", null, "Amount paid:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.amount) || `{{ contract_terms.amount }}`),
- h$2("dt", null, "Wire transfer method:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.wire_method) ||
- `{{ contract_terms.wire_method }}`),
- h$2("dt", null, "Payment deadline:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.pay_deadline)
- ? (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.pay_deadline.t_s) != "never"
- ? format(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.pay_deadline.t_s, "dd MMM yyyy HH:mm:ss")
- : "never"
- : `{{ contract_terms.pay_deadline_str }}`,
- " "),
- h$2("dt", null, "Exchange transfer deadline:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.wire_transfer_deadline)
- ? (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.wire_transfer_deadline.t_s) != "never"
- ? format(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.wire_transfer_deadline.t_s, "dd MMM yyyy HH:mm:ss")
- : "never"
- : `{{ contract_terms.wire_transfer_deadline_str }}`,
- " "),
- h$2("dt", null, "Maximum deposit fee:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.max_fee) || `{{ contract_terms.max_fee }}`),
- h$2("dt", null, "Maximum wire fee:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.max_wire_fee) ||
- `{{ contract_terms.max_wire_fee }}`),
- h$2("dt", null, "Wire fee amortization:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.wire_fee_amortization) ||
- `{{ contract_terms.wire_fee_amortization }}`,
- " ",
- "transactions"))),
- h$2("section", null,
- h$2("h2", null, "Refund information"),
- h$2(TableExpanded, null,
- h$2("dt", null, "Refund deadline:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.refund_deadline)
- ? (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.refund_deadline.t_s) != "never"
- ? format(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.refund_deadline.t_s, "dd MMM yyyy HH:mm:ss")
- : "never"
- : `{{ contract_terms.refund_deadline_str }}`,
- " "),
- btr && `{{#contract_terms.auto_refund}}`,
- (btr || (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.auto_refund)) && (h$2(p$2, null,
- h$2("dt", null, "Attempt autorefund for:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.auto_refund)
- ? (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.auto_refund.d_us) != "forever"
- ? formatDuration(intervalToDuration({
- start: 0,
- end: contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.auto_refund.d_us,
- }))
- : "forever"
- : `{{ contract_terms.auto_refund_str }}`,
- " "))),
- btr && `{{/contract_terms.auto_refund}}`)),
- h$2("section", null,
- h$2("h2", null, "Additional order details"),
- h$2(TableExpanded, null,
- h$2("dt", null, "Public reorder URL:"),
- h$2("dd", null, " -- not defined yet -- "),
- btr && `{{#contract_terms.fulfillment_url}}`,
- (btr || (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.fulfillment_url)) && (h$2(p$2, null,
- h$2("dt", null, "Fulfillment URL:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.fulfillment_url) ||
- (btr && `{{ contract_terms.fulfillment_url }}`)))),
- btr && `{{/contract_terms.fulfillment_url}}`)),
- h$2("section", null,
- h$2("h2", null, "Full merchant information"),
- h$2(TableExpanded, null,
- h$2("dt", null, "Merchant name:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.merchant.name) ||
- `{{ contract_terms.merchant.name }}`),
- h$2("dt", null, "Merchant address:"),
- h$2(Location, { btr: btr, location: contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.merchant.address, templateName: "contract_terms.merchant.address" }),
- h$2("dt", null, "Merchant's jurisdiction:"),
- h$2(Location, { btr: btr, location: contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.merchant.jurisdiction, templateName: "contract_terms.merchant.jurisdiction" }),
- h$2("dt", null, "Merchant URI:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.merchant_base_url) ||
- `{{ contract_terms.merchant_base_url }}`),
- h$2("dt", null, "Merchant's public key:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.merchant_pub) ||
- `{{ contract_terms.merchant_pub }}`))),
- btr && `{{#contract_terms.hasAuditors}}`,
- !auditorsList.length ? null : (h$2("section", null,
- h$2("h2", null, "Auditors accepted by the merchant"),
- h$2(TableExpanded, null,
- btr && "{{" + "#contract_terms.auditors" + "}}",
- auditorsList.map((p, i) => {
- return (h$2(p$2, { key: i },
- h$2("p", null, p.name || `{{name}}`),
- h$2("dt", null, "Auditor's public key:"),
- h$2("dd", null, p.auditor_pub || `{{auditor_pub}}`),
- h$2("dt", null, "Auditor's URL:"),
- h$2("dd", null, p.url || `{{url}}`)));
- }),
- btr && "{{" + "/contract_terms.auditors" + "}}"))),
- btr && `{{/contract_terms.hasAuditors}}`,
- btr && `{{#contract_terms.hasExchanges}}`,
- !exchangesList.length ? null : (h$2("section", null,
- h$2("h2", null, "Exchanges accepted by the merchant"),
- h$2(TableExpanded, null,
- btr && "{{" + "#contract_terms.exchanges" + "}}",
- exchangesList.map((p, i) => {
- return (h$2(p$2, { key: i },
- h$2("dt", null, "Exchange's URL:"),
- h$2("dd", null, p.url || `{{url}}`),
- h$2("dt", null, "Public key:"),
- h$2("dd", null, p.master_pub || `{{master_pub}}`)));
- }),
- btr && "{{" + "/contract_terms.exchanges" + "}}"))),
- btr && `{{/contract_terms.hasExchanges}}`),
- h$2(Footer, null)));
- }
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- function Head() {
- return h$2(p$2, null,
- h$2("meta", { charSet: "UTF-8" }),
- h$2("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0" }),
- h$2("noscript", null,
- h$2("meta", { "http-equiv": "refresh", content: "1" })),
- h$2("title", null, "Tip available"));
- }
- function OfferTip({ tipURI, qr_code, tip_status_url }) {
- h(() => {
- let checkUrl;
- try {
- checkUrl = new URL(tip_status_url ? tip_status_url : "{{& tip_status_url }}");
- }
- catch (e) {
- return;
- }
- const delayMs = 500;
- function check() {
- let retried = false;
- function retryOnce() {
- if (!retried) {
- retried = true;
- check();
- }
- }
- const req = new XMLHttpRequest();
- req.onreadystatechange = function () {
- if (req.readyState === XMLHttpRequest.DONE) {
- if (req.status === 410) {
- window.location.reload();
- }
- setTimeout(retryOnce, delayMs);
- }
- };
- req.onerror = function () {
- setTimeout(retryOnce, delayMs);
- };
- req.open("GET", checkUrl.href);
- req.send();
- }
- setTimeout(check, delayMs);
- });
- return h$2(Page, null,
- h$2("section", null,
- h$2("h1", null, "Collect Taler tip"),
- h$2("p", null, "Scan this QR code with your Taler mobile wallet:"),
- h$2(QRPlaceholder, { dangerouslySetInnerHTML: { __html: qr_code ? qr_code : `{{{ taler_tip_qrcode_svg }}}` } }),
- h$2("p", null,
- h$2(WalletLink, { href: tipURI ? tipURI : `{{ taler_tip_uri }}` }, "Or open your Taler wallet")),
- h$2("p", null,
- h$2("a", { href: "https://wallet.taler.net/" }, "Don't have a Taler wallet yet? Install it!"))),
- h$2(Footer, null));
- }
- function mount() {
- try {
- const fromLocation = new URL(window.location.href).searchParams;
- const uri = fromLocation.get('tip_uri') || undefined;
- const tsu = fromLocation.get('tip_status_url') || undefined;
- P$1(h$2(OfferTip, { tipURI: uri, tip_status_url: tsu }), document.body);
- }
- catch (e) {
- console.error("got error", e);
- if (e instanceof Error) {
- document.body.innerText = `Fatal error: "${e.message}". Please report this bug at https://bugs.gnunet.org/.`;
- }
- }
- }
- function buildTimeRendering() {
- return {
- head: S(h$2(Head, null)),
- body: S(h$2(ShowOrderDetails, null))
- };
- }
-
- exports.Head = Head;
- exports.OfferTip = OfferTip;
- exports.buildTimeRendering = buildTimeRendering;
- exports.mount = mount;
-
- Object.defineProperty(exports, '__esModule', { value: true });
-
- return exports;
-
-})({});
+/*! normalize.ss v8.0.1 | MIT License | github.com/necolas/normalize.cs */
+</style>
+ </head>
+ <script id="built_time_data">
+ </script>
+ <body>
+ <div class="p1b3vqup"><header><h1>Details of order {{ contract_terms.order_id }}</h1></header><section><section><dl class="t2c81u8"><dt>Order summary:</dt><dd>{{ contract_terms.summary }}</dd><dt>Amount paid:</dt><dd>{{ contract_terms.amount }}</dd><dt>Order date:</dt><dd>{{ contract_terms.timestamp_str }} </dd><dt>Merchant name:</dt><dd>{{ contract_terms.merchant.name }}</dd></dl></section><section><h2>Full payment information</h2><dl class="t2c81u8"><dt>Amount paid:</dt><dd>{{ contract_terms.amount }}</dd><dt>Wire transfer method:</dt><dd>{{ contract_terms.wire_method }}</dd><dt>Payment deadline:</dt><dd>{{ contract_terms.pay_deadline_str }} </dd><dt>Exchange transfer deadline:</dt><dd>{{ contract_terms.wire_transfer_deadline_str }} </dd><dt>Maximum deposit fee:</dt><dd>{{ contract_terms.max_fee }}</dd><dt>Maximum wire fee:</dt><dd>{{ contract_terms.max_wire_fee }}</dd><dt>Wire fee amortization:</dt><dd>{{ contract_terms.wire_fee_amortization }} transactions</dd></dl></section><section><h2>Refund information</h2><dl class="t2c81u8"><dt>Refund deadline:</dt><dd>{{ contract_terms.refund_deadline_str }} </dd></dl></section><section><h2>Additional order details</h2><dl class="t2c81u8"><dt>Public reorder URL:</dt><dd> -- not defined yet -- </dd></dl></section><section><h2>Full merchant information</h2><dl class="t2c81u8"><dt>Merchant name:</dt><dd>{{ contract_terms.merchant.name }}</dd><dt>Merchant address:</dt><dd> </dd><dd> </dd><dd></dd><dd></dd><dd></dd><dd></dd><dd></dd><dt>Merchant's jurisdiction:</dt><dd> </dd><dd> </dd><dd></dd><dd></dd><dd></dd><dd></dd><dd></dd><dt>Merchant URI:</dt><dd>{{ contract_terms.merchant_base_url }}</dd><dt>Merchant's public key:</dt><dd>{{ contract_terms.merchant_pub }}</dd></dl></section></section><footer class="fef0x5t"><p><a href="https://taler.net/">Learn more about GNU Taler on our website.</a><p>Copyright © 2014—2021 Taler Systems SA</p></p></footer></div>
+ <script>"use strict";var page=(()=>{var Ke=Object.defineProperty;var On=Object.getOwnPropertyDescriptor;var Mn=Object.getOwnPropertyNames;var Dn=Object.prototype.hasOwnProperty;var Sn=(t,r)=>{for(var e in r)Ke(t,e,{get:r[e],enumerable:!0})},Cn=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Mn(r))!Dn.call(t,a)&&a!==e&&Ke(t,a,{get:()=>r[a],enumerable:!(n=On(r,a))||n.enumerable});return t};var Pn=t=>Cn(Ke({},"__esModule",{value:!0}),t);var Ao={};Sn(Ao,{Head:()=>kn,OfferTip:()=>Tn,buildTimeRendering:()=>Io,mount:()=>Eo});var _e,_,zt,Wn,ce,Vt,Xt,Se={},Gt=[],En=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function V(t,r){for(var e in r)t[e]=r[e];return t}function Jt(t){var r=t.parentNode;r&&r.removeChild(t)}function s(t,r,e){var n,a,o,i={};for(o in r)o=="key"?n=r[o]:o=="ref"?a=r[o]:i[o]=r[o];if(arguments.length>2&&(i.children=arguments.length>3?_e.call(arguments,2):e),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)i[o]===void 0&&(i[o]=t.defaultProps[o]);return pe(t,i,n,a,null)}function pe(t,r,e,n,a){var o={type:t,props:r,key:e,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a==null?++zt:a};return a==null&&_.vnode!=null&&_.vnode(o),o}function tt(){return{current:null}}function S(t){return t.children}function L(t,r){this.props=t,this.context=r}function he(t,r){if(r==null)return t.__?he(t.__,t.__.__k.indexOf(t)+1):null;for(var e;r<t.__k.length;r++)if((e=t.__k[r])!=null&&e.__e!=null)return e.__e;return typeof t.type=="function"?he(t):null}function Zt(t){var r,e;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if((e=t.__k[r])!=null&&e.__e!=null){t.__e=t.__c.base=e.__e;break}return Zt(t)}}function et(t){(!t.__d&&(t.__d=!0)&&ce.push(t)&&!Ce.__r++||Vt!==_.debounceRendering)&&((Vt=_.debounceRendering)||setTimeout)(Ce)}function Ce(){for(var t;Ce.__r=ce.length;)t=ce.sort(function(r,e){return r.__v.__b-e.__v.__b}),ce=[],t.some(function(r){var e,n,a,o,i,l;r.__d&&(i=(o=(e=r).__v).__e,(l=e.__P)&&(n=[],(a=V({},o)).__v=o.__v+1,rt(l,o,a,e.__n,l.ownerSVGElement!==void 0,o.__h!=null?[i]:null,n,i==null?he(o):i,o.__h),rr(n,o),o.__e!=i&&Zt(o)))})}function Kt(t,r,e,n,a,o,i,l,f,c){var u,h,p,d,v,w,m,T=n&&n.__k||Gt,P=T.length;for(e.__k=[],u=0;u<r.length;u++)if((d=e.__k[u]=(d=r[u])==null||typeof d=="boolean"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?pe(null,d,null,null,d):Array.isArray(d)?pe(S,{children:d},null,null,null):d.__b>0?pe(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=e,d.__b=e.__b+1,(p=T[u])===null||p&&d.key==p.key&&d.type===p.type)T[u]=void 0;else for(h=0;h<P;h++){if((p=T[h])&&d.key==p.key&&d.type===p.type){T[h]=void 0;break}p=null}rt(t,d,p=p||Se,a,o,i,l,f,c),v=d.__e,(h=d.ref)&&p.ref!=h&&(m||(m=[]),p.ref&&m.push(p.ref,null,d),m.push(h,d.__c||v,d)),v!=null?(w==null&&(w=v),typeof d.type=="function"&&d.__k===p.__k?d.__d=f=er(d,f,t):f=tr(t,d,p,T,v,f),typeof e.type=="function"&&(e.__d=f)):f&&p.__e==f&&f.parentNode!=t&&(f=he(p))}for(e.__e=w,u=P;u--;)T[u]!=null&&ar(T[u],T[u]);if(m)for(u=0;u<m.length;u++)nr(m[u],m[++u],m[++u])}function er(t,r,e){for(var n,a=t.__k,o=0;a&&o<a.length;o++)(n=a[o])&&(n.__=t,r=typeof n.type=="function"?er(n,r,e):tr(e,n,n,a,n.__e,r));return r}function R(t,r){return r=r||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(e){R(e,r)}):r.push(t)),r}function tr(t,r,e,n,a,o){var i,l,f;if(r.__d!==void 0)i=r.__d,r.__d=void 0;else if(e==null||a!=o||a.parentNode==null)e:if(o==null||o.parentNode!==t)t.appendChild(a),i=null;else{for(l=o,f=0;(l=l.nextSibling)&&f<n.length;f+=1)if(l==a)break e;t.insertBefore(a,o),i=o}return i!==void 0?i:a.nextSibling}function In(t,r,e,n,a){var o;for(o in e)o==="children"||o==="key"||o in r||Pe(t,o,null,e[o],n);for(o in r)a&&typeof r[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||e[o]===r[o]||Pe(t,o,r[o],e[o],n)}function Bt(t,r,e){r[0]==="-"?t.setProperty(r,e):t[r]=e==null?"":typeof e!="number"||En.test(r)?e:e+"px"}function Pe(t,r,e,n,a){var o;e:if(r==="style")if(typeof e=="string")t.style.cssText=e;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(r in n)e&&r in e||Bt(t.style,r,"");if(e)for(r in e)n&&e[r]===n[r]||Bt(t.style,r,e[r])}else if(r[0]==="o"&&r[1]==="n")o=r!==(r=r.replace(/Capture$/,"")),r=r.toLowerCase()in t?r.toLowerCase().slice(2):r.slice(2),t.l||(t.l={}),t.l[r+o]=e,e?n||t.addEventListener(r,o?Qt:jt,o):t.removeEventListener(r,o?Qt:jt,o);else if(r!=="dangerouslySetInnerHTML"){if(a)r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(r!=="href"&&r!=="list"&&r!=="form"&&r!=="tabIndex"&&r!=="download"&&r in t)try{t[r]=e==null?"":e;break e}catch(i){}typeof e=="function"||(e==null||e===!1&&r.indexOf("-")==-1?t.removeAttribute(r):t.setAttribute(r,e))}}function jt(t){this.l[t.type+!1](_.event?_.event(t):t)}function Qt(t){this.l[t.type+!0](_.event?_.event(t):t)}function rt(t,r,e,n,a,o,i,l,f){var c,u,h,p,d,v,w,m,T,P,U,Y,F,E,b,k=r.type;if(r.constructor!==void 0)return null;e.__h!=null&&(f=e.__h,l=r.__e=e.__e,r.__h=null,o=[l]),(c=_.__b)&&c(r);try{e:if(typeof k=="function"){if(m=r.props,T=(c=k.contextType)&&n[c.__c],P=c?T?T.props.value:c.__:n,e.__c?w=(u=r.__c=e.__c).__=u.__E:("prototype"in k&&k.prototype.render?r.__c=u=new k(m,P):(r.__c=u=new L(m,P),u.constructor=k,u.render=Un),T&&T.sub(u),u.props=m,u.state||(u.state={}),u.context=P,u.__n=n,h=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),k.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=V({},u.__s)),V(u.__s,k.getDerivedStateFromProps(m,u.__s))),p=u.props,d=u.state,h)k.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(k.getDerivedStateFromProps==null&&m!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(m,P),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(m,u.__s,P)===!1||r.__v===e.__v){for(u.props=m,u.state=u.__s,r.__v!==e.__v&&(u.__d=!1),u.__v=r,r.__e=e.__e,r.__k=e.__k,r.__k.forEach(function(A){A&&(A.__=r)}),U=0;U<u._sb.length;U++)u.__h.push(u._sb[U]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(m,u.__s,P),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,d,v)})}if(u.context=P,u.props=m,u.__v=r,u.__P=t,Y=_.__r,F=0,"prototype"in k&&k.prototype.render){for(u.state=u.__s,u.__d=!1,Y&&Y(r),c=u.render(u.props,u.state,u.context),E=0;E<u._sb.length;E++)u.__h.push(u._sb[E]);u._sb=[]}else do u.__d=!1,Y&&Y(r),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++F<25);u.state=u.__s,u.getChildContext!=null&&(n=V(V({},n),u.getChildContext())),h||u.getSnapshotBeforeUpdate==null||(v=u.getSnapshotBeforeUpdate(p,d)),b=c!=null&&c.type===S&&c.key==null?c.props.children:c,Kt(t,Array.isArray(b)?b:[b],r,e,n,a,o,i,l,f),u.base=r.__e,r.__h=null,u.__h.length&&i.push(u),w&&(u.__E=u.__=null),u.__e=!1}else o==null&&r.__v===e.__v?(r.__k=e.__k,r.__e=e.__e):r.__e=An(e.__e,r,e,n,a,o,i,f);(c=_.diffed)&&c(r)}catch(A){r.__v=null,(f||o!=null)&&(r.__e=l,r.__h=!!f,o[o.indexOf(l)]=null),_.__e(A,r,e)}}function rr(t,r){_.__c&&_.__c(r,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(n){n.call(e)})}catch(n){_.__e(n,e.__v)}})}function An(t,r,e,n,a,o,i,l){var f,c,u,h=e.props,p=r.props,d=r.type,v=0;if(d==="svg"&&(a=!0),o!=null){for(;v<o.length;v++)if((f=o[v])&&"setAttribute"in f==!!d&&(d?f.localName===d:f.nodeType===3)){t=f,o[v]=null;break}}if(t==null){if(d===null)return document.createTextNode(p);t=a?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,l=!1}if(d===null)h===p||l&&t.data===p||(t.data=p);else{if(o=o&&_e.call(t.childNodes),c=(h=e.props||Se).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!l){if(o!=null)for(h={},v=0;v<t.attributes.length;v++)h[t.attributes[v].name]=t.attributes[v].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(In(t,p,h,a,l),u)r.__k=[];else if(v=r.props.children,Kt(t,Array.isArray(v)?v:[v],r,e,n,a&&d!=="foreignObject",o,i,o?o[0]:e.__k&&he(e,0),l),o!=null)for(v=o.length;v--;)o[v]!=null&&Jt(o[v]);l||("value"in p&&(v=p.value)!==void 0&&(v!==t.value||d==="progress"&&!v||d==="option"&&v!==h.value)&&Pe(t,"value",v,h.value,!1),"checked"in p&&(v=p.checked)!==void 0&&v!==t.checked&&Pe(t,"checked",v,h.checked,!1))}return t}function nr(t,r,e){try{typeof t=="function"?t(r):t.current=r}catch(n){_.__e(n,e)}}function ar(t,r,e){var n,a;if(_.unmount&&_.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||nr(n,null,r)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){_.__e(o,r)}n.base=n.__P=null,t.__c=void 0}if(n=t.__k)for(a=0;a<n.length;a++)n[a]&&ar(n[a],r,e||typeof t.type!="function");e||t.__e==null||Jt(t.__e),t.__=t.__e=t.__d=void 0}function Un(t,r,e){return this.constructor(t,e)}function B(t,r,e){var n,a,o;_.__&&_.__(t,r),a=(n=typeof e=="function")?null:e&&e.__k||r.__k,o=[],rt(r,t=(!n&&e||r).__k=s(S,null,[t]),a||Se,Se,r.ownerSVGElement!==void 0,!n&&e?[e]:a?null:r.firstChild?_e.call(r.childNodes):null,o,!n&&e?e:a?a.__e:r.firstChild,n),rr(o,t)}function nt(t,r){B(t,r,nt)}function or(t,r,e){var n,a,o,i=V({},t.props);for(o in r)o=="key"?n=r[o]:o=="ref"?a=r[o]:i[o]=r[o];return arguments.length>2&&(i.children=arguments.length>3?_e.call(arguments,2):e),pe(t.type,i,n||t.key,a||t.ref,null)}function at(t,r){var e={__c:r="__cC"+Xt++,__:t,Consumer:function(n,a){return n.children(a)},Provider:function(n){var a,o;return this.getChildContext||(a=[],(o={})[r]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&a.some(et)},this.sub=function(i){a.push(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){a.splice(a.indexOf(i),1),l&&l.call(i)}}),n.children}};return e.Provider.__=e.Consumer.contextType=e}_e=Gt.slice,_={__e:function(t,r,e,n){for(var a,o,i;r=r.__;)if((a=r.__c)&&!a.__)try{if((o=a.constructor)&&o.getDerivedStateFromError!=null&&(a.setState(o.getDerivedStateFromError(t)),i=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(t,n||{}),i=a.__d),i)return a.__E=a}catch(l){t=l}throw t}},zt=0,Wn=function(t){return t!=null&&t.constructor===void 0},L.prototype.setState=function(t,r){var e;e=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=V({},this.state),typeof t=="function"&&(t=t(V({},e),this.props)),t&&V(e,t),t!=null&&this.__v&&(r&&this._sb.push(r),et(this))},L.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),et(this))},L.prototype.render=S,ce=[],Ce.__r=0,Xt=0;var Yn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,cr=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,We=/[\s\n\\/='"\0<>]/,pr=/^xlink:?./,Nn=/["&<]/;function ye(t){if(Nn.test(t+="")===!1)return t;for(var r=0,e=0,n="",a="";e<t.length;e++){switch(t.charCodeAt(e)){case 34:a="&quot;";break;case 38:a="&amp;";break;case 60:a="&lt;";break;default:continue}e!==r&&(n+=t.slice(r,e)),n+=a,r=e+1}return e!==r&&(n+=t.slice(r,e)),n}var ir=function(t,r){return String(t).replace(/(\n+)/g,"$1"+(r||" "))},ur=function(t,r,e){return String(t).length>(r||40)||!e&&String(t).indexOf(`
+`)!==-1||String(t).indexOf("<")!==-1},sr={},Fn=/([A-Z])/g;function hr(t){var r="";for(var e in t){var n=t[e];n!=null&&n!==""&&(r&&(r+=" "),r+=e[0]=="-"?e:sr[e]||(sr[e]=e.replace(Fn,"-$1").toLowerCase()),r=typeof n=="number"&&Yn.test(e)===!1?r+": "+n+"px;":r+": "+n+";")}return r||void 0}function ut(t,r){return Array.isArray(r)?r.reduce(ut,t):r!=null&&r!==!1&&t.push(r),t}function lr(){this.__d=!0}function _r(t,r){return{__v:t,context:r,props:t.props,setState:lr,forceUpdate:lr,__d:!0,__h:[]}}function Ee(t,r){var e=t.contextType,n=e&&r[e.__c];return e!=null?n?n.props.value:e.__:r}var ot=[];function ve(t,r,e,n,a,o){if(t==null||typeof t=="boolean")return"";if(typeof t!="object")return typeof t=="function"?"":ye(t);var i=e.pretty,l=i&&typeof i=="string"?i:" ";if(Array.isArray(t)){for(var f="",c=0;c<t.length;c++)i&&c>0&&(f+=`
+`),f+=ve(t[c],r,e,n,a,o);return f}if(t.constructor!==void 0)return"";var u,h=t.type,p=t.props,d=!1;if(typeof h=="function"){if(d=!0,!e.shallow||!n&&e.renderRootComponent!==!1){if(h===S){var v=[];return ut(v,t.props.children),ve(v,r,e,e.shallowHighOrder!==!1,a,o)}var w,m=t.__c=_r(t,r);_.__b&&_.__b(t);var T=_.__r;if(h.prototype&&typeof h.prototype.render=="function"){var P=Ee(h,r);(m=t.__c=new h(p,P)).__v=t,m._dirty=m.__d=!0,m.props=p,m.state==null&&(m.state={}),m._nextState==null&&m.__s==null&&(m._nextState=m.__s=m.state),m.context=P,h.getDerivedStateFromProps?m.state=Object.assign({},m.state,h.getDerivedStateFromProps(m.props,m.state)):m.componentWillMount&&(m.componentWillMount(),m.state=m._nextState!==m.state?m._nextState:m.__s!==m.state?m.__s:m.state),T&&T(t),w=m.render(m.props,m.state,m.context)}else for(var U=Ee(h,r),Y=0;m.__d&&Y++<25;)m.__d=!1,T&&T(t),w=h.call(t.__c,p,U);return m.getChildContext&&(r=Object.assign({},r,m.getChildContext())),_.diffed&&_.diffed(t),ve(w,r,e,e.shallowHighOrder!==!1,a,o)}h=(u=h).displayName||u!==Function&&u.name||function(Ge){var Je=(Function.prototype.toString.call(Ge).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!Je){for(var De=-1,Ze=ot.length;Ze--;)if(ot[Ze]===Ge){De=Ze;break}De<0&&(De=ot.push(Ge)-1),Je="UnnamedComponent"+De}return Je}(u)}var F,E,b="<"+h;if(p){var k=Object.keys(p);e&&e.sortAttributes===!0&&k.sort();for(var A=0;A<k.length;A++){var x=k[A],M=p[x];if(x!=="children"){if(!We.test(x)&&(e&&e.allAttributes||x!=="key"&&x!=="ref"&&x!=="__self"&&x!=="__source")){if(x==="defaultValue")x="value";else if(x==="defaultChecked")x="checked";else if(x==="defaultSelected")x="selected";else if(x==="className"){if(p.class!==void 0)continue;x="class"}else a&&pr.test(x)&&(x=x.toLowerCase().replace(/^xlink:?/,"xlink:"));if(x==="htmlFor"){if(p.for)continue;x="for"}x==="style"&&M&&typeof M=="object"&&(M=hr(M)),x[0]==="a"&&x[1]==="r"&&typeof M=="boolean"&&(M=String(M));var O=e.attributeHook&&e.attributeHook(x,M,r,e,d);if(O||O==="")b+=O;else if(x==="dangerouslySetInnerHTML")E=M&&M.__html;else if(h==="textarea"&&x==="value")F=M;else if((M||M===0||M==="")&&typeof M!="function"){if(!(M!==!0&&M!==""||(M=x,e&&e.xml))){b=b+" "+x;continue}if(x==="value"){if(h==="select"){o=M;continue}h==="option"&&o==M&&p.selected===void 0&&(b+=" selected")}b=b+" "+x+'="'+ye(M)+'"'}}}else F=M}}if(i){var q=b.replace(/\n\s*/," ");q===b||~q.indexOf(`
+`)?i&&~b.indexOf(`
+`)&&(b+=`
+`):b=q}if(b+=">",We.test(h))throw new Error(h+" is not a valid HTML tag name in "+b);var G,N=cr.test(h)||e.voidElements&&e.voidElements.test(h),I=[];if(E)i&&ur(E)&&(E=`
+`+l+ir(E,l)),b+=E;else if(F!=null&&ut(G=[],F).length){for(var J=i&&~b.indexOf(`
+`),Ht=!1,Qe=0;Qe<G.length;Qe++){var ze=G[Qe];if(ze!=null&&ze!==!1){var te=ve(ze,r,e,!0,h==="svg"||h!=="foreignObject"&&a,o);if(i&&!J&&ur(te)&&(J=!0),te)if(i){var $t=te.length>0&&te[0]!="<";Ht&&$t?I[I.length-1]+=te:I.push(te),Ht=$t}else I.push(te)}}if(i&&J)for(var Xe=I.length;Xe--;)I[Xe]=`
+`+l+ir(I[Xe],l)}if(I.length||E)b+=I.join("");else if(e&&e.xml)return b.substring(0,b.length-1)+" />";return!N||G||E?(i&&~b.indexOf(`
+`)&&(b+=`
+`),b=b+"</"+h+">"):b=b.replace(/>$/," />"),b}var Ln={shallow:!0};Z.render=Z;var qn=function(t,r){return Z(t,r,Ln)},fr=[];function Z(t,r,e){r=r||{};var n=_.__s;_.__s=!0;var a,o=s(S,null);return o.__k=[t],a=e&&(e.pretty||e.voidElements||e.sortAttributes||e.shallow||e.allAttributes||e.xml||e.attributeHook)?ve(t,r,e):ge(t,r,!1,void 0,o),_.__c&&_.__c(t,fr),_.__s=n,fr.length=0,a}function it(t){return t==null||typeof t=="boolean"?null:typeof t=="string"||typeof t=="number"||typeof t=="bigint"?s(null,null,t):t}function Rn(t,r){return t==="className"?"class":t==="htmlFor"?"for":t==="defaultValue"?"value":t==="defaultChecked"?"checked":t==="defaultSelected"?"selected":r&&pr.test(t)?t.toLowerCase().replace(/^xlink:?/,"xlink:"):t}function Hn(t,r){return t==="style"&&r!=null&&typeof r=="object"?hr(r):t[0]==="a"&&t[1]==="r"&&typeof r=="boolean"?String(r):r}var dr=Array.isArray,mr=Object.assign;function ge(t,r,e,n,a){if(t==null||t===!0||t===!1||t==="")return"";if(typeof t!="object")return typeof t=="function"?"":ye(t);if(dr(t)){var o="";a.__k=t;for(var i=0;i<t.length;i++)o+=ge(t[i],r,e,n,a),t[i]=it(t[i]);return o}if(t.constructor!==void 0)return"";t.__=a,_.__b&&_.__b(t);var l=t.type,f=t.props;if(typeof l=="function"){var c;if(l===S)c=f.children;else{c=l.prototype&&typeof l.prototype.render=="function"?function(k,A){var x=k.type,M=Ee(x,A),O=new x(k.props,M);k.__c=O,O.__v=k,O.__d=!0,O.props=k.props,O.state==null&&(O.state={}),O.__s==null&&(O.__s=O.state),O.context=M,x.getDerivedStateFromProps?O.state=mr({},O.state,x.getDerivedStateFromProps(O.props,O.state)):O.componentWillMount&&(O.componentWillMount(),O.state=O.__s!==O.state?O.__s:O.state);var q=_.__r;return q&&q(k),O.render(O.props,O.state,O.context)}(t,r):function(k,A){var x,M=_r(k,A),O=Ee(k.type,A);k.__c=M;for(var q=_.__r,G=0;M.__d&&G++<25;)M.__d=!1,q&&q(k),x=k.type.call(M,k.props,O);return x}(t,r);var u=t.__c;u.getChildContext&&(r=mr({},r,u.getChildContext()))}var h=ge(c=c!=null&&c.type===S&&c.key==null?c.props.children:c,r,e,n,t);return _.diffed&&_.diffed(t),t.__=void 0,_.unmount&&_.unmount(t),h}var p,d,v="<";if(v+=l,f)for(var w in p=f.children,f){var m=f[w];if(!(w==="key"||w==="ref"||w==="__self"||w==="__source"||w==="children"||w==="className"&&"class"in f||w==="htmlFor"&&"for"in f||We.test(w))){if(m=Hn(w=Rn(w,e),m),w==="dangerouslySetInnerHTML")d=m&&m.__html;else if(l==="textarea"&&w==="value")p=m;else if((m||m===0||m==="")&&typeof m!="function"){if(m===!0||m===""){m=w,v=v+" "+w;continue}if(w==="value"){if(l==="select"){n=m;continue}l!=="option"||n!=m||"selected"in f||(v+=" selected")}v=v+" "+w+'="'+ye(m)+'"'}}}var T=v;if(v+=">",We.test(l))throw new Error(l+" is not a valid HTML tag name in "+v);var P="",U=!1;if(d)P+=d,U=!0;else if(typeof p=="string")P+=ye(p),U=!0;else if(dr(p)){t.__k=p;for(var Y=0;Y<p.length;Y++){var F=p[Y];if(p[Y]=it(F),F!=null&&F!==!1){var E=ge(F,r,l==="svg"||l!=="foreignObject"&&e,n,t);E&&(P+=E,U=!0)}}}else if(p!=null&&p!==!1&&p!==!0){t.__k=[it(p)];var b=ge(p,r,l==="svg"||l!=="foreignObject"&&e,n,t);b&&(P+=b,U=!0)}if(_.diffed&&_.diffed(t),t.__=void 0,_.unmount&&_.unmount(t),U)v+=P;else if(cr.test(l))return T+" />";return v+"</"+l+">"}Z.shallowRender=qn;var re,W,st,vr,se=0,Tr=[],Ie=[],gr=_.__b,yr=_.__r,xr=_.diffed,wr=_.__c,br=_.unmount;function le(t,r){_.__h&&_.__h(W,t,se||r),se=0;var e=W.__H||(W.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({__V:Ie}),e.__[t]}function ft(t){return se=1,dt(Wr,t)}function dt(t,r,e){var n=le(re++,2);if(n.t=t,!n.__c&&(n.__=[e?e(r):Wr(void 0,r),function(o){var i=n.__N?n.__N[0]:n.__[0],l=n.t(i,o);i!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=W,!W.u)){W.u=!0;var a=W.shouldComponentUpdate;W.shouldComponentUpdate=function(o,i,l){if(!n.__c.__H)return!0;var f=n.__c.__H.__.filter(function(u){return u.__c});if(f.every(function(u){return!u.__N}))return!a||a.call(this,o,i,l);var c=!1;return f.forEach(function(u){if(u.__N){var h=u.__[0];u.__=u.__N,u.__N=void 0,h!==u.__[0]&&(c=!0)}}),!(!c&&n.__c.props===o)&&(!a||a.call(this,o,i,l))}}return n.__N||n.__}function xe(t,r){var e=le(re++,3);!_.__s&&mt(e.__H,r)&&(e.__=t,e.i=r,W.__H.__h.push(e))}function we(t,r){var e=le(re++,4);!_.__s&&mt(e.__H,r)&&(e.__=t,e.i=r,W.__h.push(e))}function Or(t){return se=5,Ue(function(){return{current:t}},[])}function Mr(t,r,e){se=6,we(function(){return typeof t=="function"?(t(r()),function(){return t(null)}):t?(t.current=r(),function(){return t.current=null}):void 0},e==null?e:e.concat(t))}function Ue(t,r){var e=le(re++,7);return mt(e.__H,r)?(e.__V=t(),e.i=r,e.__h=t,e.__V):e.__}function Dr(t,r){return se=8,Ue(function(){return t},r)}function Sr(t){var r=W.context[t.__c],e=le(re++,9);return e.c=t,r?(e.__==null&&(e.__=!0,r.sub(W)),r.props.value):t.__}function Cr(t,r){_.useDebugValue&&_.useDebugValue(r?r(t):t)}function Pr(){var t=le(re++,11);if(!t.__){for(var r=W.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;var e=r.__m||(r.__m=[0,0]);t.__="P"+e[0]+"-"+e[1]++}return t.__}function $n(){for(var t;t=Tr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ae),t.__H.__h.forEach(lt),t.__H.__h=[]}catch(r){t.__H.__h=[],_.__e(r,t.__v)}}_.__b=function(t){W=null,gr&&gr(t)},_.__r=function(t){yr&&yr(t),re=0;var r=(W=t.__c).__H;r&&(st===W?(r.__h=[],W.__h=[],r.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Ie,e.__N=e.i=void 0})):(r.__h.forEach(Ae),r.__h.forEach(lt),r.__h=[])),st=W},_.diffed=function(t){xr&&xr(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(Tr.push(r)!==1&&vr===_.requestAnimationFrame||((vr=_.requestAnimationFrame)||Vn)($n)),r.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Ie&&(e.__=e.__V),e.i=void 0,e.__V=Ie})),st=W=null},_.__c=function(t,r){r.some(function(e){try{e.__h.forEach(Ae),e.__h=e.__h.filter(function(n){return!n.__||lt(n)})}catch(n){r.some(function(a){a.__h&&(a.__h=[])}),r=[],_.__e(n,e.__v)}}),wr&&wr(t,r)},_.unmount=function(t){br&&br(t);var r,e=t.__c;e&&e.__H&&(e.__H.__.forEach(function(n){try{Ae(n)}catch(a){r=a}}),e.__H=void 0,r&&_.__e(r,e.__v))};var kr=typeof requestAnimationFrame=="function";function Vn(t){var r,e=function(){clearTimeout(n),kr&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(e,100);kr&&(r=requestAnimationFrame(e))}function Ae(t){var r=W,e=t.__c;typeof e=="function"&&(t.__c=void 0,e()),W=r}function lt(t){var r=W;t.__c=t.__(),W=r}function mt(t,r){return!t||t.length!==r.length||r.some(function(e,n){return e!==t[n]})}function Wr(t,r){return typeof r=="function"?r(t):r}function Bn(t){var r={};return function(e){return r[e]===void 0&&(r[e]=t(e)),r[e]}}var Er=Bn;var jn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Qn=Er(function(t){return jn.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),Ir=Qn;function Hr(t,r){for(var e in r)t[e]=r[e];return t}function pt(t,r){for(var e in t)if(e!=="__source"&&!(e in r))return!0;for(var n in r)if(n!=="__source"&&t[n]!==r[n])return!0;return!1}function ct(t,r){return t===r&&(t!==0||1/t==1/r)||t!=t&&r!=r}function ht(t){this.props=t}function zn(t,r){function e(a){var o=this.props.ref,i=o==a.ref;return!i&&o&&(o.call?o(null):o.current=null),r?!r(this.props,a)||!i:pt(this.props,a)}function n(a){return this.shouldComponentUpdate=e,s(t,a)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(ht.prototype=new L).isPureReactComponent=!0,ht.prototype.shouldComponentUpdate=function(t,r){return pt(this.props,t)||pt(this.state,r)};var Ar=_.__b;_.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Ar&&Ar(t)};var Xn=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Gn(t){function r(e){var n=Hr({},e);return delete n.ref,t(n,e.ref||null)}return r.$$typeof=Xn,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(t.displayName||t.name)+")",r}var Ur=function(t,r){return t==null?null:R(R(t).map(r))},Jn={map:Ur,forEach:Ur,count:function(t){return t?R(t).length:0},only:function(t){var r=R(t);if(r.length!==1)throw"Children.only";return r[0]},toArray:R},Zn=_.__e;_.__e=function(t,r,e,n){if(t.then){for(var a,o=r;o=o.__;)if((a=o.__c)&&a.__c)return r.__e==null&&(r.__e=e.__e,r.__k=e.__k),a.__c(t,r)}Zn(t,r,e,n)};var Yr=_.unmount;function $r(t,r,e){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Hr({},t)).__c!=null&&(t.__c.__P===e&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return $r(n,r,e)})),t}function Vr(t,r,e){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Vr(n,r,e)}),t.__c&&t.__c.__P===r&&(t.__e&&e.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=e)),t}function Ye(){this.__u=0,this.t=null,this.__b=null}function Br(t){var r=t.__.__c;return r&&r.__a&&r.__a(t)}function Kn(t){var r,e,n;function a(o){if(r||(r=t()).then(function(i){e=i.default||i},function(i){n=i}),n)throw n;if(!e)throw r;return s(e,o)}return a.displayName="Lazy",a.__f=!0,a}function be(){this.u=null,this.o=null}_.unmount=function(t){var r=t.__c;r&&r.__R&&r.__R(),r&&t.__h===!0&&(t.type=null),Yr&&Yr(t)},(Ye.prototype=new L).__c=function(t,r){var e=r.__c,n=this;n.t==null&&(n.t=[]),n.t.push(e);var a=Br(n.__v),o=!1,i=function(){o||(o=!0,e.__R=null,a?a(l):l())};e.__R=i;var l=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Vr(c,c.__c.__P,c.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.t.pop();)u.forceUpdate()}},f=r.__h===!0;n.__u++||f||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(i,i)},Ye.prototype.componentWillUnmount=function(){this.t=[]},Ye.prototype.render=function(t,r){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=$r(this.__b,e,n.__O=n.__P)}this.__b=null}var a=r.__a&&s(S,null,t.fallback);return a&&(a.__h=null),[s(S,null,r.__a?null:t.children),a]};var Nr=function(t,r,e){if(++e[1]===e[0]&&t.o.delete(r),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(e=t.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;t.u=e=e[2]}};function ea(t){return this.getChildContext=function(){return t.context},t.children}function ta(t){var r=this,e=t.i;r.componentWillUnmount=function(){B(null,r.l),r.l=null,r.i=null},r.i&&r.i!==e&&r.componentWillUnmount(),t.__v?(r.l||(r.i=e,r.l={nodeType:1,parentNode:e,childNodes:[],appendChild:function(n){this.childNodes.push(n),r.i.appendChild(n)},insertBefore:function(n,a){this.childNodes.push(n),r.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),r.i.removeChild(n)}}),B(s(ea,{context:r.context},t.__v),r.l)):r.l&&r.componentWillUnmount()}function ra(t,r){var e=s(ta,{__v:t,i:r});return e.containerInfo=r,e}(be.prototype=new L).__a=function(t){var r=this,e=Br(r.__v),n=r.o.get(t);return n[0]++,function(a){var o=function(){r.props.revealOrder?(n.push(a),Nr(r,t,n)):a()};e?e(o):o()}},be.prototype.render=function(t){this.u=null,this.o=new Map;var r=R(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&r.reverse();for(var e=r.length;e--;)this.o.set(r[e],this.u=[1,0,this.u]);return t.children},be.prototype.componentDidUpdate=be.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(r,e){Nr(t,e,r)})};var jr=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,na=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,aa=typeof document!="undefined",oa=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};function ia(t,r,e){return r.__k==null&&(r.textContent=""),B(t,r),typeof e=="function"&&e(),t?t.__c:null}function ua(t,r,e){return nt(t,r),typeof e=="function"&&e(),t?t.__c:null}L.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(L.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})});var Fr=_.event;function sa(){}function la(){return this.cancelBubble}function fa(){return this.defaultPrevented}_.event=function(t){return Fr&&(t=Fr(t)),t.persist=sa,t.isPropagationStopped=la,t.isDefaultPrevented=fa,t.nativeEvent=t};var Qr,Lr={configurable:!0,get:function(){return this.class}},qr=_.vnode;_.vnode=function(t){var r=t.type,e=t.props,n=e;if(typeof r=="string"){var a=r.indexOf("-")===-1;for(var o in n={},e){var i=e[o];aa&&o==="children"&&r==="noscript"||o==="value"&&"defaultValue"in e&&i==null||(o==="defaultValue"&&"value"in e&&e.value==null?o="value":o==="download"&&i===!0?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+r)&&!oa(e.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():a&&na.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():i===null&&(i=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o="oninputCapture")),n[o]=i)}r=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=R(e.children).forEach(function(l){l.props.selected=n.value.indexOf(l.props.value)!=-1})),r=="select"&&n.defaultValue!=null&&(n.value=R(e.children).forEach(function(l){l.props.selected=n.multiple?n.defaultValue.indexOf(l.props.value)!=-1:n.defaultValue==l.props.value})),t.props=n,e.class!=e.className&&(Lr.enumerable="className"in e,e.className!=null&&(n.class=e.className),Object.defineProperty(n,"className",Lr))}t.$$typeof=jr,qr&&qr(t)};var Rr=_.__r;_.__r=function(t){Rr&&Rr(t),Qr=t.__c};var da={ReactCurrentDispatcher:{current:{readContext:function(t){return Qr.__n[t.__c].props.value}}}};function ma(t){return s.bind(null,t)}function zr(t){return!!t&&t.$$typeof===jr}function ca(t){return zr(t)?or.apply(null,arguments):t}function pa(t){return!!t.__k&&(B(null,t),!0)}function ha(t){return t&&(t.base||t.nodeType===1&&t)||null}var _a=function(t,r){return t(r)},va=function(t,r){return t(r)},ga=S;function Xr(t){t()}function ya(t){return t}function xa(){return[!1,Xr]}var wa=we;function ba(t,r){var e=r(),n=ft({h:{__:e,v:r}}),a=n[0].h,o=n[1];return we(function(){a.__=e,a.v=r,ct(a.__,r())||o({h:a})},[t,e,r]),xe(function(){return ct(a.__,a.v())||o({h:a}),t(function(){ct(a.__,a.v())||o({h:a})})},[t]),e}var ke={useState:ft,useId:Pr,useReducer:dt,useEffect:xe,useLayoutEffect:we,useInsertionEffect:wa,useTransition:xa,useDeferredValue:ya,useSyncExternalStore:ba,startTransition:Xr,useRef:Or,useImperativeHandle:Mr,useMemo:Ue,useCallback:Dr,useContext:Sr,useDebugValue:Cr,version:"17.0.2",Children:Jn,render:ia,hydrate:ua,unmountComponentAtNode:pa,createPortal:ra,createElement:s,createContext:at,createFactory:ma,cloneElement:ca,createRef:tt,Fragment:S,isValidElement:zr,findDOMNode:ha,Component:L,PureComponent:ht,memo:zn,forwardRef:Gn,flushSync:va,unstable_batchedUpdates:_a,StrictMode:ga,Suspense:Ye,SuspenseList:be,lazy:Kn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:da};var ka=function(){let r=Array.prototype.slice.call(arguments).filter(Boolean),e={},n=[];r.forEach(o=>{(o?o.split(" "):[]).forEach(l=>{if(l.startsWith("atm_")){let[,f]=l.split("_");e[f]=l}else n.push(l)})});let a=[];for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.push(e[o]);return a.push(...n),a.join(" ")},Ne=ka;var Ta=t=>t.toUpperCase()===t,Oa=t=>r=>t.indexOf(r)===-1,Gr=(t,r)=>{let e={};return Object.keys(t).filter(Oa(r)).forEach(n=>{e[n]=t[n]}),e};function Ma(t,r,e){let n=Gr(r,e);return typeof t=="string"&&t.indexOf("-")===-1&&!Ta(t[0])&&Object.keys(n).forEach(a=>{Ir(a)||delete n[a]}),n}var Da=(t,r)=>{};function Sa(t){return r=>{let e=(a,o)=>{let{as:i=t,class:l}=a,f=Ma(i,a,["as","class"]);f.ref=o,f.className=r.atomic?Ne(r.class,f.className||l):Ne(f.className||l,r.class);let{vars:c}=r;if(c){let u={};for(let d in c){let v=c[d],w=v[0],m=v[1]||"",T=typeof w=="function"?w(a):w;Da(T,r.name),u[`--${d}`]=`${T}${m}`}let h=f.style||{},p=Object.keys(h);p.length>0&&p.forEach(d=>{u[d]=h[d]}),f.style=u}return t.__linaria&&t!==i?(f.as=i,ke.createElement(t,f)):ke.createElement(i,f)},n=ke.forwardRef?ke.forwardRef(e):a=>{let o=Gr(a,["innerRef"]);return e(o,a.innerRef)};return n.displayName=r.name,n.__linaria={className:r.class,extends:t},n}}var j=Sa;var Jr=j("div")({name:"QRPlaceholder",class:"q1ma0zxq"}),Zr=j("footer")({name:"FooterBar",class:"fef0x5t"}),Fe=j("div")({name:"Page",class:"p1b3vqup"});var Kr=j("a")({name:"WalletLink",class:"wpwjmk",vars:{"wpwjmk-0":[({upperCased:t})=>t?"uppercase":"none"]}}),en=j("div")({name:"InfoBox",class:"i1pkgksb"}),Q=j("dl")({name:"TableExpanded",class:"t2c81u8"}),tn=j("dl")({name:"TableSimple",class:"t1mav7fx"});function Le(){return s(Zr,null,s("p",null,s("a",{href:"https://taler.net/"},"Learn more about GNU Taler on our website."),s("p",null,"Copyright \xA9 2014\u20142021 Taler Systems SA")))}function C(t){if(t===null||t===!0||t===!1)return NaN;var r=Number(t);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}function g(t,r){if(r.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+r.length+" present")}function qe(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qe=function(e){return typeof e}:qe=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe(t)}function y(t){g(1,arguments);var r=Object.prototype.toString.call(t);return t instanceof Date||qe(t)==="object"&&r==="[object Date]"?new Date(t.getTime()):typeof t=="number"||r==="[object Number]"?new Date(t):((typeof t=="string"||r==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function _t(t,r){g(2,arguments);var e=y(t),n=C(r);return isNaN(n)?new Date(NaN):(n&&e.setDate(e.getDate()+n),e)}function vt(t,r){g(2,arguments);var e=y(t),n=C(r);if(isNaN(n))return new Date(NaN);if(!n)return e;var a=e.getDate(),o=new Date(e.getTime());o.setMonth(e.getMonth()+n+1,0);var i=o.getDate();return a>=i?o:(e.setFullYear(o.getFullYear(),o.getMonth(),a),e)}function Re(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Re=function(e){return typeof e}:Re=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(t)}function ne(t,r){if(g(2,arguments),!r||Re(r)!=="object")return new Date(NaN);var e=r.years?C(r.years):0,n=r.months?C(r.months):0,a=r.weeks?C(r.weeks):0,o=r.days?C(r.days):0,i=r.hours?C(r.hours):0,l=r.minutes?C(r.minutes):0,f=r.seconds?C(r.seconds):0,c=y(t),u=n||e?vt(c,n+e*12):c,h=o||a?_t(u,o+a*7):u,p=l+i*60,d=f+p*60,v=d*1e3,w=new Date(h.getTime()+v);return w}function gt(t,r){g(2,arguments);var e=y(t).getTime(),n=C(r);return new Date(e+n)}var Ca={};function H(){return Ca}function fe(t){var r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),t.getTime()-r.getTime()}function He(t){g(1,arguments);var r=y(t);return r.setHours(0,0,0,0),r}var Pa=864e5;function yt(t,r){g(2,arguments);var e=He(t),n=He(r),a=e.getTime()-fe(e),o=n.getTime()-fe(n);return Math.round((a-o)/Pa)}function $(t,r){g(2,arguments);var e=y(t),n=y(r),a=e.getTime()-n.getTime();return a<0?-1:a>0?1:a}var Wa=365.2425,Ea=Math.pow(10,8)*24*60*60*1e3,rn=6e4,nn=36e5;var Gi=-Ea;var Ia=3600;var an=Ia*24,Ji=an*7,Aa=an*Wa,Ua=Aa/12,Zi=Ua*3;function $e(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$e=function(e){return typeof e}:$e=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(t)}function xt(t){return g(1,arguments),t instanceof Date||$e(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function wt(t){if(g(1,arguments),!xt(t)&&typeof t!="number")return!1;var r=y(t);return!isNaN(Number(r))}function bt(t,r){g(2,arguments);var e=y(t),n=y(r),a=e.getFullYear()-n.getFullYear(),o=e.getMonth()-n.getMonth();return a*12+o}function kt(t,r){g(2,arguments);var e=y(t),n=y(r);return e.getFullYear()-n.getFullYear()}function on(t,r){var e=t.getFullYear()-r.getFullYear()||t.getMonth()-r.getMonth()||t.getDate()-r.getDate()||t.getHours()-r.getHours()||t.getMinutes()-r.getMinutes()||t.getSeconds()-r.getSeconds()||t.getMilliseconds()-r.getMilliseconds();return e<0?-1:e>0?1:e}function Tt(t,r){g(2,arguments);var e=y(t),n=y(r),a=on(e,n),o=Math.abs(yt(e,n));e.setDate(e.getDate()-a*o);var i=Number(on(e,n)===-a),l=a*(o-i);return l===0?0:l}function ae(t,r){return g(2,arguments),y(t).getTime()-y(r).getTime()}var un={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(r){return r<0?Math.ceil(r):Math.floor(r)}},Ya="trunc";function de(t){return t?un[t]:un[Ya]}function Ot(t,r,e){g(2,arguments);var n=ae(t,r)/nn;return de(e==null?void 0:e.roundingMethod)(n)}function Mt(t,r,e){g(2,arguments);var n=ae(t,r)/rn;return de(e==null?void 0:e.roundingMethod)(n)}function Dt(t){g(1,arguments);var r=y(t);return r.setHours(23,59,59,999),r}function St(t){g(1,arguments);var r=y(t),e=r.getMonth();return r.setFullYear(r.getFullYear(),e+1,0),r.setHours(23,59,59,999),r}function Ct(t){g(1,arguments);var r=y(t);return Dt(r).getTime()===St(r).getTime()}function Pt(t,r){g(2,arguments);var e=y(t),n=y(r),a=$(e,n),o=Math.abs(bt(e,n)),i;if(o<1)i=0;else{e.getMonth()===1&&e.getDate()>27&&e.setDate(30),e.setMonth(e.getMonth()-a*o);var l=$(e,n)===-a;Ct(y(t))&&o===1&&$(t,n)===1&&(l=!1),i=a*(o-Number(l))}return i===0?0:i}function Wt(t,r,e){g(2,arguments);var n=ae(t,r)/1e3;return de(e==null?void 0:e.roundingMethod)(n)}function Et(t,r){g(2,arguments);var e=y(t),n=y(r),a=$(e,n),o=Math.abs(kt(e,n));e.setFullYear(1584),n.setFullYear(1584);var i=$(e,n)===-a,l=a*(o-Number(i));return l===0?0:l}function It(t,r){g(2,arguments);var e=C(r);return gt(t,-e)}var Na=864e5;function At(t){g(1,arguments);var r=y(t),e=r.getTime();r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0);var n=r.getTime(),a=e-n;return Math.floor(a/Na)+1}function K(t){g(1,arguments);var r=1,e=y(t),n=e.getUTCDay(),a=(n<r?7:0)+n-r;return e.setUTCDate(e.getUTCDate()-a),e.setUTCHours(0,0,0,0),e}function Te(t){g(1,arguments);var r=y(t),e=r.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(e+1,0,4),n.setUTCHours(0,0,0,0);var a=K(n),o=new Date(0);o.setUTCFullYear(e,0,4),o.setUTCHours(0,0,0,0);var i=K(o);return r.getTime()>=a.getTime()?e+1:r.getTime()>=i.getTime()?e:e-1}function Ut(t){g(1,arguments);var r=Te(t),e=new Date(0);e.setUTCFullYear(r,0,4),e.setUTCHours(0,0,0,0);var n=K(e);return n}var Fa=6048e5;function Yt(t){g(1,arguments);var r=y(t),e=K(r).getTime()-Ut(r).getTime();return Math.round(e/Fa)+1}function ee(t,r){var e,n,a,o,i,l,f,c;g(1,arguments);var u=H(),h=C((e=(n=(a=(o=r==null?void 0:r.weekStartsOn)!==null&&o!==void 0?o:r==null||(i=r.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:u.weekStartsOn)!==null&&n!==void 0?n:(f=u.locale)===null||f===void 0||(c=f.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&e!==void 0?e:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=y(t),d=p.getUTCDay(),v=(d<h?7:0)+d-h;return p.setUTCDate(p.getUTCDate()-v),p.setUTCHours(0,0,0,0),p}function Oe(t,r){var e,n,a,o,i,l,f,c;g(1,arguments);var u=y(t),h=u.getUTCFullYear(),p=H(),d=C((e=(n=(a=(o=r==null?void 0:r.firstWeekContainsDate)!==null&&o!==void 0?o:r==null||(i=r.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:p.firstWeekContainsDate)!==null&&n!==void 0?n:(f=p.locale)===null||f===void 0||(c=f.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&e!==void 0?e:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(h+1,0,d),v.setUTCHours(0,0,0,0);var w=ee(v,r),m=new Date(0);m.setUTCFullYear(h,0,d),m.setUTCHours(0,0,0,0);var T=ee(m,r);return u.getTime()>=w.getTime()?h+1:u.getTime()>=T.getTime()?h:h-1}function Nt(t,r){var e,n,a,o,i,l,f,c;g(1,arguments);var u=H(),h=C((e=(n=(a=(o=r==null?void 0:r.firstWeekContainsDate)!==null&&o!==void 0?o:r==null||(i=r.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:u.firstWeekContainsDate)!==null&&n!==void 0?n:(f=u.locale)===null||f===void 0||(c=f.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&e!==void 0?e:1),p=Oe(t,r),d=new Date(0);d.setUTCFullYear(p,0,h),d.setUTCHours(0,0,0,0);var v=ee(d,r);return v}var La=6048e5;function Ft(t,r){g(1,arguments);var e=y(t),n=ee(e,r).getTime()-Nt(e,r).getTime();return Math.round(n/La)+1}function D(t,r){for(var e=t<0?"-":"",n=Math.abs(t).toString();n.length<r;)n="0"+n;return e+n}var qa={y:function(r,e){var n=r.getUTCFullYear(),a=n>0?n:1-n;return D(e==="yy"?a%100:a,e.length)},M:function(r,e){var n=r.getUTCMonth();return e==="M"?String(n+1):D(n+1,2)},d:function(r,e){return D(r.getUTCDate(),e.length)},a:function(r,e){var n=r.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(r,e){return D(r.getUTCHours()%12||12,e.length)},H:function(r,e){return D(r.getUTCHours(),e.length)},m:function(r,e){return D(r.getUTCMinutes(),e.length)},s:function(r,e){return D(r.getUTCSeconds(),e.length)},S:function(r,e){var n=e.length,a=r.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,n-3));return D(o,e.length)}},z=qa;var me={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ra={G:function(r,e,n){var a=r.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(r,e,n){if(e==="yo"){var a=r.getUTCFullYear(),o=a>0?a:1-a;return n.ordinalNumber(o,{unit:"year"})}return z.y(r,e)},Y:function(r,e,n,a){var o=Oe(r,a),i=o>0?o:1-o;if(e==="YY"){var l=i%100;return D(l,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):D(i,e.length)},R:function(r,e){var n=Te(r);return D(n,e.length)},u:function(r,e){var n=r.getUTCFullYear();return D(n,e.length)},Q:function(r,e,n){var a=Math.ceil((r.getUTCMonth()+1)/3);switch(e){case"Q":return String(a);case"QQ":return D(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(r,e,n){var a=Math.ceil((r.getUTCMonth()+1)/3);switch(e){case"q":return String(a);case"qq":return D(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(r,e,n){var a=r.getUTCMonth();switch(e){case"M":case"MM":return z.M(r,e);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(r,e,n){var a=r.getUTCMonth();switch(e){case"L":return String(a+1);case"LL":return D(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(r,e,n,a){var o=Ft(r,a);return e==="wo"?n.ordinalNumber(o,{unit:"week"}):D(o,e.length)},I:function(r,e,n){var a=Yt(r);return e==="Io"?n.ordinalNumber(a,{unit:"week"}):D(a,e.length)},d:function(r,e,n){return e==="do"?n.ordinalNumber(r.getUTCDate(),{unit:"date"}):z.d(r,e)},D:function(r,e,n){var a=At(r);return e==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):D(a,e.length)},E:function(r,e,n){var a=r.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(r,e,n,a){var o=r.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return D(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(r,e,n,a){var o=r.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return D(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(r,e,n){var a=r.getUTCDay(),o=a===0?7:a;switch(e){case"i":return String(o);case"ii":return D(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(r,e,n){var a=r.getUTCHours(),o=a/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(r,e,n){var a=r.getUTCHours(),o;switch(a===12?o=me.noon:a===0?o=me.midnight:o=a/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(r,e,n){var a=r.getUTCHours(),o;switch(a>=17?o=me.evening:a>=12?o=me.afternoon:a>=4?o=me.morning:o=me.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(r,e,n){if(e==="ho"){var a=r.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return z.h(r,e)},H:function(r,e,n){return e==="Ho"?n.ordinalNumber(r.getUTCHours(),{unit:"hour"}):z.H(r,e)},K:function(r,e,n){var a=r.getUTCHours()%12;return e==="Ko"?n.ordinalNumber(a,{unit:"hour"}):D(a,e.length)},k:function(r,e,n){var a=r.getUTCHours();return a===0&&(a=24),e==="ko"?n.ordinalNumber(a,{unit:"hour"}):D(a,e.length)},m:function(r,e,n){return e==="mo"?n.ordinalNumber(r.getUTCMinutes(),{unit:"minute"}):z.m(r,e)},s:function(r,e,n){return e==="so"?n.ordinalNumber(r.getUTCSeconds(),{unit:"second"}):z.s(r,e)},S:function(r,e){return z.S(r,e)},X:function(r,e,n,a){var o=a._originalDate||r,i=o.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return ln(i);case"XXXX":case"XX":return oe(i);case"XXXXX":case"XXX":default:return oe(i,":")}},x:function(r,e,n,a){var o=a._originalDate||r,i=o.getTimezoneOffset();switch(e){case"x":return ln(i);case"xxxx":case"xx":return oe(i);case"xxxxx":case"xxx":default:return oe(i,":")}},O:function(r,e,n,a){var o=a._originalDate||r,i=o.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+sn(i,":");case"OOOO":default:return"GMT"+oe(i,":")}},z:function(r,e,n,a){var o=a._originalDate||r,i=o.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+sn(i,":");case"zzzz":default:return"GMT"+oe(i,":")}},t:function(r,e,n,a){var o=a._originalDate||r,i=Math.floor(o.getTime()/1e3);return D(i,e.length)},T:function(r,e,n,a){var o=a._originalDate||r,i=o.getTime();return D(i,e.length)}};function sn(t,r){var e=t>0?"-":"+",n=Math.abs(t),a=Math.floor(n/60),o=n%60;if(o===0)return e+String(a);var i=r||"";return e+String(a)+i+D(o,2)}function ln(t,r){if(t%60===0){var e=t>0?"-":"+";return e+D(Math.abs(t)/60,2)}return oe(t,r)}function oe(t,r){var e=r||"",n=t>0?"-":"+",a=Math.abs(t),o=D(Math.floor(a/60),2),i=D(a%60,2);return n+o+e+i}var fn=Ra;var dn=function(r,e){switch(r){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},mn=function(r,e){switch(r){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Ha=function(r,e){var n=r.match(/(P+)(p+)?/)||[],a=n[1],o=n[2];if(!o)return dn(r,e);var i;switch(a){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",dn(a,e)).replace("{{time}}",mn(o,e))},$a={p:mn,P:Ha},cn=$a;var Va=["D","DD"],Ba=["YY","YYYY"];function pn(t){return Va.indexOf(t)!==-1}function hn(t){return Ba.indexOf(t)!==-1}function Lt(t,r,e){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(r,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(r,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(r,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(r,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var ja={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Qa=function(r,e,n){var a,o=ja[r];return typeof o=="string"?a=o:e===1?a=o.one:a=o.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},_n=Qa;function Me(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.width?String(r.width):t.defaultWidth,n=t.formats[e]||t.formats[t.defaultWidth];return n}}var za={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Xa={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ga={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ja={date:Me({formats:za,defaultWidth:"full"}),time:Me({formats:Xa,defaultWidth:"full"}),dateTime:Me({formats:Ga,defaultWidth:"full"})},vn=Ja;var Za={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ka=function(r,e,n,a){return Za[r]},gn=Ka;function ie(t){return function(r,e){var n=e!=null&&e.context?String(e.context):"standalone",a;if(n==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,i=e!=null&&e.width?String(e.width):o;a=t.formattingValues[i]||t.formattingValues[o]}else{var l=t.defaultWidth,f=e!=null&&e.width?String(e.width):t.defaultWidth;a=t.values[f]||t.values[l]}var c=t.argumentCallback?t.argumentCallback(r):r;return a[c]}}var eo={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},to={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ro={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},no={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ao={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},oo={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},io=function(r,e){var n=Number(r),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},uo={ordinalNumber:io,era:ie({values:eo,defaultWidth:"wide"}),quarter:ie({values:to,defaultWidth:"wide",argumentCallback:function(r){return r-1}}),month:ie({values:ro,defaultWidth:"wide"}),day:ie({values:no,defaultWidth:"wide"}),dayPeriod:ie({values:ao,defaultWidth:"wide",formattingValues:oo,defaultFormattingWidth:"wide"})},yn=uo;function ue(t){return function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.width,a=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],o=r.match(a);if(!o)return null;var i=o[0],l=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],f=Array.isArray(l)?lo(l,function(h){return h.test(i)}):so(l,function(h){return h.test(i)}),c;c=t.valueCallback?t.valueCallback(f):f,c=e.valueCallback?e.valueCallback(c):c;var u=r.slice(i.length);return{value:c,rest:u}}}function so(t,r){for(var e in t)if(t.hasOwnProperty(e)&&r(t[e]))return e}function lo(t,r){for(var e=0;e<t.length;e++)if(r(t[e]))return e}function qt(t){return function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.match(t.matchPattern);if(!n)return null;var a=n[0],o=r.match(t.parsePattern);if(!o)return null;var i=t.valueCallback?t.valueCallback(o[0]):o[0];i=e.valueCallback?e.valueCallback(i):i;var l=r.slice(a.length);return{value:i,rest:l}}}var fo=/^(\d+)(th|st|nd|rd)?/i,mo=/\d+/i,co={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},po={any:[/^b/i,/^(a|c)/i]},ho={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_o={any:[/1/i,/2/i,/3/i,/4/i]},vo={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},go={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},yo={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},xo={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wo={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bo={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ko={ordinalNumber:qt({matchPattern:fo,parsePattern:mo,valueCallback:function(r){return parseInt(r,10)}}),era:ue({matchPatterns:co,defaultMatchWidth:"wide",parsePatterns:po,defaultParseWidth:"any"}),quarter:ue({matchPatterns:ho,defaultMatchWidth:"wide",parsePatterns:_o,defaultParseWidth:"any",valueCallback:function(r){return r+1}}),month:ue({matchPatterns:vo,defaultMatchWidth:"wide",parsePatterns:go,defaultParseWidth:"any"}),day:ue({matchPatterns:yo,defaultMatchWidth:"wide",parsePatterns:xo,defaultParseWidth:"any"}),dayPeriod:ue({matchPatterns:wo,defaultMatchWidth:"any",parsePatterns:bo,defaultParseWidth:"any"})},xn=ko;var To={code:"en-US",formatDistance:_n,formatLong:vn,formatRelative:gn,localize:yn,match:xn,options:{weekStartsOn:0,firstWeekContainsDate:1}},wn=To;var Ve=wn;var Oo=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mo=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Do=/^'([^]*?)'?$/,So=/''/g,Co=/[a-zA-Z]/;function X(t,r,e){var n,a,o,i,l,f,c,u,h,p,d,v,w,m,T,P,U,Y;g(2,arguments);var F=String(r),E=H(),b=(n=(a=e==null?void 0:e.locale)!==null&&a!==void 0?a:E.locale)!==null&&n!==void 0?n:Ve,k=C((o=(i=(l=(f=e==null?void 0:e.firstWeekContainsDate)!==null&&f!==void 0?f:e==null||(c=e.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&l!==void 0?l:E.firstWeekContainsDate)!==null&&i!==void 0?i:(h=E.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=C((d=(v=(w=(m=e==null?void 0:e.weekStartsOn)!==null&&m!==void 0?m:e==null||(T=e.locale)===null||T===void 0||(P=T.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&w!==void 0?w:E.weekStartsOn)!==null&&v!==void 0?v:(U=E.locale)===null||U===void 0||(Y=U.options)===null||Y===void 0?void 0:Y.weekStartsOn)!==null&&d!==void 0?d:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!b.localize)throw new RangeError("locale must contain localize property");if(!b.formatLong)throw new RangeError("locale must contain formatLong property");var x=y(t);if(!wt(x))throw new RangeError("Invalid time value");var M=fe(x),O=It(x,M),q={firstWeekContainsDate:k,weekStartsOn:A,locale:b,_originalDate:x},G=F.match(Mo).map(function(N){var I=N[0];if(I==="p"||I==="P"){var J=cn[I];return J(N,b.formatLong)}return N}).join("").match(Oo).map(function(N){if(N==="''")return"'";var I=N[0];if(I==="'")return Po(N);var J=fn[I];if(J)return!(e!=null&&e.useAdditionalWeekYearTokens)&&hn(N)&&Lt(N,r,String(t)),!(e!=null&&e.useAdditionalDayOfYearTokens)&&pn(N)&&Lt(N,r,String(t)),J(O,N,b.localize,q);if(I.match(Co))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return N}).join("");return G}function Po(t){var r=t.match(Do);return r?r[1].replace(So,"'"):t}var Wo=["years","months","weeks","days","hours","minutes","seconds"];function Be(t,r){var e,n,a,o,i;if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var l=H(),f=(e=(n=r==null?void 0:r.locale)!==null&&n!==void 0?n:l.locale)!==null&&e!==void 0?e:Ve,c=(a=r==null?void 0:r.format)!==null&&a!==void 0?a:Wo,u=(o=r==null?void 0:r.zero)!==null&&o!==void 0?o:!1,h=(i=r==null?void 0:r.delimiter)!==null&&i!==void 0?i:" ";if(!f.formatDistance)return"";var p=c.reduce(function(d,v){var w="x".concat(v.replace(/(^.)/,function(T){return T.toUpperCase()})),m=t[v];return typeof m=="number"&&(u||t[v])?d.concat(f.formatDistance(w,m)):d},[]).join(h);return p}function je(t){g(1,arguments);var r=y(t.start),e=y(t.end);if(isNaN(r.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(e.getTime()))throw new RangeError("End Date is invalid");var n={};n.years=Math.abs(Et(e,r));var a=$(e,r),o=ne(r,{years:a*n.years});n.months=Math.abs(Pt(e,o));var i=ne(o,{months:a*n.months});n.days=Math.abs(Tt(e,i));var l=ne(i,{days:a*n.days});n.hours=Math.abs(Ot(e,l));var f=ne(l,{hours:a*n.hours});n.minutes=Math.abs(Mt(e,f));var c=ne(f,{minutes:a*n.minutes});return n.seconds=Math.abs(Wt(e,c)),n}function Rt({templateName:t,location:r,btr:e}){return s(S,null,e&&`{{#${t}.building_name}}`,s("dd",null,(r==null?void 0:r.building_name)||e&&`{{ ${t}.building_name }}`," ",(r==null?void 0:r.building_number)||e&&`{{ ${t}.building_number }}`),e&&`{{/${t}.building_name}}`,e&&`{{#${t}.country}}`,s("dd",null,(r==null?void 0:r.country)||e&&`{{ ${t}.country }}`," ",(r==null?void 0:r.country_subdivision)||e&&`{{ ${t}.country_subdivision }}`),e&&`{{/${t}.country}}`,e&&`{{#${t}.district}}`,s("dd",null,(r==null?void 0:r.district)||e&&`{{ ${t}.district }}`),e&&`{{/${t}.district}}`,e&&`{{#${t}.post_code}}`,s("dd",null,(r==null?void 0:r.post_code)||e&&`{{ ${t}.post_code }}`),e&&`{{/${t}.post_code}}`,e&&`{{#${t}.street}}`,s("dd",null,(r==null?void 0:r.street)||e&&`{{ ${t}.street }}`),e&&`{{/${t}.street}}`,e&&`{{#${t}.town}}`,s("dd",null,(r==null?void 0:r.town)||e&&`{{ ${t}.town }}`),e&&`{{/${t}.town}}`,e&&`{{#${t}.town_location}}`,s("dd",null,(r==null?void 0:r.town_location)||e&&`{{ ${t}.town_location }}`),e&&`{{/${t}.town_location}}`)}function bn({order_summary:t,refund_amount:r,contract_terms:e,btr:n}){let a=n?[{}]:(e==null?void 0:e.products)||[],o=n?[{}]:(e==null?void 0:e.auditors)||[],i=n?[{}]:(e==null?void 0:e.exchanges)||[],l=n||!!(e!=null&&e.delivery_date)||!!(e!=null&&e.delivery_location);return s(Fe,null,s("header",null,s("h1",null,"Details of order"," ",(e==null?void 0:e.order_id)||"{{ contract_terms.order_id }}")),s("section",null,n&&"{{#refund_amount}}",(n||r)&&s("section",null,s(en,null,s("b",null,"Refunded:")," The merchant refunded you"," ",s("b",null,r||"{{ refund_amount }}"),".")),n&&"{{/refund_amount}}",s("section",null,s(Q,null,s("dt",null,"Order summary:"),s("dd",null,(e==null?void 0:e.summary)||"{{ contract_terms.summary }}"),s("dt",null,"Amount paid:"),s("dd",null,(e==null?void 0:e.amount)||"{{ contract_terms.amount }}"),s("dt",null,"Order date:"),s("dd",null,e!=null&&e.timestamp?(e==null?void 0:e.timestamp.t_s)!="never"?X(e==null?void 0:e.timestamp.t_s,"dd MMM yyyy HH:mm:ss"):"never":"{{ contract_terms.timestamp_str }}"," "),s("dt",null,"Merchant name:"),s("dd",null,(e==null?void 0:e.merchant.name)||"{{ contract_terms.merchant.name }}"))),n&&"{{#contract_terms.hasProducts}}",a.length?s("section",null,s("h2",null,"Products purchased"),s(tn,null,n&&"{{#contract_terms.products}}",a.map((f,c)=>{let u=n?[{}]:f.taxes||[];return s(S,{key:c},s("p",null,f.description||"{{description}}"),s("dl",null,s("dt",null,"Quantity:"),s("dd",null,f.quantity||"{{quantity}}"),s("dt",null,"Price:"),s("dd",null,f.price||"{{price}}"),n&&"{{#hasTaxes}}",u.length?s(S,null,n&&"{{#taxes}}",u.map((h,p)=>s(S,{key:p},s("dt",null,h.name||"{{name}}"),s("dd",null,h.tax||"{{tax}}"))),n&&"{{/taxes}}"):null,n&&"{{/hasTaxes}}",n&&"{{#delivery_date}}",(n||f.delivery_date)&&s(S,null,s("dt",null,"Delivered on:"),s("dd",null,f.delivery_date?f.delivery_date.t_s!="never"?X(f.delivery_date.t_s,"dd MMM yyyy HH:mm:ss"):"never":"{{ delivery_date_str }}"," ")),n&&"{{/delivery_date}}",n&&"{{#unit}}",(n||f.unit)&&s(S,null,s("dt",null,"Product unit:"),s("dd",null,f.unit||"{{.}}")),n&&"{{/unit}}",n&&"{{#product_id}}",(n||f.product_id)&&s(S,null,s("dt",null,"Product ID:"),s("dd",null,f.product_id||"{{.}}")),n&&"{{/product_id}}"))}),n&&"{{/contract_terms.products}}")):null,n&&"{{/contract_terms.hasProducts}}",n&&"{{#contract_terms.has_delivery_info}}",l?s("section",null,s("h2",null,"Delivery information"),s(Q,null,n&&"{{#contract_terms.delivery_date}}",(n||(e==null?void 0:e.delivery_date))&&s(S,null,s("dt",null,"Delivery date:"),s("dd",null,e!=null&&e.delivery_date?(e==null?void 0:e.delivery_date.t_s)!="never"?X(e==null?void 0:e.delivery_date.t_s,"dd MMM yyyy HH:mm:ss"):"never":"{{ contract_terms.delivery_date_str }}"," ")),n&&"{{/contract_terms.delivery_date}}",n&&"{{#contract_terms.delivery_location}}",(n||(e==null?void 0:e.delivery_location))&&s(S,null,s("dt",null,"Delivery address:"),s(Rt,{btr:n,location:e==null?void 0:e.delivery_location,templateName:"contract_terms.delivery_location"})),n&&"{{/contract_terms.delivery_location}}")):null,n&&"{{/contract_terms.has_delivery_info}}",s("section",null,s("h2",null,"Full payment information"),s(Q,null,s("dt",null,"Amount paid:"),s("dd",null,(e==null?void 0:e.amount)||"{{ contract_terms.amount }}"),s("dt",null,"Wire transfer method:"),s("dd",null,(e==null?void 0:e.wire_method)||"{{ contract_terms.wire_method }}"),s("dt",null,"Payment deadline:"),s("dd",null,e!=null&&e.pay_deadline?(e==null?void 0:e.pay_deadline.t_s)!="never"?X(e==null?void 0:e.pay_deadline.t_s,"dd MMM yyyy HH:mm:ss"):"never":"{{ contract_terms.pay_deadline_str }}"," "),s("dt",null,"Exchange transfer deadline:"),s("dd",null,e!=null&&e.wire_transfer_deadline?(e==null?void 0:e.wire_transfer_deadline.t_s)!="never"?X(e==null?void 0:e.wire_transfer_deadline.t_s,"dd MMM yyyy HH:mm:ss"):"never":"{{ contract_terms.wire_transfer_deadline_str }}"," "),s("dt",null,"Maximum deposit fee:"),s("dd",null,(e==null?void 0:e.max_fee)||"{{ contract_terms.max_fee }}"),s("dt",null,"Maximum wire fee:"),s("dd",null,(e==null?void 0:e.max_wire_fee)||"{{ contract_terms.max_wire_fee }}"),s("dt",null,"Wire fee amortization:"),s("dd",null,(e==null?void 0:e.wire_fee_amortization)||"{{ contract_terms.wire_fee_amortization }}"," ","transactions"))),s("section",null,s("h2",null,"Refund information"),s(Q,null,s("dt",null,"Refund deadline:"),s("dd",null,e!=null&&e.refund_deadline?(e==null?void 0:e.refund_deadline.t_s)!="never"?X(e==null?void 0:e.refund_deadline.t_s,"dd MMM yyyy HH:mm:ss"):"never":"{{ contract_terms.refund_deadline_str }}"," "),n&&"{{#contract_terms.auto_refund}}",(n||(e==null?void 0:e.auto_refund))&&s(S,null,s("dt",null,"Attempt autorefund for:"),s("dd",null,e!=null&&e.auto_refund?(e==null?void 0:e.auto_refund.d_us)!="forever"?Be(je({start:0,end:e==null?void 0:e.auto_refund.d_us})):"forever":"{{ contract_terms.auto_refund_str }}"," ")),n&&"{{/contract_terms.auto_refund}}")),s("section",null,s("h2",null,"Additional order details"),s(Q,null,s("dt",null,"Public reorder URL:"),s("dd",null," -- not defined yet -- "),n&&"{{#contract_terms.fulfillment_url}}",(n||(e==null?void 0:e.fulfillment_url))&&s(S,null,s("dt",null,"Fulfillment URL:"),s("dd",null,(e==null?void 0:e.fulfillment_url)||n&&"{{ contract_terms.fulfillment_url }}")),n&&"{{/contract_terms.fulfillment_url}}")),s("section",null,s("h2",null,"Full merchant information"),s(Q,null,s("dt",null,"Merchant name:"),s("dd",null,(e==null?void 0:e.merchant.name)||"{{ contract_terms.merchant.name }}"),s("dt",null,"Merchant address:"),s(Rt,{btr:n,location:e==null?void 0:e.merchant.address,templateName:"contract_terms.merchant.address"}),s("dt",null,"Merchant's jurisdiction:"),s(Rt,{btr:n,location:e==null?void 0:e.merchant.jurisdiction,templateName:"contract_terms.merchant.jurisdiction"}),s("dt",null,"Merchant URI:"),s("dd",null,(e==null?void 0:e.merchant_base_url)||"{{ contract_terms.merchant_base_url }}"),s("dt",null,"Merchant's public key:"),s("dd",null,(e==null?void 0:e.merchant_pub)||"{{ contract_terms.merchant_pub }}"))),n&&"{{#contract_terms.hasAuditors}}",o.length?s("section",null,s("h2",null,"Auditors accepted by the merchant"),s(Q,null,n&&"{{#contract_terms.auditors}}",o.map((f,c)=>s(S,{key:c},s("p",null,f.name||"{{name}}"),s("dt",null,"Auditor's public key:"),s("dd",null,f.auditor_pub||"{{auditor_pub}}"),s("dt",null,"Auditor's URL:"),s("dd",null,f.url||"{{url}}"))),n&&"{{/contract_terms.auditors}}")):null,n&&"{{/contract_terms.hasAuditors}}",n&&"{{#contract_terms.hasExchanges}}",i.length?s("section",null,s("h2",null,"Exchanges accepted by the merchant"),s(Q,null,n&&"{{#contract_terms.exchanges}}",i.map((f,c)=>s(S,{key:c},s("dt",null,"Exchange's URL:"),s("dd",null,f.url||"{{url}}"),s("dt",null,"Public key:"),s("dd",null,f.master_pub||"{{master_pub}}"))),n&&"{{/contract_terms.exchanges}}")):null,n&&"{{/contract_terms.hasExchanges}}"),s(Le,null))}function kn(){return s(S,null,s("meta",{charSet:"UTF-8"}),s("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),s("noscript",null,s("meta",{"http-equiv":"refresh",content:"1"})),s("title",null,"Tip available"))}function Tn({tipURI:t,qr_code:r,tip_status_url:e}){return xe(()=>{let n;try{n=new URL(e||"{{& tip_status_url }}")}catch(i){return}let a=500;function o(){let i=!1;function l(){i||(i=!0,o())}let f=new XMLHttpRequest;f.onreadystatechange=function(){f.readyState===XMLHttpRequest.DONE&&(f.status===410&&window.location.reload(),setTimeout(l,a))},f.onerror=function(){setTimeout(l,a)},f.open("GET",n.href),f.send()}setTimeout(o,a)}),s(Fe,null,s("section",null,s("h1",null,"Collect Taler tip"),s("p",null,"Scan this QR code with your Taler mobile wallet:"),s(Jr,{dangerouslySetInnerHTML:{__html:r||"{{{ taler_tip_qrcode_svg }}}"}}),s("p",null,s(Kr,{href:t||"{{ taler_tip_uri }}"},"Or open your Taler wallet")),s("p",null,s("a",{href:"https://wallet.taler.net/"},"Don't have a Taler wallet yet? Install it!"))),s(Le,null))}function Eo(){try{let t=new URL(window.location.href).searchParams,r=t.get("tip_uri")||void 0,e=t.get("tip_status_url")||void 0;B(s(Tn,{tipURI:r,tip_status_url:e}),document.body)}catch(t){console.error("got error",t),t instanceof Error&&(document.body.innerText=`Fatal error: "${t.message}". Please report this bug at https://bugs.gnunet.org/.`)}}function Io(){return{head:Z(s(kn,null)),body:Z(s(bn,null))}}return Pn(Ao);})();
</script>
- <script>page.mount()</script>
- </body>
-</html> \ No newline at end of file
+ <script>page.mount()</script>
+ </body>
+ </html> \ No newline at end of file
diff --git a/backend/request_payment.en.html b/backend/request_payment.en.html
index d1f267c75..da7e29986 100644
--- a/backend/request_payment.en.html
+++ b/backend/request_payment.en.html
@@ -1,3770 +1,51 @@
-<!doctype html>
-<html>
- <head>
- <meta charSet="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><noscript><meta http-equiv="refresh" content="1" /></noscript><title>Payment requested for {{ order_summary }}</title>
- <style>/*!
+ <!doctype html>
+ <html>
+ <head>
+ <meta charSet="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><noscript><meta http-equiv="refresh" content="1" /></noscript><title>Payment requested for {{ order_summary }}</title>
+ <style>.q1ma0zxq{margin:auto;text-align:center;width:340px}.fef0x5t{text-align:center;background-color:#033;color:#fff;padding:1em;overflow:auto}.fef0x5t>p>a:link,.fef0x5t>p>a:visited,.fef0x5t>p>a:hover,.fef0x5t>p>a:active{color:#fff}.p1b3vqup{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:100vh;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.p1b3vqup a:link,.p1b3vqup a:visited,.p1b3vqup a:hover,.p1b3vqup a:active{color:#000}.p1b3vqup section{text-align:center;width:600px;margin-bottom:auto}.p1b3vqup section:not(:first-of-type){margin-top:2em}.p1b3vqup>header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:center}.p1b3vqup>footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;width:100%;margin-bottom:0}.c1gnd3xp{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.wpwjmk{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;text-transform:var(--wpwjmk-0);font-family:inherit;font-size:100%;padding:.5em 1em;color:#444;color:#000c;border:1px solid #999;border:none rgba(0,0,0,0);background-color:"#e6e6e6";-webkit-text-decoration:none;text-decoration:none;background-color:#e6e6e6;border-radius:4px;text-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.wpwjmk:focus{outline:0}.wpwjmk:disabled{border:none;background-image:none;-webkit-filter:alpha(opacity=40);filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.wpwjmk:hover{-webkit-filter:alpha(opacity=90);filter:alpha(opacity=90);background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.i1pkgksb{border-radius:.25em;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:1em;border:solid 1px #b8daff;background-color:#cce5ff;color:#004085}.t2c81u8{text-align:left}.t2c81u8 dt{font-weight:700;margin-top:1em}.t2c81u8 dd{margin-inline-start:0px}.t1mav7fx{text-align:left}.t1mav7fx dt{font-weight:700;display:inline-block;width:30%}.t1mav7fx dd{margin-inline-start:0px;display:inline-block;width:70%}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html{font-family:sans-serif}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}.pure-g{letter-spacing:-.31em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,Droid Sans,Helvetica,Arial,sans-serif;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-line-pack:start;align-content:flex-start}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-g [class*=pure-u]{font-family:sans-serif}.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}.pure-button{display:inline-block;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#000c;border:none transparent;background-color:#e6e6e6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{background-image:-webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(40%,rgba(0,0,0,.05)),to(rgba(0,0,0,.1)));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;opacity:.4;cursor:not-allowed;-webkit-box-shadow:none;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{margin:0;border-radius:0;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 3px #ddd;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 3px #ddd;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input[type=color]:focus,.pure-form input[type=date]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=email]:focus,.pure-form input[type=month]:focus,.pure-form input[type=number]:focus,.pure-form input[type=password]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=text]:focus,.pure-form input[type=time]:focus,.pure-form input[type=url]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129fea}.pure-form input:not([type]):focus{outline:0;border-color:#129fea}.pure-form input[type=checkbox]:focus,.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus{outline:thin solid #129fea;outline:1px auto #129fea}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input[type=color][disabled],.pure-form input[type=date][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=email][disabled],.pure-form input[type=month][disabled],.pure-form input[type=number][disabled],.pure-form input[type=password][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=text][disabled],.pure-form input[type=time][disabled],.pure-form input[type=url][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input:not([type])[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input[type=color],.pure-form-stacked input[type=date],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=email],.pure-form-stacked input[type=file],.pure-form-stacked input[type=month],.pure-form-stacked input[type=number],.pure-form-stacked input[type=password],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=text],.pure-form-stacked input[type=time],.pure-form-stacked input[type=url],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-stacked input:not([type]){display:block;margin:.25em 0}.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width: 480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=color],.pure-group input[type=date],.pure-group input[type=datetime-local],.pure-group input[type=datetime],.pure-group input[type=email],.pure-group input[type=month],.pure-group input[type=number],.pure-group input[type=password],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=text],.pure-group input[type=time],.pure-group input[type=url],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.pure-menu{-webkit-box-sizing:border-box;box-sizing:border-box}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;vertical-align:middle}.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25b8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25be"}.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;padding:.5em 0}.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected>.pure-menu-link,.pure-menu-selected>.pure-menu-link:visited{color:#000}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td{background-color:#f2f2f2}.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}.talerbar{text-align:center}.tt{font-family:Lucida Console,Monaco,monospace}.content{overflow-x:auto;padding-left:15%;padding-right:15%}.qr{margin:auto;text-align:center}.qrtext{width:max-content;margin:auto;transition:font-size .2s;font-family:Lucida Console,Monaco,monospace;font-size:.5em}.qrtext:hover{font-size:1em}.talerbar{margin:0;bottom:0;background-color:#033;color:#fff;width:100%;padding:1em;overflow:auto}body{overflow-y:scroll}@media (min-width: 500px){.content{padding-bottom:2em;overflow-y:auto}}#main a:link,#main a:visited,#main a:hover,#main a:active{color:#000}
+/*!
Pure v2.0.3
Copyright 2013 Yahoo!
Licensed under the BSD License.
- https://github.com/pure-ss/pure/blob/master/LICENSE.md
+ https://github.com/pure-cs s/pure/blob/master/LICENSE.md
*/
/*!
- normalize.cs v | MIT License | git.io/normalize
+ normalize.cs s v | MIT License | git.io/normalize
Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
-/*! normalize.ss v8.0.1 | MIT License | github.com/necolas/normalize.cs */
-
-.talerbar {
- text-align: center;
-}
-.tt {
- font-family: "Lucida Console", Monaco, monospace;
-}
-.content {
- overflow-x: auto;
- padding-left: 15%;
- padding-right: 15%;
-}
-.qr {
- margin: auto;
- text-align: center;
-}
-.qrtext {
- width: max-content;
- margin: auto;
- transition: font-size 0.2s;
- font-family: "Lucida Console", Monaco, monospace;
- font-size: 0.5em;
-}
-.qrtext:hover {
- font-size: 1em;
-}
-.talerbar {
- margin: 0;
- bottom: 0;
- background-color: #033;
- color: white;
- width: 100%;
- padding: 1em;
- overflow: auto;
-}
-body {
- overflow-y: scroll;
-}
-@media (min-width: 500px) {
- .content {
- padding-bottom: 2em;
- overflow-y: auto;
- }
-}
-#main a:link,
-#main a:visited,
-#main a:hover,
-#main a:active {
- color: black;
-}/*!
+/*! normalize.cs s v8.0.1 | MIT License | github.com/necolas/normalize.cs s */
+/*!
Pure v2.0.3
Copyright 2013 Yahoo!
Licensed under the BSD License.
- https://github.com/pure-cs s/pure/blob/master/LICENSE.md
+ https://github.com/pure-ss/pure/blob/master/LICENSE.md
*/
/*!
- normalize.cs s v | MIT License | git.io/normalize
+ normalize.cs v | MIT License | git.io/normalize
Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
-/*! normalize.cs s v8.0.1 | MIT License | github.com/necolas/normalize.cs s */
-
-.talerbar {
- text-align: center;
-}
-
-html {
- line-height: 1.15;
- -webkit-text-size-adjust: 100%;
-}
-body {
- margin: 0;
-}
-main {
- display: block;
-}
-h1 {
- font-size: 2em;
- margin: 0.67em 0;
-}
-hr {
- -webkit-box-sizing: content-box;
- box-sizing: content-box;
- height: 0;
- overflow: visible;
-}
-pre {
- font-family: monospace, monospace;
- font-size: 1em;
-}
-a {
- background-color: transparent;
-}
-abbr[title] {
- border-bottom: none;
- text-decoration: underline;
- -webkit-text-decoration: underline dotted;
- text-decoration: underline dotted;
-}
-b,
-strong {
- font-weight: bolder;
-}
-code,
-kbd,
-samp {
- font-family: monospace, monospace;
- font-size: 1em;
-}
-small {
- font-size: 80%;
-}
-sub,
-sup {
- font-size: 75%;
- line-height: 0;
- position: relative;
- vertical-align: baseline;
-}
-sub {
- bottom: -0.25em;
-}
-sup {
- top: -0.5em;
-}
-img {
- border-style: none;
-}
-button,
-input,
-optgroup,
-select,
-textarea {
- font-family: inherit;
- font-size: 100%;
- line-height: 1.15;
- margin: 0;
-}
-button,
-input {
- overflow: visible;
-}
-button,
-select {
- text-transform: none;
-}
-[type="button"],
-[type="reset"],
-[type="submit"],
-button {
- -webkit-appearance: button;
-}
-[type="button"]::-moz-focus-inner,
-[type="reset"]::-moz-focus-inner,
-[type="submit"]::-moz-focus-inner,
-button::-moz-focus-inner {
- border-style: none;
- padding: 0;
-}
-[type="button"]:-moz-focusring,
-[type="reset"]:-moz-focusring,
-[type="submit"]:-moz-focusring,
-button:-moz-focusring {
- outline: 1px dotted ButtonText;
-}
-fieldset {
- padding: 0.35em 0.75em 0.625em;
-}
-legend {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- color: inherit;
- display: table;
- max-width: 100%;
- padding: 0;
- white-space: normal;
-}
-progress {
- vertical-align: baseline;
-}
-textarea {
- overflow: auto;
-}
-[type="checkbox"],
-[type="radio"] {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- padding: 0;
-}
-[type="number"]::-webkit-inner-spin-button,
-[type="number"]::-webkit-outer-spin-button {
- height: auto;
-}
-[type="search"] {
- -webkit-appearance: textfield;
- outline-offset: -2px;
-}
-[type="search"]::-webkit-search-decoration {
- -webkit-appearance: none;
-}
-::-webkit-file-upload-button {
- -webkit-appearance: button;
- font: inherit;
-}
-details {
- display: block;
-}
-summary {
- display: list-item;
-}
-template {
- display: none;
-}
-[hidden] {
- display: none;
-}
-html {
- font-family: sans-serif;
-}
-.hidden,
-[hidden] {
- display: none !important;
-}
-.pure-img {
- max-width: 100%;
- height: auto;
- display: block;
-}
-.pure-g {
- letter-spacing: -0.31em;
- text-rendering: optimizespeed;
- font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-orient: horizontal;
- -webkit-box-direction: normal;
- -ms-flex-flow: row wrap;
- flex-flow: row wrap;
- -ms-flex-line-pack: start;
- align-content: flex-start;
-}
-@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
- table .pure-g {
- display: block;
- }
-}
-.opera-only :-o-prefocus,
-.pure-g {
- word-spacing: -0.43em;
-}
-.pure-u {
- display: inline-block;
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-g [class*="pure-u"] {
- font-family: sans-serif;
-}
-.pure-u-1,
-.pure-u-1-1,
-.pure-u-1-12,
-.pure-u-1-2,
-.pure-u-1-24,
-.pure-u-1-3,
-.pure-u-1-4,
-.pure-u-1-5,
-.pure-u-1-6,
-.pure-u-1-8,
-.pure-u-10-24,
-.pure-u-11-12,
-.pure-u-11-24,
-.pure-u-12-24,
-.pure-u-13-24,
-.pure-u-14-24,
-.pure-u-15-24,
-.pure-u-16-24,
-.pure-u-17-24,
-.pure-u-18-24,
-.pure-u-19-24,
-.pure-u-2-24,
-.pure-u-2-3,
-.pure-u-2-5,
-.pure-u-20-24,
-.pure-u-21-24,
-.pure-u-22-24,
-.pure-u-23-24,
-.pure-u-24-24,
-.pure-u-3-24,
-.pure-u-3-4,
-.pure-u-3-5,
-.pure-u-3-8,
-.pure-u-4-24,
-.pure-u-4-5,
-.pure-u-5-12,
-.pure-u-5-24,
-.pure-u-5-5,
-.pure-u-5-6,
-.pure-u-5-8,
-.pure-u-6-24,
-.pure-u-7-12,
-.pure-u-7-24,
-.pure-u-7-8,
-.pure-u-8-24,
-.pure-u-9-24 {
- display: inline-block;
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-u-1-24 {
- width: 4.1667%;
-}
-.pure-u-1-12,
-.pure-u-2-24 {
- width: 8.3333%;
-}
-.pure-u-1-8,
-.pure-u-3-24 {
- width: 12.5%;
-}
-.pure-u-1-6,
-.pure-u-4-24 {
- width: 16.6667%;
-}
-.pure-u-1-5 {
- width: 20%;
-}
-.pure-u-5-24 {
- width: 20.8333%;
-}
-.pure-u-1-4,
-.pure-u-6-24 {
- width: 25%;
-}
-.pure-u-7-24 {
- width: 29.1667%;
-}
-.pure-u-1-3,
-.pure-u-8-24 {
- width: 33.3333%;
-}
-.pure-u-3-8,
-.pure-u-9-24 {
- width: 37.5%;
-}
-.pure-u-2-5 {
- width: 40%;
-}
-.pure-u-10-24,
-.pure-u-5-12 {
- width: 41.6667%;
-}
-.pure-u-11-24 {
- width: 45.8333%;
-}
-.pure-u-1-2,
-.pure-u-12-24 {
- width: 50%;
-}
-.pure-u-13-24 {
- width: 54.1667%;
-}
-.pure-u-14-24,
-.pure-u-7-12 {
- width: 58.3333%;
-}
-.pure-u-3-5 {
- width: 60%;
-}
-.pure-u-15-24,
-.pure-u-5-8 {
- width: 62.5%;
-}
-.pure-u-16-24,
-.pure-u-2-3 {
- width: 66.6667%;
-}
-.pure-u-17-24 {
- width: 70.8333%;
-}
-.pure-u-18-24,
-.pure-u-3-4 {
- width: 75%;
-}
-.pure-u-19-24 {
- width: 79.1667%;
-}
-.pure-u-4-5 {
- width: 80%;
-}
-.pure-u-20-24,
-.pure-u-5-6 {
- width: 83.3333%;
-}
-.pure-u-21-24,
-.pure-u-7-8 {
- width: 87.5%;
-}
-.pure-u-11-12,
-.pure-u-22-24 {
- width: 91.6667%;
-}
-.pure-u-23-24 {
- width: 95.8333%;
-}
-.pure-u-1,
-.pure-u-1-1,
-.pure-u-24-24,
-.pure-u-5-5 {
- width: 100%;
-}
-.pure-button {
- display: inline-block;
- line-height: normal;
- white-space: nowrap;
- vertical-align: middle;
- text-align: center;
- cursor: pointer;
- -webkit-user-drag: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-button::-moz-focus-inner {
- padding: 0;
- border: 0;
-}
-.pure-button-group {
- letter-spacing: -0.31em;
- text-rendering: optimizespeed;
-}
-.opera-only :-o-prefocus,
-.pure-button-group {
- word-spacing: -0.43em;
-}
-.pure-button-group .pure-button {
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-button {
- font-family: inherit;
- font-size: 100%;
- padding: 0.5em 1em;
- color: rgba(0, 0, 0, 0.8);
- border: none transparent;
- background-color: #e6e6e6;
- text-decoration: none;
- border-radius: 2px;
-}
-.pure-button-hover,
-.pure-button:focus,
-.pure-button:hover {
- background-image: -webkit-gradient(
- linear,
- left top,
- left bottom,
- from(transparent),
- color-stop(40%, rgba(0, 0, 0, 0.05)),
- to(rgba(0, 0, 0, 0.1))
- );
- background-image: linear-gradient(
- transparent,
- rgba(0, 0, 0, 0.05) 40%,
- rgba(0, 0, 0, 0.1)
- );
-}
-.pure-button:focus {
- outline: 0;
-}
-.pure-button-active,
-.pure-button:active {
- -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset,
- 0 0 6px rgba(0, 0, 0, 0.2) inset;
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset,
- 0 0 6px rgba(0, 0, 0, 0.2) inset;
- border-color: #000;
-}
-.pure-button-disabled,
-.pure-button-disabled:active,
-.pure-button-disabled:focus,
-.pure-button-disabled:hover,
-.pure-button[disabled] {
- border: none;
- background-image: none;
- opacity: 0.4;
- cursor: not-allowed;
- -webkit-box-shadow: none;
- box-shadow: none;
- pointer-events: none;
-}
-.pure-button-hidden {
- display: none;
-}
-.pure-button-primary,
-.pure-button-selected,
-a.pure-button-primary,
-a.pure-button-selected {
- background-color: #0078e7;
- color: #fff;
-}
-.pure-button-group .pure-button {
- margin: 0;
- border-radius: 0;
- border-right: 1px solid rgba(0, 0, 0, 0.2);
-}
-.pure-button-group .pure-button:first-child {
- border-top-left-radius: 2px;
- border-bottom-left-radius: 2px;
-}
-.pure-button-group .pure-button:last-child {
- border-top-right-radius: 2px;
- border-bottom-right-radius: 2px;
- border-right: none;
-}
-.pure-form input[type="color"],
-.pure-form input[type="date"],
-.pure-form input[type="datetime-local"],
-.pure-form input[type="datetime"],
-.pure-form input[type="email"],
-.pure-form input[type="month"],
-.pure-form input[type="number"],
-.pure-form input[type="password"],
-.pure-form input[type="search"],
-.pure-form input[type="tel"],
-.pure-form input[type="text"],
-.pure-form input[type="time"],
-.pure-form input[type="url"],
-.pure-form input[type="week"],
-.pure-form select,
-.pure-form textarea {
- padding: 0.5em 0.6em;
- display: inline-block;
- border: 1px solid #ccc;
- -webkit-box-shadow: inset 0 1px 3px #ddd;
- box-shadow: inset 0 1px 3px #ddd;
- border-radius: 4px;
- vertical-align: middle;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-form input:not([type]) {
- padding: 0.5em 0.6em;
- display: inline-block;
- border: 1px solid #ccc;
- -webkit-box-shadow: inset 0 1px 3px #ddd;
- box-shadow: inset 0 1px 3px #ddd;
- border-radius: 4px;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-form input[type="color"] {
- padding: 0.2em 0.5em;
-}
-.pure-form input[type="color"]:focus,
-.pure-form input[type="date"]:focus,
-.pure-form input[type="datetime-local"]:focus,
-.pure-form input[type="datetime"]:focus,
-.pure-form input[type="email"]:focus,
-.pure-form input[type="month"]:focus,
-.pure-form input[type="number"]:focus,
-.pure-form input[type="password"]:focus,
-.pure-form input[type="search"]:focus,
-.pure-form input[type="tel"]:focus,
-.pure-form input[type="text"]:focus,
-.pure-form input[type="time"]:focus,
-.pure-form input[type="url"]:focus,
-.pure-form input[type="week"]:focus,
-.pure-form select:focus,
-.pure-form textarea:focus {
- outline: 0;
- border-color: #129fea;
-}
-.pure-form input:not([type]):focus {
- outline: 0;
- border-color: #129fea;
-}
-.pure-form input[type="checkbox"]:focus,
-.pure-form input[type="file"]:focus,
-.pure-form input[type="radio"]:focus {
- outline: thin solid #129fea;
- outline: 1px auto #129fea;
-}
-.pure-form .pure-checkbox,
-.pure-form .pure-radio {
- margin: 0.5em 0;
- display: block;
-}
-.pure-form input[type="color"][disabled],
-.pure-form input[type="date"][disabled],
-.pure-form input[type="datetime-local"][disabled],
-.pure-form input[type="datetime"][disabled],
-.pure-form input[type="email"][disabled],
-.pure-form input[type="month"][disabled],
-.pure-form input[type="number"][disabled],
-.pure-form input[type="password"][disabled],
-.pure-form input[type="search"][disabled],
-.pure-form input[type="tel"][disabled],
-.pure-form input[type="text"][disabled],
-.pure-form input[type="time"][disabled],
-.pure-form input[type="url"][disabled],
-.pure-form input[type="week"][disabled],
-.pure-form select[disabled],
-.pure-form textarea[disabled] {
- cursor: not-allowed;
- background-color: #eaeded;
- color: #cad2d3;
-}
-.pure-form input:not([type])[disabled] {
- cursor: not-allowed;
- background-color: #eaeded;
- color: #cad2d3;
-}
-.pure-form input[readonly],
-.pure-form select[readonly],
-.pure-form textarea[readonly] {
- background-color: #eee;
- color: #777;
- border-color: #ccc;
-}
-.pure-form input:focus:invalid,
-.pure-form select:focus:invalid,
-.pure-form textarea:focus:invalid {
- color: #b94a48;
- border-color: #e9322d;
-}
-.pure-form input[type="checkbox"]:focus:invalid:focus,
-.pure-form input[type="file"]:focus:invalid:focus,
-.pure-form input[type="radio"]:focus:invalid:focus {
- outline-color: #e9322d;
-}
-.pure-form select {
- height: 2.25em;
- border: 1px solid #ccc;
- background-color: #fff;
-}
-.pure-form select[multiple] {
- height: auto;
-}
-.pure-form label {
- margin: 0.5em 0 0.2em;
-}
-.pure-form fieldset {
- margin: 0;
- padding: 0.35em 0 0.75em;
- border: 0;
-}
-.pure-form legend {
- display: block;
- width: 100%;
- padding: 0.3em 0;
- margin-bottom: 0.3em;
- color: #333;
- border-bottom: 1px solid #e5e5e5;
-}
-.pure-form-stacked input[type="color"],
-.pure-form-stacked input[type="date"],
-.pure-form-stacked input[type="datetime-local"],
-.pure-form-stacked input[type="datetime"],
-.pure-form-stacked input[type="email"],
-.pure-form-stacked input[type="file"],
-.pure-form-stacked input[type="month"],
-.pure-form-stacked input[type="number"],
-.pure-form-stacked input[type="password"],
-.pure-form-stacked input[type="search"],
-.pure-form-stacked input[type="tel"],
-.pure-form-stacked input[type="text"],
-.pure-form-stacked input[type="time"],
-.pure-form-stacked input[type="url"],
-.pure-form-stacked input[type="week"],
-.pure-form-stacked label,
-.pure-form-stacked select,
-.pure-form-stacked textarea {
- display: block;
- margin: 0.25em 0;
-}
-.pure-form-stacked input:not([type]) {
- display: block;
- margin: 0.25em 0;
-}
-.pure-form-aligned input,
-.pure-form-aligned select,
-.pure-form-aligned textarea,
-.pure-form-message-inline {
- display: inline-block;
- vertical-align: middle;
-}
-.pure-form-aligned textarea {
- vertical-align: top;
-}
-.pure-form-aligned .pure-control-group {
- margin-bottom: 0.5em;
-}
-.pure-form-aligned .pure-control-group label {
- text-align: right;
- display: inline-block;
- vertical-align: middle;
- width: 10em;
- margin: 0 1em 0 0;
-}
-.pure-form-aligned .pure-controls {
- margin: 1.5em 0 0 11em;
-}
-.pure-form .pure-input-rounded,
-.pure-form input.pure-input-rounded {
- border-radius: 2em;
- padding: 0.5em 1em;
-}
-.pure-form .pure-group fieldset {
- margin-bottom: 10px;
-}
-.pure-form .pure-group input,
-.pure-form .pure-group textarea {
- display: block;
- padding: 10px;
- margin: 0 0 -1px;
- border-radius: 0;
- position: relative;
- top: -1px;
-}
-.pure-form .pure-group input:focus,
-.pure-form .pure-group textarea:focus {
- z-index: 3;
-}
-.pure-form .pure-group input:first-child,
-.pure-form .pure-group textarea:first-child {
- top: 1px;
- border-radius: 4px 4px 0 0;
- margin: 0;
-}
-.pure-form .pure-group input:first-child:last-child,
-.pure-form .pure-group textarea:first-child:last-child {
- top: 1px;
- border-radius: 4px;
- margin: 0;
-}
-.pure-form .pure-group input:last-child,
-.pure-form .pure-group textarea:last-child {
- top: -2px;
- border-radius: 0 0 4px 4px;
- margin: 0;
-}
-.pure-form .pure-group button {
- margin: 0.35em 0;
-}
-.pure-form .pure-input-1 {
- width: 100%;
-}
-.pure-form .pure-input-3-4 {
- width: 75%;
-}
-.pure-form .pure-input-2-3 {
- width: 66%;
-}
-.pure-form .pure-input-1-2 {
- width: 50%;
-}
-.pure-form .pure-input-1-3 {
- width: 33%;
-}
-.pure-form .pure-input-1-4 {
- width: 25%;
-}
-.pure-form-message-inline {
- display: inline-block;
- padding-left: 0.3em;
- color: #666;
- vertical-align: middle;
- font-size: 0.875em;
-}
-.pure-form-message {
- display: block;
- color: #666;
- font-size: 0.875em;
-}
-@media only screen and (max-width: 480px) {
- .pure-form button[type="submit"] {
- margin: 0.7em 0 0;
- }
- .pure-form input:not([type]),
- .pure-form input[type="color"],
- .pure-form input[type="date"],
- .pure-form input[type="datetime-local"],
- .pure-form input[type="datetime"],
- .pure-form input[type="email"],
- .pure-form input[type="month"],
- .pure-form input[type="number"],
- .pure-form input[type="password"],
- .pure-form input[type="search"],
- .pure-form input[type="tel"],
- .pure-form input[type="text"],
- .pure-form input[type="time"],
- .pure-form input[type="url"],
- .pure-form input[type="week"],
- .pure-form label {
- margin-bottom: 0.3em;
- display: block;
- }
- .pure-group input:not([type]),
- .pure-group input[type="color"],
- .pure-group input[type="date"],
- .pure-group input[type="datetime-local"],
- .pure-group input[type="datetime"],
- .pure-group input[type="email"],
- .pure-group input[type="month"],
- .pure-group input[type="number"],
- .pure-group input[type="password"],
- .pure-group input[type="search"],
- .pure-group input[type="tel"],
- .pure-group input[type="text"],
- .pure-group input[type="time"],
- .pure-group input[type="url"],
- .pure-group input[type="week"] {
- margin-bottom: 0;
- }
- .pure-form-aligned .pure-control-group label {
- margin-bottom: 0.3em;
- text-align: left;
- display: block;
- width: 100%;
- }
- .pure-form-aligned .pure-controls {
- margin: 1.5em 0 0 0;
- }
- .pure-form-message,
- .pure-form-message-inline {
- display: block;
- font-size: 0.75em;
- padding: 0.2em 0 0.8em;
- }
-}
-.pure-menu {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-menu-fixed {
- position: fixed;
- left: 0;
- top: 0;
- z-index: 3;
-}
-.pure-menu-item,
-.pure-menu-list {
- position: relative;
-}
-.pure-menu-list {
- list-style: none;
- margin: 0;
- padding: 0;
-}
-.pure-menu-item {
- padding: 0;
- margin: 0;
- height: 100%;
-}
-.pure-menu-heading,
-.pure-menu-link {
- display: block;
- text-decoration: none;
- white-space: nowrap;
-}
-.pure-menu-horizontal {
- width: 100%;
- white-space: nowrap;
-}
-.pure-menu-horizontal .pure-menu-list {
- display: inline-block;
-}
-.pure-menu-horizontal .pure-menu-heading,
-.pure-menu-horizontal .pure-menu-item,
-.pure-menu-horizontal .pure-menu-separator {
- display: inline-block;
- vertical-align: middle;
-}
-.pure-menu-item .pure-menu-item {
- display: block;
-}
-.pure-menu-children {
- display: none;
- position: absolute;
- left: 100%;
- top: 0;
- margin: 0;
- padding: 0;
- z-index: 3;
-}
-.pure-menu-horizontal .pure-menu-children {
- left: 0;
- top: auto;
- width: inherit;
-}
-.pure-menu-active > .pure-menu-children,
-.pure-menu-allow-hover:hover > .pure-menu-children {
- display: block;
- position: absolute;
-}
-.pure-menu-has-children > .pure-menu-link:after {
- padding-left: 0.5em;
- content: "\25B8";
- font-size: small;
-}
-.pure-menu-horizontal .pure-menu-has-children > .pure-menu-link:after {
- content: "\25BE";
-}
-.pure-menu-scrollable {
- overflow-y: scroll;
- overflow-x: hidden;
-}
-.pure-menu-scrollable .pure-menu-list {
- display: block;
-}
-.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list {
- display: inline-block;
-}
-.pure-menu-horizontal.pure-menu-scrollable {
- white-space: nowrap;
- overflow-y: hidden;
- overflow-x: auto;
- padding: 0.5em 0;
-}
-.pure-menu-horizontal .pure-menu-children .pure-menu-separator,
-.pure-menu-separator {
- background-color: #ccc;
- height: 1px;
- margin: 0.3em 0;
-}
-.pure-menu-horizontal .pure-menu-separator {
- width: 1px;
- height: 1.3em;
- margin: 0 0.3em;
-}
-.pure-menu-horizontal .pure-menu-children .pure-menu-separator {
- display: block;
- width: auto;
-}
-.pure-menu-heading {
- text-transform: uppercase;
- color: #565d64;
-}
-.pure-menu-link {
- color: #777;
-}
-.pure-menu-children {
- background-color: #fff;
-}
-.pure-menu-disabled,
-.pure-menu-heading,
-.pure-menu-link {
- padding: 0.5em 1em;
-}
-.pure-menu-disabled {
- opacity: 0.5;
-}
-.pure-menu-disabled .pure-menu-link:hover {
- background-color: transparent;
-}
-.pure-menu-active > .pure-menu-link,
-.pure-menu-link:focus,
-.pure-menu-link:hover {
- background-color: #eee;
-}
-.pure-menu-selected > .pure-menu-link,
-.pure-menu-selected > .pure-menu-link:visited {
- color: #000;
-}
-.pure-table {
- border-collapse: collapse;
- border-spacing: 0;
- empty-cells: show;
- border: 1px solid #cbcbcb;
-}
-.pure-table caption {
- color: #000;
- font: italic 85%/1 arial, sans-serif;
- padding: 1em 0;
- text-align: center;
-}
-.pure-table td,
-.pure-table th {
- border-left: 1px solid #cbcbcb;
- border-width: 0 0 0 1px;
- font-size: inherit;
- margin: 0;
- overflow: visible;
- padding: 0.5em 1em;
-}
-.pure-table thead {
- background-color: #e0e0e0;
- color: #000;
- text-align: left;
- vertical-align: bottom;
-}
-.pure-table td {
- background-color: transparent;
-}
-.pure-table-odd td {
- background-color: #f2f2f2;
-}
-.pure-table-striped tr:nth-child(2n-1) td {
- background-color: #f2f2f2;
-}
-.pure-table-bordered td {
- border-bottom: 1px solid #cbcbcb;
-}
-.pure-table-bordered tbody > tr:last-child > td {
- border-bottom-width: 0;
-}
-.pure-table-horizontal td,
-.pure-table-horizontal th {
- border-width: 0 0 1px 0;
- border-bottom: 1px solid #cbcbcb;
-}
-.pure-table-horizontal tbody > tr:last-child > td {
- border-bottom-width: 0;
-}
-.q1ma0zxq{margin:auto;text-align:center;width:340px;}
-.fef0x5t{text-align:center;background-color:#033;color:white;padding:1em;overflow:auto;}.fef0x5t > p > a:link,.fef0x5t > p > a:visited,.fef0x5t > p > a:hover,.fef0x5t > p > a:active{color:white;}
-.p1b3vqup{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:100vh;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.p1b3vqup a:link,.p1b3vqup a:visited,.p1b3vqup a:hover,.p1b3vqup a:active{color:black;}.p1b3vqup section{text-align:center;width:600px;margin-bottom:auto;}.p1b3vqup section:not(:first-of-type){margin-top:2em;}.p1b3vqup > header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:center;}.p1b3vqup > footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;width:100%;margin-bottom:0px;}
-.c1gnd3xp{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
-.wpwjmk{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;text-transform:var(--wpwjmk-0);font-family:inherit;font-size:100%;padding:0.5em 1em;color:#444;color:rgba(0,0,0,0.8);border:1px solid #999;border:none rgba(0,0,0,0);background-color:'#e6e6e6';-webkit-text-decoration:none;text-decoration:none;border-radius:2px;background-color:#e6e6e6;border-radius:4px;text-shadow:0 1px 1px rgba(0,0,0,0.2);box-shadow:0 0 0 1px rgba(0,0,0,0.15) inset, 0 0 6px rgba(0,0,0,0.2) inset;border-color:#000;}.wpwjmk:focus{outline:0;}.wpwjmk:disabled{border:none;background-image:none;-webkit-filter:alpha(opacity=40);filter:alpha(opacity=40);opacity:0.4;cursor:not-allowed;box-shadow:none;pointer-events:none;}.wpwjmk:hover{-webkit-filter:alpha(opacity=90);filter:alpha(opacity=90);background-image:linear-gradient( transparent, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.1) );}
-.i1pkgksb{border-radius:0.25em;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:1em;border:solid 1px #b8daff;background-color:#cce5ff;color:#004085;}
-.t2c81u8{text-align:left;}.t2c81u8 dt{font-weight:bold;margin-top:1em;}.t2c81u8 dd{margin-inline-start:0px;}
-.t1mav7fx{text-align:left;}.t1mav7fx dt{font-weight:bold;display:inline-block;width:30%;}.t1mav7fx dd{margin-inline-start:0px;display:inline-block;width:70%;}
-/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3NlYmFzam0vV29yay90YWxlci93YWxsZXQtY29yZS9wYWNrYWdlcy9tZXJjaGFudC1iYWNrZW5kLXVpL3NyYy9zdHlsZWQvaW5kZXgudHN4Il0sIm5hbWVzIjpbIi5xMW1hMHp4cSIsIi5mZWYweDV0IiwiLnAxYjN2cXVwIiwiLmMxZ25kM3hwIiwiLndwd2ptayIsIi5pMXBrZ2tzYiIsIi50MmM4MXU4IiwiLnQxbWF2N2Z4Il0sIm1hcHBpbmdzIjoiQUFvQmFBO0FBS0FDO0FBY0FDO0FBdUNBQztBQUlBQztBQXVEQUM7QUFVQUM7QUFVQUMiLCJmaWxlIjoiL2hvbWUvc2ViYXNqbS9Xb3JrL3RhbGVyL3dhbGxldC1jb3JlL3BhY2thZ2VzL21lcmNoYW50LWJhY2tlbmQtdWkvc3JjL3N0eWxlZC9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgZmlsZSBpcyBwYXJ0IG9mIEdOVSBUYWxlclxuIChDKSAyMDIxIFRhbGVyIFN5c3RlbXMgUy5BLlxuXG4gR05VIFRhbGVyIGlzIGZyZWUgc29mdHdhcmU7IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnkgaXQgdW5kZXIgdGhlXG4gdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieSB0aGUgRnJlZSBTb2Z0d2FyZVxuIEZvdW5kYXRpb247IGVpdGhlciB2ZXJzaW9uIDMsIG9yIChhdCB5b3VyIG9wdGlvbikgYW55IGxhdGVyIHZlcnNpb24uXG5cbiBHTlUgVGFsZXIgaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCwgYnV0IFdJVEhPVVQgQU5ZXG4gV0FSUkFOVFk7IHdpdGhvdXQgZXZlbiB0aGUgaW1wbGllZCB3YXJyYW50eSBvZiBNRVJDSEFOVEFCSUxJVFkgb3IgRklUTkVTUyBGT1JcbiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4gIFNlZSB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0YWlscy5cblxuIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFsb25nIHdpdGhcbiBHTlUgVGFsZXI7IHNlZSB0aGUgZmlsZSBDT1BZSU5HLiAgSWYgbm90LCBzZWUgPGh0dHA6Ly93d3cuZ251Lm9yZy9saWNlbnNlcy8+XG4gKi9cbi8qKlxuKlxuKiBAYXV0aG9yIFNlYmFzdGlhbiBKYXZpZXIgTWFyY2hhbm8gKHNlYmFzam0pXG4qL1xuaW1wb3J0IHsgc3R5bGVkIH0gZnJvbSAnQGxpbmFyaWEvcmVhY3QnO1xuZXhwb3J0IGNvbnN0IFFSUGxhY2Vob2xkZXIgPSBzdHlsZWQuZGl2IGBcbiAgbWFyZ2luOiBhdXRvO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHdpZHRoOiAzNDBweDsgXG5gO1xuZXhwb3J0IGNvbnN0IEZvb3RlckJhciA9IHN0eWxlZC5mb290ZXIgYFxuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGJhY2tncm91bmQtY29sb3I6ICMwMzM7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgcGFkZGluZzogMWVtO1xuICBvdmVyZmxvdzogYXV0bztcblxuICAmID4gcCA+IGE6bGluayxcbiAgJiA+IHAgPiBhOnZpc2l0ZWQsXG4gICYgPiBwID4gYTpob3ZlcixcbiAgJiA+IHAgPiBhOmFjdGl2ZSB7XG4gICAgY29sb3I6IHdoaXRlO1xuICB9XG5gO1xuZXhwb3J0IGNvbnN0IFBhZ2UgPSBzdHlsZWQuZGl2IGBcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICBtaW4taGVpZ2h0OiAxMDB2aDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgXG4gIGE6bGluayxcbiAgYTp2aXNpdGVkLFxuICBhOmhvdmVyLFxuICBhOmFjdGl2ZSB7XG4gICAgY29sb3I6IGJsYWNrO1xuICB9XG4gIFxuICBzZWN0aW9uIHtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgd2lkdGg6IDYwMHB4O1xuICAgIC8qIG1hcmdpbjogYXV0bzsgKi9cbiAgICAvKiBtYXJnaW4tdG9wOiAwcHg7ICovXG4gICAgbWFyZ2luLWJvdHRvbTogYXV0bztcbiAgICAvKiBvdmVyZmxvdzogYXV0bzsgKi9cbiAgfVxuICBzZWN0aW9uOm5vdCg6Zmlyc3Qtb2YtdHlwZSkge1xuICAgIG1hcmdpbi10b3A6IDJlbTtcbiAgfVxuICAmID4gaGVhZGVyIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgfVxuICAmID4gZm9vdGVyIHtcbiAgICBkaXNwbGF5OiBmbGV4OyAgICBcbiAgICBmbGV4LWRpcmVjdGlvbjogcm93O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIG1hcmdpbi1ib3R0b206IDBweDtcbiAgfVxuYDtcbmV4cG9ydCBjb25zdCBDZW50ZXIgPSBzdHlsZWQuZGl2IGBcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5gO1xuZXhwb3J0IGNvbnN0IFdhbGxldExpbmsgPSBzdHlsZWQuYSBgXG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgem9vbTogMTtcbiAgbGluZS1oZWlnaHQ6IG5vcm1hbDtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgdmVydGljYWwtYWxpZ246IG1pZGRsZTtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIHVzZXItc2VsZWN0OiBub25lO1xuICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICB0ZXh0LXRyYW5zZm9ybTogJHsoeyB1cHBlckNhc2VkIH0pID0+IHVwcGVyQ2FzZWQgPyAndXBwZXJjYXNlJyA6ICdub25lJ307XG5cbiAgZm9udC1mYW1pbHk6IGluaGVyaXQ7XG4gIGZvbnQtc2l6ZTogMTAwJTtcbiAgcGFkZGluZzogMC41ZW0gMWVtO1xuICBjb2xvcjogIzQ0NDsgLyogcmdiYSBub3Qgc3VwcG9ydGVkIChJRSA4KSAqL1xuICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjgpOyAvKiByZ2JhIHN1cHBvcnRlZCAqL1xuICBib3JkZXI6IDFweCBzb2xpZCAjOTk5OyAvKklFIDYvNy84Ki9cbiAgYm9yZGVyOiBub25lIHJnYmEoMCwgMCwgMCwgMCk7IC8qSUU5ICsgZXZlcnl0aGluZyBlbHNlKi9cbiAgYmFja2dyb3VuZC1jb2xvcjogJyNlNmU2ZTYnO1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIGJvcmRlci1yYWRpdXM6IDJweDtcblxuICA6Zm9jdXMge1xuICAgIG91dGxpbmU6IDA7XG4gIH1cblxuICAmOmRpc2FibGVkIHtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogbm9uZTtcbiAgICAvKiBjc3NsaW50IGlnbm9yZTpzdGFydCAqL1xuICAgIGZpbHRlcjogYWxwaGEob3BhY2l0eT00MCk7XG4gICAgLyogY3NzbGludCBpZ25vcmU6ZW5kICovXG4gICAgb3BhY2l0eTogMC40O1xuICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgYm94LXNoYWRvdzogbm9uZTtcbiAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcbiAgfVxuXG4gIDpob3ZlciB7XG4gICAgZmlsdGVyOiBhbHBoYShvcGFjaXR5PTkwKTtcbiAgICBiYWNrZ3JvdW5kLWltYWdlOiBsaW5lYXItZ3JhZGllbnQoXG4gICAgICB0cmFuc3BhcmVudCxcbiAgICAgIHJnYmEoMCwgMCwgMCwgMC4wNSkgNDAlLFxuICAgICAgcmdiYSgwLCAwLCAwLCAwLjEpXG4gICAgKTtcbiAgfVxuXG4gIGJhY2tncm91bmQtY29sb3I6ICNlNmU2ZTY7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgdGV4dC1zaGFkb3c6IDAgMXB4IDFweCByZ2JhKDAsIDAsIDAsIDAuMik7XG4gIGJveC1zaGFkb3c6IDAgMCAwIDFweCByZ2JhKDAsIDAsIDAsIDAuMTUpIGluc2V0LFxuICAgIDAgMCA2cHggcmdiYSgwLCAwLCAwLCAwLjIpIGluc2V0O1xuICBib3JkZXItY29sb3I6ICMwMDA7XG5gO1xuZXhwb3J0IGNvbnN0IEluZm9Cb3ggPSBzdHlsZWQuZGl2IGBcbiAgYm9yZGVyLXJhZGl1czogMC4yNWVtO1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAvKiBtYXJnaW46IDAuNWVtOyAqL1xuICBwYWRkaW5nOiAxZW07XG4gIC8qIHdpZHRoOiAxMDAlOyAqL1xuICBib3JkZXI6c29saWQgMXB4ICNiOGRhZmY7XG4gIGJhY2tncm91bmQtY29sb3I6I2NjZTVmZjtcbiAgY29sb3I6IzAwNDA4NTtcbmA7XG5leHBvcnQgY29uc3QgVGFibGVFeHBhbmRlZCA9IHN0eWxlZC5kbCBgXG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIGR0IHtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICBtYXJnaW4tdG9wOiAxZW07XG4gIH1cbiAgZGQge1xuICAgIG1hcmdpbi1pbmxpbmUtc3RhcnQ6IDBweDtcbiAgfVxuYDtcbmV4cG9ydCBjb25zdCBUYWJsZVNpbXBsZSA9IHN0eWxlZC5kbCBgXG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIGR0IHtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgd2lkdGg6MzAlO1xuICB9XG4gIGRkIHtcbiAgICBtYXJnaW4taW5saW5lLXN0YXJ0OiAwcHg7XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIHdpZHRoOjcwJTtcbiAgfVxuYDtcbiJdfQ==*/</style>
- </head>
- <script id="built_time_data">
- </script>
- <body>
- <div class="p1b3vqup"><section><h1>Pay with Taler</h1><p>Scan this QR code with your mobile wallet:</p><div class="q1ma0zxq">{{{ taler_pay_qrcode_svg }}}</div><p><a href="{{ taler_pay_uri }}" style="--wpwjmk-0: none;" class="wpwjmk">Or open your Taler wallet</a></p><p><a href="https://wallet.taler.net/">Don't have a Taler wallet yet? Install it!</a></p></section><footer class="fef0x5t"><p><a href="https://taler.net/">Learn more about GNU Taler on our website.</a><p>Copyright © 2014—2021 Taler Systems SA</p></p></footer></div>
- <script>var page = (function (exports) {
- 'use strict';
-
- var n$1,l$2,u$2,t$1,o$2,r$1,f$2={},e$1=[],c$2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s$2(n,l){for(var u in l)n[u]=l[u];return n}function a$2(n){var l=n.parentNode;l&&l.removeChild(n);}function h$2(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v$2(l,f,t,o,null)}function v$2(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$2:r};return null==r&&null!=l$2.vnode&&l$2.vnode(f),f}function y$2(){return {current:null}}function p$2(n){return n.children}function d$2(n,l){this.props=n,this.context=l;}function _$2(n,l){if(null==l)return n.__?_$2(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?_$2(n):null}function k$3(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k$3(n)}}function b$2(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$3.__r++||o$2!==l$2.debounceRendering)&&((o$2=l$2.debounceRendering)||setTimeout)(g$3);}function g$3(){for(var n;g$3.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s$2({},t)).__v=t.__v+1,j$3(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_$2(t):o,t.__h),z$2(u,t),t.__e!=o&&k$3(t)));});}function w$3(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e$1,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$2(null,k,null,null,k):Array.isArray(k)?v$2(p$2,{children:k},null,null,null):k.__b>0?v$2(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j$3(n,k,d=d||f$2,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m$2(k,s,n):s=A$3(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_$2(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&N$1(x[h],x[h]);if(w)for(h=0;h<w.length;h++)M$1(w[h],w[++h],w[++h]);}function m$2(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m$2(i,l,u):A$3(u,i,i,t,i.__e,l));return l}function x$3(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){x$3(n,l);}):l.push(n)),l}function A$3(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C$2(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H$1(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H$1(n,o,l[o],u[o],i);}function $$1(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c$2.test(l)?u:u+"px";}function H$1(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$$1(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$$1(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$2:I$1,o):n.removeEventListener(l,o?T$2:I$1,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function I$1(n){this.l[n.type+!1](l$2.event?l$2.event(n):n);}function T$2(n){this.l[n.type+!0](l$2.event?l$2.event(n):n);}function j$3(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H,I,T=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l$2.__b)&&a(u);try{n:if("function"==typeof T){if(g=u.props,m=(a=T.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in T&&T.prototype.render?u.__c=h=new T(g,x):(u.__c=h=new d$2(g,x),h.constructor=T,h.render=O$2),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s$2({},h.__s)),s$2(h.__s,T.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==T.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){for(h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,C=l$2.__r,$=0,"prototype"in T&&T.prototype.render){for(h.state=h.__s,h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(t=s$2(s$2({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),I=null!=a&&a.type===p$2&&null==a.key?a.props.children:a,w$3(n,Array.isArray(I)?I:[I],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L$1(i.__e,u,i,t,o,r,f,c);(a=l$2.diffed)&&a(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$2.__e(n,u,i);}}function z$2(n,u){l$2.__c&&l$2.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$2.__e(n,u.__v);}});}function L$1(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n$1.call(l.childNodes),h=(y=i.props||f$2).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C$2(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w$3(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_$2(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a$2(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H$1(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H$1(l,"checked",k,y.checked,!1));}return l}function M$1(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$2.__e(n,i);}}function N$1(n,u,i){var t,o;if(l$2.unmount&&l$2.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M$1(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$2.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N$1(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||a$2(n.__e),n.__=n.__e=n.__d=void 0;}function O$2(n,l,u){return this.constructor(n,u)}function P$1(u,i,t){var o,r,e;l$2.__&&l$2.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j$3(i,u=(!o&&t||i).__k=h$2(p$2,null,[u]),r||f$2,f$2,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n$1.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z$2(e,u);}function S$1(n,l){P$1(n,l,S$1);}function q$2(l,u,i){var t,o,r,f=s$2({},l.props);for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];return arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):i),v$2(l.type,f,t||l.key,o||l.ref,null)}function B$2(n,l){var u={__c:l="__cC"+r$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(b$2);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n$1=e$1.slice,l$2={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$2=0,d$2.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s$2({},this.state),"function"==typeof n&&(n=n(s$2({},u),this.props)),n&&s$2(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),b$2(this));},d$2.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b$2(this));},d$2.prototype.render=p$2,t$1=[],g$3.__r=0,r$1=0;
-
- var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,o$1=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,i$1=/[\s\n\\/='"\0<>]/,l$1=/^xlink:?./,a$1=/["&<]/;function s$1(e){if(!1===a$1.test(e+=""))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1;}return r!==t&&(n+=e.slice(t,r)),n}var f$1=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},u$1=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},c$1={},_$1=/([A-Z])/g;function p$1(e){var t="";for(var r in e){var o=e[r];null!=o&&""!==o&&(t&&(t+=" "),t+="-"==r[0]?r:c$1[r]||(c$1[r]=r.replace(_$1,"-$1").toLowerCase()),t="number"==typeof o&&!1===n.test(r)?t+": "+o+"px;":t+": "+o+";");}return t||void 0}function d$1(e,t){return Array.isArray(t)?t.reduce(d$1,e):null!=t&&!1!==t&&e.push(t),e}function v$1(){this.__d=!0;}function h$1(e,t){return {__v:e,context:t,props:e.props,setState:v$1,forceUpdate:v$1,__d:!0,__h:[]}}function g$2(e,t){var r=e.contextType,n=r&&t[r.__c];return null!=r?n?n.props.value:r.__:t}var y$1=[];function m$1(r,n,a,c,_,v){if(null==r||"boolean"==typeof r)return "";if("object"!=typeof r)return "function"==typeof r?"":s$1(r);var b=a.pretty,x=b&&"string"==typeof b?b:"\t";if(Array.isArray(r)){for(var k="",S=0;S<r.length;S++)b&&S>0&&(k+="\n"),k+=m$1(r[S],n,a,c,_,v);return k}if(void 0!==r.constructor)return "";var w,C=r.type,O=r.props,j=!1;if("function"==typeof C){if(j=!0,!a.shallow||!c&&!1!==a.renderRootComponent){if(C===p$2){var A=[];return d$1(A,r.props.children),m$1(A,n,a,!1!==a.shallowHighOrder,_,v)}var F,H=r.__c=h$1(r,n);l$2.__b&&l$2.__b(r);var M=l$2.__r;if(C.prototype&&"function"==typeof C.prototype.render){var L=g$2(C,n);(H=r.__c=new C(O,L)).__v=r,H._dirty=H.__d=!0,H.props=O,null==H.state&&(H.state={}),null==H._nextState&&null==H.__s&&(H._nextState=H.__s=H.state),H.context=L,C.getDerivedStateFromProps?H.state=Object.assign({},H.state,C.getDerivedStateFromProps(H.props,H.state)):H.componentWillMount&&(H.componentWillMount(),H.state=H._nextState!==H.state?H._nextState:H.__s!==H.state?H.__s:H.state),M&&M(r),F=H.render(H.props,H.state,H.context);}else for(var T=g$2(C,n),E=0;H.__d&&E++<25;)H.__d=!1,M&&M(r),F=C.call(r.__c,O,T);return H.getChildContext&&(n=Object.assign({},n,H.getChildContext())),l$2.diffed&&l$2.diffed(r),m$1(F,n,a,!1!==a.shallowHighOrder,_,v)}C=(w=C).displayName||w!==Function&&w.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=y$1.length;n--;)if(y$1[n]===e){r=n;break}r<0&&(r=y$1.push(e)-1),t="UnnamedComponent"+r;}return t}(w);}var $,D,N="<"+C;if(O){var P=Object.keys(O);a&&!0===a.sortAttributes&&P.sort();for(var W=0;W<P.length;W++){var I=P[W],R=O[I];if("children"!==I){if(!i$1.test(I)&&(a&&a.allAttributes||"key"!==I&&"ref"!==I&&"__self"!==I&&"__source"!==I)){if("defaultValue"===I)I="value";else if("defaultChecked"===I)I="checked";else if("defaultSelected"===I)I="selected";else if("className"===I){if(void 0!==O.class)continue;I="class";}else _&&l$1.test(I)&&(I=I.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===I){if(O.for)continue;I="for";}"style"===I&&R&&"object"==typeof R&&(R=p$1(R)),"a"===I[0]&&"r"===I[1]&&"boolean"==typeof R&&(R=String(R));var U=a.attributeHook&&a.attributeHook(I,R,n,a,j);if(U||""===U)N+=U;else if("dangerouslySetInnerHTML"===I)D=R&&R.__html;else if("textarea"===C&&"value"===I)$=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=I,a&&a.xml))){N=N+" "+I;continue}if("value"===I){if("select"===C){v=R;continue}"option"===C&&v==R&&void 0===O.selected&&(N+=" selected");}N=N+" "+I+'="'+s$1(R)+'"';}}}else $=R;}}if(b){var V=N.replace(/\n\s*/," ");V===N||~V.indexOf("\n")?b&&~N.indexOf("\n")&&(N+="\n"):N=V;}if(N+=">",i$1.test(C))throw new Error(C+" is not a valid HTML tag name in "+N);var q,z=o$1.test(C)||a.voidElements&&a.voidElements.test(C),Z=[];if(D)b&&u$1(D)&&(D="\n"+x+f$1(D,x)),N+=D;else if(null!=$&&d$1(q=[],$).length){for(var B=b&&~N.indexOf("\n"),G=!1,J=0;J<q.length;J++){var K=q[J];if(null!=K&&!1!==K){var Q=m$1(K,n,a,!0,"svg"===C||"foreignObject"!==C&&_,v);if(b&&!B&&u$1(Q)&&(B=!0),Q)if(b){var X=Q.length>0&&"<"!=Q[0];G&&X?Z[Z.length-1]+=Q:Z.push(Q),G=X;}else Z.push(Q);}}if(b&&B)for(var Y=Z.length;Y--;)Z[Y]="\n"+x+f$1(Z[Y],x);}if(Z.length||D)N+=Z.join("");else if(a&&a.xml)return N.substring(0,N.length-1)+" />";return !z||q||D?(b&&~N.indexOf("\n")&&(N+="\n"),N=N+"</"+C+">"):N=N.replace(/>$/," />"),N}var b$1={shallow:!0};S.render=S;var x$2=function(e,t){return S(e,t,b$1)},k$2=[];function S(n,o,i){o=o||{};var l=l$2.__s;l$2.__s=!0;var a,s=h$2(p$2,null);return s.__k=[n],a=i&&(i.pretty||i.voidElements||i.sortAttributes||i.shallow||i.allAttributes||i.xml||i.attributeHook)?m$1(n,o,i):F$2(n,o,!1,void 0,s),l$2.__c&&l$2.__c(n,k$2),l$2.__s=l,k$2.length=0,a}function w$2(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?h$2(null,null,e):e}function C$1(e,t){return "className"===e?"class":"htmlFor"===e?"for":"defaultValue"===e?"value":"defaultChecked"===e?"checked":"defaultSelected"===e?"selected":t&&l$1.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function O$1(e,t){return "style"===e&&null!=t&&"object"==typeof t?p$1(t):"a"===e[0]&&"r"===e[1]&&"boolean"==typeof t?String(t):t}var j$2=Array.isArray,A$2=Object.assign;function F$2(r,n,l,a,f){if(null==r||!0===r||!1===r||""===r)return "";if("object"!=typeof r)return "function"==typeof r?"":s$1(r);if(j$2(r)){var u="";f.__k=r;for(var c=0;c<r.length;c++)u+=F$2(r[c],n,l,a,f),r[c]=w$2(r[c]);return u}if(void 0!==r.constructor)return "";r.__=f,l$2.__b&&l$2.__b(r);var _=r.type,p=r.props;if("function"==typeof _){var d;if(_===p$2)d=p.children;else {d=_.prototype&&"function"==typeof _.prototype.render?function(e,r){var n=e.type,o=g$2(n,r),i=new n(e.props,o);e.__c=i,i.__v=e,i.__d=!0,i.props=e.props,null==i.state&&(i.state={}),null==i.__s&&(i.__s=i.state),i.context=o,n.getDerivedStateFromProps?i.state=A$2({},i.state,n.getDerivedStateFromProps(i.props,i.state)):i.componentWillMount&&(i.componentWillMount(),i.state=i.__s!==i.state?i.__s:i.state);var l=l$2.__r;return l&&l(e),i.render(i.props,i.state,i.context)}(r,n):function(e,r){var n,o=h$1(e,r),i=g$2(e.type,r);e.__c=o;for(var l=l$2.__r,a=0;o.__d&&a++<25;)o.__d=!1,l&&l(e),n=e.type.call(o,e.props,i);return n}(r,n);var v=r.__c;v.getChildContext&&(n=A$2({},n,v.getChildContext()));}var y=F$2(d=null!=d&&d.type===p$2&&null==d.key?d.props.children:d,n,l,a,r);return l$2.diffed&&l$2.diffed(r),r.__=void 0,l$2.unmount&&l$2.unmount(r),y}var m,b,x="<";if(x+=_,p)for(var k in m=p.children,p){var S=p[k];if(!("key"===k||"ref"===k||"__self"===k||"__source"===k||"children"===k||"className"===k&&"class"in p||"htmlFor"===k&&"for"in p||i$1.test(k)))if(S=O$1(k=C$1(k,l),S),"dangerouslySetInnerHTML"===k)b=S&&S.__html;else if("textarea"===_&&"value"===k)m=S;else if((S||0===S||""===S)&&"function"!=typeof S){if(!0===S||""===S){S=k,x=x+" "+k;continue}if("value"===k){if("select"===_){a=S;continue}"option"!==_||a!=S||"selected"in p||(x+=" selected");}x=x+" "+k+'="'+s$1(S)+'"';}}var H=x;if(x+=">",i$1.test(_))throw new Error(_+" is not a valid HTML tag name in "+x);var M="",L=!1;if(b)M+=b,L=!0;else if("string"==typeof m)M+=s$1(m),L=!0;else if(j$2(m)){r.__k=m;for(var T=0;T<m.length;T++){var E=m[T];if(m[T]=w$2(E),null!=E&&!1!==E){var $=F$2(E,n,"svg"===_||"foreignObject"!==_&&l,a,r);$&&(M+=$,L=!0);}}}else if(null!=m&&!1!==m&&!0!==m){r.__k=[w$2(m)];var D=F$2(m,n,"svg"===_||"foreignObject"!==_&&l,a,r);D&&(M+=D,L=!0);}if(l$2.diffed&&l$2.diffed(r),r.__=void 0,l$2.unmount&&l$2.unmount(r),L)x+=M;else if(o$1.test(_))return H+" />";return x+"</"+_+">"}S.shallowRender=x$2;
-
- var t,r,u,i,o=0,f=[],c=[],e=l$2.__b,a=l$2.__r,v=l$2.diffed,l=l$2.__c,m=l$2.unmount;function d(t,u){l$2.__h&&l$2.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function p(n){return o=1,y(B$1,n)}function y(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$1(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){r.u=!0;var f=r.shouldComponentUpdate;r.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!f||f.call(this,n,t,r))};}return o.__N||o.__}function h(u,i){var o=d(t++,3);!l$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function s(u,i){var o=d(t++,4);!l$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o));}function _(n){return o=5,F$1(function(){return {current:n}},[])}function A$1(n,t,r){o=6,s(function(){return "function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n));}function F$1(n,r){var u=d(t++,7);return z$1(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$1(n,t){return o=8,F$1(function(){return n},t)}function q$1(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x$1(t,r){l$2.useDebugValue&&l$2.useDebugValue(r?r(t):t);}function V$1(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++;}return n.__}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k$1),t.__H.__h.forEach(w$1),t.__H.__h=[];}catch(r){t.__H.__h=[],l$2.__e(r,t.__v);}}l$2.__b=function(n){r=null,e&&e(n);},l$2.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k$1),i.__h.forEach(w$1),i.__h=[])),u=r;},l$2.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$2.requestAnimationFrame||((i=l$2.requestAnimationFrame)||j$1)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},l$2.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$1),t.__h=t.__h.filter(function(n){return !n.__||w$1(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$2.__e(u,t.__v);}}),l&&l(t,r);},l$2.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k$1(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$2.__e(r,u.__v));};var g$1="function"==typeof requestAnimationFrame;function j$1(n){var t,r=function(){clearTimeout(u),g$1&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$1&&(t=requestAnimationFrame(r));}function k$1(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w$1(n){var t=r;n.__c=n.__(),r=t;}function z$1(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$1(n,t){return "function"==typeof t?t(n):t}
-
- function memoize(fn) {
- var cache = {};
- return function (arg) {
- if (cache[arg] === undefined) cache[arg] = fn(arg);
- return cache[arg];
- };
- }
-
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
-
- var index = memoize(function (prop) {
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
- /* o */
- && prop.charCodeAt(1) === 110
- /* n */
- && prop.charCodeAt(2) < 91;
- }
- /* Z+1 */
- );
-
- function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n,t){return n===t&&(0!==n||1/n==1/t)||n!=n&&t!=t}function w(n){this.props=n;}function R(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return !r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C(this.props,n)}function u(e){return this.shouldComponentUpdate=r,h$2(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(w.prototype=new d$2).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var x=l$2.__b;l$2.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x&&x(n);};var N="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function k(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var A=function(n,t){return null==n?null:x$3(x$3(n).map(t))},O={map:A,forEach:A,count:function(n){return n?x$3(n).length:0},only:function(n){var t=x$3(n);if(1!==t.length)throw "Children.only";return t[0]},toArray:x$3},T=l$2.__e;l$2.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r);};var I=l$2.unmount;function L(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)})),n}function U(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null;}function F(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function M(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n;},function(n){u=n;}),u)throw u;if(!r)throw e;return h$2(r,o)}return o.displayName="Lazy",o.__f=!0,o}function V(){this.u=null,this.o=null;}l$2.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),I&&I(n);},(D.prototype=new d$2).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=F(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=U(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate();}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i);},D.prototype.componentWillUnmount=function(){this.t=[];},D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=L(this.__b,r,o.__O=o.__P);}this.__b=null;}var i=e.__a&&h$2(p$2,null,n.fallback);return i&&(i.__h=null),[h$2(p$2,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function P(n){return this.getChildContext=function(){return n.context},n.children}function $(n){var e=this,r=n.i;e.componentWillUnmount=function(){P$1(null,e.l),e.l=null,e.i=null;},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n);},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n);}}),P$1(h$2(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount();}function j(n,e){var r=h$2($,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new d$2).__a=function(n){var t=this,e=F(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u();};e?e(o):o();}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=x$3(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t);});};var z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H="undefined"!=typeof document,Z=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function Y(n,t,e){return null==t.__k&&(t.textContent=""),P$1(n,t),"function"==typeof e&&e(),n?n.__c:null}function q(n,t,e){return S$1(n,t),"function"==typeof e&&e(),n?n.__c:null}d$2.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(d$2.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});}});});var G=l$2.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}l$2.event=function(n){return G&&(n=G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var X,nn={configurable:!0,get:function(){return this.class}},tn=l$2.vnode;l$2.vnode=function(n){var t=n.type,e=n.props,u=e;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in u={},e){var l=e[i];H&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in e&&null==l||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Z(e.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&B.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i="oninputCapture")),u[i]=l);}"select"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=x$3(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),"select"==t&&null!=u.defaultValue&&(u.value=x$3(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;})),n.props=u,e.class!=e.className&&(nn.enumerable="className"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,"className",nn));}n.$$typeof=z,tn&&tn(n);};var en=l$2.__r;l$2.__r=function(n){en&&en(n),X=n.__c;};var rn={ReactCurrentDispatcher:{current:{readContext:function(n){return X.__n[n.__c].props.value}}}};function on(n){return h$2.bind(null,n)}function ln(n){return !!n&&n.$$typeof===z}function cn(n){return ln(n)?q$2.apply(null,arguments):n}function fn(n){return !!n.__k&&(P$1(null,n),!0)}function an(n){return n&&(n.base||1===n.nodeType&&n)||null}var sn=function(n,t){return n(t)},hn=function(n,t){return n(t)},vn=p$2;function dn(n){n();}function pn(n){return n}function mn(){return [!1,dn]}var yn=s;function _n(n,t){var e=t(),r=p({h:{__:e,v:t}}),u=r[0].h,o=r[1];return s(function(){u.__=e,u.v=t,E(u.__,t())||o({h:u});},[n,e,t]),h(function(){return E(u.__,u.v())||o({h:u}),n(function(){E(u.__,u.v())||o({h:u});})},[n]),e}var bn={useState:p,useId:V$1,useReducer:y,useEffect:h,useLayoutEffect:s,useInsertionEffect:yn,useTransition:mn,useDeferredValue:pn,useSyncExternalStore:_n,startTransition:dn,useRef:_,useImperativeHandle:A$1,useMemo:F$1,useCallback:T$1,useContext:q$1,useDebugValue:x$1,version:"17.0.2",Children:O,render:Y,hydrate:q,unmountComponentAtNode:fn,createPortal:j,createElement:h$2,createContext:B$2,createFactory:on,cloneElement:cn,createRef:y$2,Fragment:p$2,isValidElement:ln,findDOMNode:an,Component:d$2,PureComponent:w,memo:R,forwardRef:k,flushSync:hn,unstable_batchedUpdates:sn,StrictMode:vn,Suspense:D,SuspenseList:V,lazy:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:rn};
-
- /**
- * Takes a list of class names and filters for truthy ones, joining them into a single class name for convenience.
- * eg.
- * ```js
- * cx('red', isBig && 'big') // returns 'red big' if `isBig` is true, otherwise returns 'red'
- * ```
- * If space separated atomic styles are provided, they are deduplicated according to the first hashed valued:
- *
- * ```js
- * cx('atm_a_class1 atm_b_class2', 'atm_a_class3') // returns `atm_a_class3 atm_b_class2`
- * ```
- *
- * @returns the combined, space separated class names that can be applied directly to the class attribute
- */
- const cx = function cx() {
- const presentClassNames = Array.prototype.slice // eslint-disable-next-line prefer-rest-params
- .call(arguments).filter(Boolean);
- const atomicClasses = {};
- const nonAtomicClasses = [];
- presentClassNames.forEach(arg => {
- // className could be the output of a previous cx call, so split by ' ' first
- const individualClassNames = arg ? arg.split(' ') : [];
- individualClassNames.forEach(className => {
- if (className.startsWith('atm_')) {
- const [, keyHash] = className.split('_');
- atomicClasses[keyHash] = className;
- } else {
- nonAtomicClasses.push(className);
- }
- });
- });
- const result = []; // eslint-disable-next-line no-restricted-syntax
-
- for (const keyHash in atomicClasses) {
- if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
- result.push(atomicClasses[keyHash]);
- }
- }
-
- result.push(...nonAtomicClasses);
- return result.join(' ');
- };
-
- var cx$1 = cx;
-
- /* eslint-disable @typescript-eslint/no-explicit-any */
-
- const isCapital = ch => ch.toUpperCase() === ch;
-
- const filterKey = keys => key => keys.indexOf(key) === -1;
-
- const omit = (obj, keys) => {
- const res = {};
- Object.keys(obj).filter(filterKey(keys)).forEach(key => {
- res[key] = obj[key];
- });
- return res;
- };
-
- function filterProps(component, props, omitKeys) {
- const filteredProps = omit(props, omitKeys); // Check if it's an HTML tag and not a custom element
-
- if (typeof component === 'string' && component.indexOf('-') === -1 && !isCapital(component[0])) {
- Object.keys(filteredProps).forEach(key => {
- if (!index(key)) {
- // Don't pass through invalid attributes to HTML elements
- delete filteredProps[key];
- }
- });
- }
-
- return filteredProps;
- }
-
- const warnIfInvalid = (value, componentName) => {
- };
-
- function styled(tag) {
- return options => {
-
- const render = (props, ref) => {
- const {
- as: component = tag,
- class: className
- } = props;
- const filteredProps = filterProps(component, props, ['as', 'class']);
- filteredProps.ref = ref;
- filteredProps.className = options.atomic ? cx$1(options.class, filteredProps.className || className) : cx$1(filteredProps.className || className, options.class);
- const {
- vars
- } = options;
-
- if (vars) {
- const style = {}; // eslint-disable-next-line guard-for-in,no-restricted-syntax
-
- for (const name in vars) {
- const variable = vars[name];
- const result = variable[0];
- const unit = variable[1] || '';
- const value = typeof result === 'function' ? result(props) : result;
- warnIfInvalid(value, options.name);
- style[`--${name}`] = `${value}${unit}`;
- }
-
- const ownStyle = filteredProps.style || {};
- const keys = Object.keys(ownStyle);
-
- if (keys.length > 0) {
- keys.forEach(key => {
- style[key] = ownStyle[key];
- });
- }
-
- filteredProps.style = style;
- }
-
- if (tag.__linaria && tag !== component) {
- // If the underlying tag is a styled component, forward the `as` prop
- // Otherwise the styles from the underlying component will be ignored
- filteredProps.as = component;
- return /*#__PURE__*/bn.createElement(tag, filteredProps);
- }
-
- return /*#__PURE__*/bn.createElement(component, filteredProps);
- };
-
- const Result = bn.forwardRef ? /*#__PURE__*/bn.forwardRef(render) : // React.forwardRef won't available on older React versions and in Preact
- // Fallback to a innerRef prop in that case
- props => {
- const rest = omit(props, ['innerRef']);
- return render(rest, props.innerRef);
- };
- Result.displayName = options.name; // These properties will be read by the babel plugin for interpolation
-
- Result.__linaria = {
- className: options.class,
- extends: tag
- };
- return Result;
- };
- }
-
- var styled$1 = styled;
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- const QRPlaceholder = /*#__PURE__*/styled$1('div')({
- name: "QRPlaceholder",
- class: "q1ma0zxq"
- });
- const FooterBar = /*#__PURE__*/styled$1('footer')({
- name: "FooterBar",
- class: "fef0x5t"
- });
- const Page = /*#__PURE__*/styled$1('div')({
- name: "Page",
- class: "p1b3vqup"
- });
- const WalletLink = /*#__PURE__*/styled$1('a')({
- name: "WalletLink",
- class: "wpwjmk",
- vars: {
- "wpwjmk-0": [({
- upperCased
- }) => upperCased ? 'uppercase' : 'none']
- }
- });
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- function Footer() {
- return (h$2(FooterBar, null,
- h$2("p", null,
- h$2("a", { href: "https://taler.net/" }, "Learn more about GNU Taler on our website."),
- h$2("p", null, "Copyright \u00A9 2014\u20142021 Taler Systems SA"))));
- }
-
- var qrcode$1 = {exports: {}};
-
- (function (module, exports) {
- //---------------------------------------------------------------------
- //
- // QR Code Generator for JavaScript
- //
- // Copyright (c) 2009 Kazuhiko Arase
- //
- // URL: http://www.d-project.com/
- //
- // Licensed under the MIT license:
- // http://www.opensource.org/licenses/mit-license.php
- //
- // The word 'QR Code' is registered trademark of
- // DENSO WAVE INCORPORATED
- // http://www.denso-wave.com/qrcode/faqpatent-e.html
- //
- //---------------------------------------------------------------------
-
- var qrcode = function() {
-
- //---------------------------------------------------------------------
- // qrcode
- //---------------------------------------------------------------------
-
- /**
- * qrcode
- * @param typeNumber 1 to 40
- * @param errorCorrectionLevel 'L','M','Q','H'
- */
- var qrcode = function(typeNumber, errorCorrectionLevel) {
-
- var PAD0 = 0xEC;
- var PAD1 = 0x11;
-
- var _typeNumber = typeNumber;
- var _errorCorrectionLevel = QRErrorCorrectionLevel[errorCorrectionLevel];
- var _modules = null;
- var _moduleCount = 0;
- var _dataCache = null;
- var _dataList = [];
-
- var _this = {};
-
- var makeImpl = function(test, maskPattern) {
-
- _moduleCount = _typeNumber * 4 + 17;
- _modules = function(moduleCount) {
- var modules = new Array(moduleCount);
- for (var row = 0; row < moduleCount; row += 1) {
- modules[row] = new Array(moduleCount);
- for (var col = 0; col < moduleCount; col += 1) {
- modules[row][col] = null;
- }
- }
- return modules;
- }(_moduleCount);
-
- setupPositionProbePattern(0, 0);
- setupPositionProbePattern(_moduleCount - 7, 0);
- setupPositionProbePattern(0, _moduleCount - 7);
- setupPositionAdjustPattern();
- setupTimingPattern();
- setupTypeInfo(test, maskPattern);
-
- if (_typeNumber >= 7) {
- setupTypeNumber(test);
- }
-
- if (_dataCache == null) {
- _dataCache = createData(_typeNumber, _errorCorrectionLevel, _dataList);
- }
-
- mapData(_dataCache, maskPattern);
- };
-
- var setupPositionProbePattern = function(row, col) {
-
- for (var r = -1; r <= 7; r += 1) {
-
- if (row + r <= -1 || _moduleCount <= row + r) continue;
-
- for (var c = -1; c <= 7; c += 1) {
-
- if (col + c <= -1 || _moduleCount <= col + c) continue;
-
- if ( (0 <= r && r <= 6 && (c == 0 || c == 6) )
- || (0 <= c && c <= 6 && (r == 0 || r == 6) )
- || (2 <= r && r <= 4 && 2 <= c && c <= 4) ) {
- _modules[row + r][col + c] = true;
- } else {
- _modules[row + r][col + c] = false;
- }
- }
- }
- };
-
- var getBestMaskPattern = function() {
-
- var minLostPoint = 0;
- var pattern = 0;
-
- for (var i = 0; i < 8; i += 1) {
-
- makeImpl(true, i);
-
- var lostPoint = QRUtil.getLostPoint(_this);
-
- if (i == 0 || minLostPoint > lostPoint) {
- minLostPoint = lostPoint;
- pattern = i;
- }
- }
-
- return pattern;
- };
-
- var setupTimingPattern = function() {
-
- for (var r = 8; r < _moduleCount - 8; r += 1) {
- if (_modules[r][6] != null) {
- continue;
- }
- _modules[r][6] = (r % 2 == 0);
- }
-
- for (var c = 8; c < _moduleCount - 8; c += 1) {
- if (_modules[6][c] != null) {
- continue;
- }
- _modules[6][c] = (c % 2 == 0);
- }
- };
-
- var setupPositionAdjustPattern = function() {
-
- var pos = QRUtil.getPatternPosition(_typeNumber);
-
- for (var i = 0; i < pos.length; i += 1) {
-
- for (var j = 0; j < pos.length; j += 1) {
-
- var row = pos[i];
- var col = pos[j];
-
- if (_modules[row][col] != null) {
- continue;
- }
-
- for (var r = -2; r <= 2; r += 1) {
-
- for (var c = -2; c <= 2; c += 1) {
-
- if (r == -2 || r == 2 || c == -2 || c == 2
- || (r == 0 && c == 0) ) {
- _modules[row + r][col + c] = true;
- } else {
- _modules[row + r][col + c] = false;
- }
- }
- }
- }
- }
- };
-
- var setupTypeNumber = function(test) {
-
- var bits = QRUtil.getBCHTypeNumber(_typeNumber);
-
- for (var i = 0; i < 18; i += 1) {
- var mod = (!test && ( (bits >> i) & 1) == 1);
- _modules[Math.floor(i / 3)][i % 3 + _moduleCount - 8 - 3] = mod;
- }
-
- for (var i = 0; i < 18; i += 1) {
- var mod = (!test && ( (bits >> i) & 1) == 1);
- _modules[i % 3 + _moduleCount - 8 - 3][Math.floor(i / 3)] = mod;
- }
- };
-
- var setupTypeInfo = function(test, maskPattern) {
-
- var data = (_errorCorrectionLevel << 3) | maskPattern;
- var bits = QRUtil.getBCHTypeInfo(data);
-
- // vertical
- for (var i = 0; i < 15; i += 1) {
-
- var mod = (!test && ( (bits >> i) & 1) == 1);
-
- if (i < 6) {
- _modules[i][8] = mod;
- } else if (i < 8) {
- _modules[i + 1][8] = mod;
- } else {
- _modules[_moduleCount - 15 + i][8] = mod;
- }
- }
-
- // horizontal
- for (var i = 0; i < 15; i += 1) {
-
- var mod = (!test && ( (bits >> i) & 1) == 1);
-
- if (i < 8) {
- _modules[8][_moduleCount - i - 1] = mod;
- } else if (i < 9) {
- _modules[8][15 - i - 1 + 1] = mod;
- } else {
- _modules[8][15 - i - 1] = mod;
- }
- }
-
- // fixed module
- _modules[_moduleCount - 8][8] = (!test);
- };
-
- var mapData = function(data, maskPattern) {
-
- var inc = -1;
- var row = _moduleCount - 1;
- var bitIndex = 7;
- var byteIndex = 0;
- var maskFunc = QRUtil.getMaskFunction(maskPattern);
-
- for (var col = _moduleCount - 1; col > 0; col -= 2) {
-
- if (col == 6) col -= 1;
-
- while (true) {
-
- for (var c = 0; c < 2; c += 1) {
-
- if (_modules[row][col - c] == null) {
-
- var dark = false;
-
- if (byteIndex < data.length) {
- dark = ( ( (data[byteIndex] >>> bitIndex) & 1) == 1);
- }
-
- var mask = maskFunc(row, col - c);
-
- if (mask) {
- dark = !dark;
- }
-
- _modules[row][col - c] = dark;
- bitIndex -= 1;
-
- if (bitIndex == -1) {
- byteIndex += 1;
- bitIndex = 7;
- }
- }
- }
-
- row += inc;
-
- if (row < 0 || _moduleCount <= row) {
- row -= inc;
- inc = -inc;
- break;
- }
- }
- }
- };
-
- var createBytes = function(buffer, rsBlocks) {
-
- var offset = 0;
-
- var maxDcCount = 0;
- var maxEcCount = 0;
-
- var dcdata = new Array(rsBlocks.length);
- var ecdata = new Array(rsBlocks.length);
-
- for (var r = 0; r < rsBlocks.length; r += 1) {
-
- var dcCount = rsBlocks[r].dataCount;
- var ecCount = rsBlocks[r].totalCount - dcCount;
-
- maxDcCount = Math.max(maxDcCount, dcCount);
- maxEcCount = Math.max(maxEcCount, ecCount);
-
- dcdata[r] = new Array(dcCount);
-
- for (var i = 0; i < dcdata[r].length; i += 1) {
- dcdata[r][i] = 0xff & buffer.getBuffer()[i + offset];
- }
- offset += dcCount;
-
- var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount);
- var rawPoly = qrPolynomial(dcdata[r], rsPoly.getLength() - 1);
-
- var modPoly = rawPoly.mod(rsPoly);
- ecdata[r] = new Array(rsPoly.getLength() - 1);
- for (var i = 0; i < ecdata[r].length; i += 1) {
- var modIndex = i + modPoly.getLength() - ecdata[r].length;
- ecdata[r][i] = (modIndex >= 0)? modPoly.getAt(modIndex) : 0;
- }
- }
-
- var totalCodeCount = 0;
- for (var i = 0; i < rsBlocks.length; i += 1) {
- totalCodeCount += rsBlocks[i].totalCount;
- }
-
- var data = new Array(totalCodeCount);
- var index = 0;
-
- for (var i = 0; i < maxDcCount; i += 1) {
- for (var r = 0; r < rsBlocks.length; r += 1) {
- if (i < dcdata[r].length) {
- data[index] = dcdata[r][i];
- index += 1;
- }
- }
- }
-
- for (var i = 0; i < maxEcCount; i += 1) {
- for (var r = 0; r < rsBlocks.length; r += 1) {
- if (i < ecdata[r].length) {
- data[index] = ecdata[r][i];
- index += 1;
- }
- }
- }
-
- return data;
- };
-
- var createData = function(typeNumber, errorCorrectionLevel, dataList) {
-
- var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectionLevel);
-
- var buffer = qrBitBuffer();
-
- for (var i = 0; i < dataList.length; i += 1) {
- var data = dataList[i];
- buffer.put(data.getMode(), 4);
- buffer.put(data.getLength(), QRUtil.getLengthInBits(data.getMode(), typeNumber) );
- data.write(buffer);
- }
-
- // calc num max data.
- var totalDataCount = 0;
- for (var i = 0; i < rsBlocks.length; i += 1) {
- totalDataCount += rsBlocks[i].dataCount;
- }
-
- if (buffer.getLengthInBits() > totalDataCount * 8) {
- throw 'code length overflow. ('
- + buffer.getLengthInBits()
- + '>'
- + totalDataCount * 8
- + ')';
- }
-
- // end code
- if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) {
- buffer.put(0, 4);
- }
-
- // padding
- while (buffer.getLengthInBits() % 8 != 0) {
- buffer.putBit(false);
- }
-
- // padding
- while (true) {
-
- if (buffer.getLengthInBits() >= totalDataCount * 8) {
- break;
- }
- buffer.put(PAD0, 8);
-
- if (buffer.getLengthInBits() >= totalDataCount * 8) {
- break;
- }
- buffer.put(PAD1, 8);
- }
-
- return createBytes(buffer, rsBlocks);
- };
-
- _this.addData = function(data, mode) {
-
- mode = mode || 'Byte';
-
- var newData = null;
-
- switch(mode) {
- case 'Numeric' :
- newData = qrNumber(data);
- break;
- case 'Alphanumeric' :
- newData = qrAlphaNum(data);
- break;
- case 'Byte' :
- newData = qr8BitByte(data);
- break;
- case 'Kanji' :
- newData = qrKanji(data);
- break;
- default :
- throw 'mode:' + mode;
- }
-
- _dataList.push(newData);
- _dataCache = null;
- };
-
- _this.isDark = function(row, col) {
- if (row < 0 || _moduleCount <= row || col < 0 || _moduleCount <= col) {
- throw row + ',' + col;
- }
- return _modules[row][col];
- };
-
- _this.getModuleCount = function() {
- return _moduleCount;
- };
-
- _this.make = function() {
- if (_typeNumber < 1) {
- var typeNumber = 1;
-
- for (; typeNumber < 40; typeNumber++) {
- var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, _errorCorrectionLevel);
- var buffer = qrBitBuffer();
-
- for (var i = 0; i < _dataList.length; i++) {
- var data = _dataList[i];
- buffer.put(data.getMode(), 4);
- buffer.put(data.getLength(), QRUtil.getLengthInBits(data.getMode(), typeNumber) );
- data.write(buffer);
- }
-
- var totalDataCount = 0;
- for (var i = 0; i < rsBlocks.length; i++) {
- totalDataCount += rsBlocks[i].dataCount;
- }
-
- if (buffer.getLengthInBits() <= totalDataCount * 8) {
- break;
- }
- }
-
- _typeNumber = typeNumber;
- }
-
- makeImpl(false, getBestMaskPattern() );
- };
-
- _this.createTableTag = function(cellSize, margin) {
-
- cellSize = cellSize || 2;
- margin = (typeof margin == 'undefined')? cellSize * 4 : margin;
-
- var qrHtml = '';
-
- qrHtml += '<table style="';
- qrHtml += ' border-width: 0px; border-style: none;';
- qrHtml += ' border-collapse: collapse;';
- qrHtml += ' padding: 0px; margin: ' + margin + 'px;';
- qrHtml += '">';
- qrHtml += '<tbody>';
-
- for (var r = 0; r < _this.getModuleCount(); r += 1) {
-
- qrHtml += '<tr>';
-
- for (var c = 0; c < _this.getModuleCount(); c += 1) {
- qrHtml += '<td style="';
- qrHtml += ' border-width: 0px; border-style: none;';
- qrHtml += ' border-collapse: collapse;';
- qrHtml += ' padding: 0px; margin: 0px;';
- qrHtml += ' width: ' + cellSize + 'px;';
- qrHtml += ' height: ' + cellSize + 'px;';
- qrHtml += ' background-color: ';
- qrHtml += _this.isDark(r, c)? '#000000' : '#ffffff';
- qrHtml += ';';
- qrHtml += '"/>';
- }
-
- qrHtml += '</tr>';
- }
-
- qrHtml += '</tbody>';
- qrHtml += '</table>';
-
- return qrHtml;
- };
-
- _this.createSvgTag = function(cellSize, margin, alt, title) {
-
- var opts = {};
- if (typeof arguments[0] == 'object') {
- // Called by options.
- opts = arguments[0];
- // overwrite cellSize and margin.
- cellSize = opts.cellSize;
- margin = opts.margin;
- alt = opts.alt;
- title = opts.title;
- }
-
- cellSize = cellSize || 2;
- margin = (typeof margin == 'undefined')? cellSize * 4 : margin;
-
- // Compose alt property surrogate
- alt = (typeof alt === 'string') ? {text: alt} : alt || {};
- alt.text = alt.text || null;
- alt.id = (alt.text) ? alt.id || 'qrcode-description' : null;
-
- // Compose title property surrogate
- title = (typeof title === 'string') ? {text: title} : title || {};
- title.text = title.text || null;
- title.id = (title.text) ? title.id || 'qrcode-title' : null;
-
- var size = _this.getModuleCount() * cellSize + margin * 2;
- var c, mc, r, mr, qrSvg='', rect;
-
- rect = 'l' + cellSize + ',0 0,' + cellSize +
- ' -' + cellSize + ',0 0,-' + cellSize + 'z ';
-
- qrSvg += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"';
- qrSvg += !opts.scalable ? ' width="' + size + 'px" height="' + size + 'px"' : '';
- qrSvg += ' viewBox="0 0 ' + size + ' ' + size + '" ';
- qrSvg += ' preserveAspectRatio="xMinYMin meet"';
- qrSvg += (title.text || alt.text) ? ' role="img" aria-labelledby="' +
- escapeXml([title.id, alt.id].join(' ').trim() ) + '"' : '';
- qrSvg += '>';
- qrSvg += (title.text) ? '<title id="' + escapeXml(title.id) + '">' +
- escapeXml(title.text) + '</title>' : '';
- qrSvg += (alt.text) ? '<description id="' + escapeXml(alt.id) + '">' +
- escapeXml(alt.text) + '</description>' : '';
- qrSvg += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>';
- qrSvg += '<path d="';
-
- for (r = 0; r < _this.getModuleCount(); r += 1) {
- mr = r * cellSize + margin;
- for (c = 0; c < _this.getModuleCount(); c += 1) {
- if (_this.isDark(r, c) ) {
- mc = c*cellSize+margin;
- qrSvg += 'M' + mc + ',' + mr + rect;
- }
- }
- }
-
- qrSvg += '" stroke="transparent" fill="black"/>';
- qrSvg += '</svg>';
-
- return qrSvg;
- };
-
- _this.createDataURL = function(cellSize, margin) {
-
- cellSize = cellSize || 2;
- margin = (typeof margin == 'undefined')? cellSize * 4 : margin;
-
- var size = _this.getModuleCount() * cellSize + margin * 2;
- var min = margin;
- var max = size - margin;
-
- return createDataURL(size, size, function(x, y) {
- if (min <= x && x < max && min <= y && y < max) {
- var c = Math.floor( (x - min) / cellSize);
- var r = Math.floor( (y - min) / cellSize);
- return _this.isDark(r, c)? 0 : 1;
- } else {
- return 1;
- }
- } );
- };
-
- _this.createImgTag = function(cellSize, margin, alt) {
-
- cellSize = cellSize || 2;
- margin = (typeof margin == 'undefined')? cellSize * 4 : margin;
-
- var size = _this.getModuleCount() * cellSize + margin * 2;
-
- var img = '';
- img += '<img';
- img += '\u0020src="';
- img += _this.createDataURL(cellSize, margin);
- img += '"';
- img += '\u0020width="';
- img += size;
- img += '"';
- img += '\u0020height="';
- img += size;
- img += '"';
- if (alt) {
- img += '\u0020alt="';
- img += escapeXml(alt);
- img += '"';
- }
- img += '/>';
-
- return img;
- };
-
- var escapeXml = function(s) {
- var escaped = '';
- for (var i = 0; i < s.length; i += 1) {
- var c = s.charAt(i);
- switch(c) {
- case '<': escaped += '&lt;'; break;
- case '>': escaped += '&gt;'; break;
- case '&': escaped += '&amp;'; break;
- case '"': escaped += '&quot;'; break;
- default : escaped += c; break;
- }
- }
- return escaped;
- };
-
- var _createHalfASCII = function(margin) {
- var cellSize = 1;
- margin = (typeof margin == 'undefined')? cellSize * 2 : margin;
-
- var size = _this.getModuleCount() * cellSize + margin * 2;
- var min = margin;
- var max = size - margin;
-
- var y, x, r1, r2, p;
-
- var blocks = {
- '██': '█',
- '█ ': '▀',
- ' █': '▄',
- ' ': ' '
- };
-
- var blocksLastLineNoMargin = {
- '██': '▀',
- '█ ': '▀',
- ' █': ' ',
- ' ': ' '
- };
-
- var ascii = '';
- for (y = 0; y < size; y += 2) {
- r1 = Math.floor((y - min) / cellSize);
- r2 = Math.floor((y + 1 - min) / cellSize);
- for (x = 0; x < size; x += 1) {
- p = '█';
-
- if (min <= x && x < max && min <= y && y < max && _this.isDark(r1, Math.floor((x - min) / cellSize))) {
- p = ' ';
- }
-
- if (min <= x && x < max && min <= y+1 && y+1 < max && _this.isDark(r2, Math.floor((x - min) / cellSize))) {
- p += ' ';
- }
- else {
- p += '█';
- }
-
- // Output 2 characters per pixel, to create full square. 1 character per pixels gives only half width of square.
- ascii += (margin < 1 && y+1 >= max) ? blocksLastLineNoMargin[p] : blocks[p];
- }
-
- ascii += '\n';
- }
-
- if (size % 2 && margin > 0) {
- return ascii.substring(0, ascii.length - size - 1) + Array(size+1).join('▀');
- }
-
- return ascii.substring(0, ascii.length-1);
- };
-
- _this.createASCII = function(cellSize, margin) {
- cellSize = cellSize || 1;
-
- if (cellSize < 2) {
- return _createHalfASCII(margin);
- }
-
- cellSize -= 1;
- margin = (typeof margin == 'undefined')? cellSize * 2 : margin;
-
- var size = _this.getModuleCount() * cellSize + margin * 2;
- var min = margin;
- var max = size - margin;
-
- var y, x, r, p;
-
- var white = Array(cellSize+1).join('██');
- var black = Array(cellSize+1).join(' ');
-
- var ascii = '';
- var line = '';
- for (y = 0; y < size; y += 1) {
- r = Math.floor( (y - min) / cellSize);
- line = '';
- for (x = 0; x < size; x += 1) {
- p = 1;
-
- if (min <= x && x < max && min <= y && y < max && _this.isDark(r, Math.floor((x - min) / cellSize))) {
- p = 0;
- }
-
- // Output 2 characters per pixel, to create full square. 1 character per pixels gives only half width of square.
- line += p ? white : black;
- }
-
- for (r = 0; r < cellSize; r += 1) {
- ascii += line + '\n';
- }
- }
-
- return ascii.substring(0, ascii.length-1);
- };
-
- _this.renderTo2dContext = function(context, cellSize) {
- cellSize = cellSize || 2;
- var length = _this.getModuleCount();
- for (var row = 0; row < length; row++) {
- for (var col = 0; col < length; col++) {
- context.fillStyle = _this.isDark(row, col) ? 'black' : 'white';
- context.fillRect(row * cellSize, col * cellSize, cellSize, cellSize);
- }
- }
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // qrcode.stringToBytes
- //---------------------------------------------------------------------
-
- qrcode.stringToBytesFuncs = {
- 'default' : function(s) {
- var bytes = [];
- for (var i = 0; i < s.length; i += 1) {
- var c = s.charCodeAt(i);
- bytes.push(c & 0xff);
- }
- return bytes;
- }
- };
-
- qrcode.stringToBytes = qrcode.stringToBytesFuncs['default'];
-
- //---------------------------------------------------------------------
- // qrcode.createStringToBytes
- //---------------------------------------------------------------------
-
- /**
- * @param unicodeData base64 string of byte array.
- * [16bit Unicode],[16bit Bytes], ...
- * @param numChars
- */
- qrcode.createStringToBytes = function(unicodeData, numChars) {
-
- // create conversion map.
-
- var unicodeMap = function() {
-
- var bin = base64DecodeInputStream(unicodeData);
- var read = function() {
- var b = bin.read();
- if (b == -1) throw 'eof';
- return b;
- };
-
- var count = 0;
- var unicodeMap = {};
- while (true) {
- var b0 = bin.read();
- if (b0 == -1) break;
- var b1 = read();
- var b2 = read();
- var b3 = read();
- var k = String.fromCharCode( (b0 << 8) | b1);
- var v = (b2 << 8) | b3;
- unicodeMap[k] = v;
- count += 1;
- }
- if (count != numChars) {
- throw count + ' != ' + numChars;
- }
-
- return unicodeMap;
- }();
-
- var unknownChar = '?'.charCodeAt(0);
-
- return function(s) {
- var bytes = [];
- for (var i = 0; i < s.length; i += 1) {
- var c = s.charCodeAt(i);
- if (c < 128) {
- bytes.push(c);
- } else {
- var b = unicodeMap[s.charAt(i)];
- if (typeof b == 'number') {
- if ( (b & 0xff) == b) {
- // 1byte
- bytes.push(b);
- } else {
- // 2bytes
- bytes.push(b >>> 8);
- bytes.push(b & 0xff);
- }
- } else {
- bytes.push(unknownChar);
- }
- }
- }
- return bytes;
- };
- };
-
- //---------------------------------------------------------------------
- // QRMode
- //---------------------------------------------------------------------
-
- var QRMode = {
- MODE_NUMBER : 1 << 0,
- MODE_ALPHA_NUM : 1 << 1,
- MODE_8BIT_BYTE : 1 << 2,
- MODE_KANJI : 1 << 3
- };
-
- //---------------------------------------------------------------------
- // QRErrorCorrectionLevel
- //---------------------------------------------------------------------
-
- var QRErrorCorrectionLevel = {
- L : 1,
- M : 0,
- Q : 3,
- H : 2
- };
-
- //---------------------------------------------------------------------
- // QRMaskPattern
- //---------------------------------------------------------------------
-
- var QRMaskPattern = {
- PATTERN000 : 0,
- PATTERN001 : 1,
- PATTERN010 : 2,
- PATTERN011 : 3,
- PATTERN100 : 4,
- PATTERN101 : 5,
- PATTERN110 : 6,
- PATTERN111 : 7
- };
-
- //---------------------------------------------------------------------
- // QRUtil
- //---------------------------------------------------------------------
-
- var QRUtil = function() {
-
- var PATTERN_POSITION_TABLE = [
- [],
- [6, 18],
- [6, 22],
- [6, 26],
- [6, 30],
- [6, 34],
- [6, 22, 38],
- [6, 24, 42],
- [6, 26, 46],
- [6, 28, 50],
- [6, 30, 54],
- [6, 32, 58],
- [6, 34, 62],
- [6, 26, 46, 66],
- [6, 26, 48, 70],
- [6, 26, 50, 74],
- [6, 30, 54, 78],
- [6, 30, 56, 82],
- [6, 30, 58, 86],
- [6, 34, 62, 90],
- [6, 28, 50, 72, 94],
- [6, 26, 50, 74, 98],
- [6, 30, 54, 78, 102],
- [6, 28, 54, 80, 106],
- [6, 32, 58, 84, 110],
- [6, 30, 58, 86, 114],
- [6, 34, 62, 90, 118],
- [6, 26, 50, 74, 98, 122],
- [6, 30, 54, 78, 102, 126],
- [6, 26, 52, 78, 104, 130],
- [6, 30, 56, 82, 108, 134],
- [6, 34, 60, 86, 112, 138],
- [6, 30, 58, 86, 114, 142],
- [6, 34, 62, 90, 118, 146],
- [6, 30, 54, 78, 102, 126, 150],
- [6, 24, 50, 76, 102, 128, 154],
- [6, 28, 54, 80, 106, 132, 158],
- [6, 32, 58, 84, 110, 136, 162],
- [6, 26, 54, 82, 110, 138, 166],
- [6, 30, 58, 86, 114, 142, 170]
- ];
- var G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0);
- var G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0);
- var G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1);
-
- var _this = {};
-
- var getBCHDigit = function(data) {
- var digit = 0;
- while (data != 0) {
- digit += 1;
- data >>>= 1;
- }
- return digit;
- };
-
- _this.getBCHTypeInfo = function(data) {
- var d = data << 10;
- while (getBCHDigit(d) - getBCHDigit(G15) >= 0) {
- d ^= (G15 << (getBCHDigit(d) - getBCHDigit(G15) ) );
- }
- return ( (data << 10) | d) ^ G15_MASK;
- };
-
- _this.getBCHTypeNumber = function(data) {
- var d = data << 12;
- while (getBCHDigit(d) - getBCHDigit(G18) >= 0) {
- d ^= (G18 << (getBCHDigit(d) - getBCHDigit(G18) ) );
- }
- return (data << 12) | d;
- };
-
- _this.getPatternPosition = function(typeNumber) {
- return PATTERN_POSITION_TABLE[typeNumber - 1];
- };
-
- _this.getMaskFunction = function(maskPattern) {
-
- switch (maskPattern) {
-
- case QRMaskPattern.PATTERN000 :
- return function(i, j) { return (i + j) % 2 == 0; };
- case QRMaskPattern.PATTERN001 :
- return function(i, j) { return i % 2 == 0; };
- case QRMaskPattern.PATTERN010 :
- return function(i, j) { return j % 3 == 0; };
- case QRMaskPattern.PATTERN011 :
- return function(i, j) { return (i + j) % 3 == 0; };
- case QRMaskPattern.PATTERN100 :
- return function(i, j) { return (Math.floor(i / 2) + Math.floor(j / 3) ) % 2 == 0; };
- case QRMaskPattern.PATTERN101 :
- return function(i, j) { return (i * j) % 2 + (i * j) % 3 == 0; };
- case QRMaskPattern.PATTERN110 :
- return function(i, j) { return ( (i * j) % 2 + (i * j) % 3) % 2 == 0; };
- case QRMaskPattern.PATTERN111 :
- return function(i, j) { return ( (i * j) % 3 + (i + j) % 2) % 2 == 0; };
-
- default :
- throw 'bad maskPattern:' + maskPattern;
- }
- };
-
- _this.getErrorCorrectPolynomial = function(errorCorrectLength) {
- var a = qrPolynomial([1], 0);
- for (var i = 0; i < errorCorrectLength; i += 1) {
- a = a.multiply(qrPolynomial([1, QRMath.gexp(i)], 0) );
- }
- return a;
- };
-
- _this.getLengthInBits = function(mode, type) {
-
- if (1 <= type && type < 10) {
-
- // 1 - 9
-
- switch(mode) {
- case QRMode.MODE_NUMBER : return 10;
- case QRMode.MODE_ALPHA_NUM : return 9;
- case QRMode.MODE_8BIT_BYTE : return 8;
- case QRMode.MODE_KANJI : return 8;
- default :
- throw 'mode:' + mode;
- }
-
- } else if (type < 27) {
-
- // 10 - 26
-
- switch(mode) {
- case QRMode.MODE_NUMBER : return 12;
- case QRMode.MODE_ALPHA_NUM : return 11;
- case QRMode.MODE_8BIT_BYTE : return 16;
- case QRMode.MODE_KANJI : return 10;
- default :
- throw 'mode:' + mode;
- }
-
- } else if (type < 41) {
-
- // 27 - 40
-
- switch(mode) {
- case QRMode.MODE_NUMBER : return 14;
- case QRMode.MODE_ALPHA_NUM : return 13;
- case QRMode.MODE_8BIT_BYTE : return 16;
- case QRMode.MODE_KANJI : return 12;
- default :
- throw 'mode:' + mode;
- }
-
- } else {
- throw 'type:' + type;
- }
- };
-
- _this.getLostPoint = function(qrcode) {
-
- var moduleCount = qrcode.getModuleCount();
-
- var lostPoint = 0;
-
- // LEVEL1
-
- for (var row = 0; row < moduleCount; row += 1) {
- for (var col = 0; col < moduleCount; col += 1) {
-
- var sameCount = 0;
- var dark = qrcode.isDark(row, col);
-
- for (var r = -1; r <= 1; r += 1) {
-
- if (row + r < 0 || moduleCount <= row + r) {
- continue;
- }
-
- for (var c = -1; c <= 1; c += 1) {
-
- if (col + c < 0 || moduleCount <= col + c) {
- continue;
- }
-
- if (r == 0 && c == 0) {
- continue;
- }
-
- if (dark == qrcode.isDark(row + r, col + c) ) {
- sameCount += 1;
- }
- }
- }
-
- if (sameCount > 5) {
- lostPoint += (3 + sameCount - 5);
- }
- }
- }
- // LEVEL2
-
- for (var row = 0; row < moduleCount - 1; row += 1) {
- for (var col = 0; col < moduleCount - 1; col += 1) {
- var count = 0;
- if (qrcode.isDark(row, col) ) count += 1;
- if (qrcode.isDark(row + 1, col) ) count += 1;
- if (qrcode.isDark(row, col + 1) ) count += 1;
- if (qrcode.isDark(row + 1, col + 1) ) count += 1;
- if (count == 0 || count == 4) {
- lostPoint += 3;
- }
- }
- }
-
- // LEVEL3
-
- for (var row = 0; row < moduleCount; row += 1) {
- for (var col = 0; col < moduleCount - 6; col += 1) {
- if (qrcode.isDark(row, col)
- && !qrcode.isDark(row, col + 1)
- && qrcode.isDark(row, col + 2)
- && qrcode.isDark(row, col + 3)
- && qrcode.isDark(row, col + 4)
- && !qrcode.isDark(row, col + 5)
- && qrcode.isDark(row, col + 6) ) {
- lostPoint += 40;
- }
- }
- }
-
- for (var col = 0; col < moduleCount; col += 1) {
- for (var row = 0; row < moduleCount - 6; row += 1) {
- if (qrcode.isDark(row, col)
- && !qrcode.isDark(row + 1, col)
- && qrcode.isDark(row + 2, col)
- && qrcode.isDark(row + 3, col)
- && qrcode.isDark(row + 4, col)
- && !qrcode.isDark(row + 5, col)
- && qrcode.isDark(row + 6, col) ) {
- lostPoint += 40;
- }
- }
- }
-
- // LEVEL4
-
- var darkCount = 0;
-
- for (var col = 0; col < moduleCount; col += 1) {
- for (var row = 0; row < moduleCount; row += 1) {
- if (qrcode.isDark(row, col) ) {
- darkCount += 1;
- }
- }
- }
-
- var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;
- lostPoint += ratio * 10;
-
- return lostPoint;
- };
-
- return _this;
- }();
-
- //---------------------------------------------------------------------
- // QRMath
- //---------------------------------------------------------------------
-
- var QRMath = function() {
-
- var EXP_TABLE = new Array(256);
- var LOG_TABLE = new Array(256);
-
- // initialize tables
- for (var i = 0; i < 8; i += 1) {
- EXP_TABLE[i] = 1 << i;
- }
- for (var i = 8; i < 256; i += 1) {
- EXP_TABLE[i] = EXP_TABLE[i - 4]
- ^ EXP_TABLE[i - 5]
- ^ EXP_TABLE[i - 6]
- ^ EXP_TABLE[i - 8];
- }
- for (var i = 0; i < 255; i += 1) {
- LOG_TABLE[EXP_TABLE[i] ] = i;
- }
-
- var _this = {};
-
- _this.glog = function(n) {
-
- if (n < 1) {
- throw 'glog(' + n + ')';
- }
-
- return LOG_TABLE[n];
- };
-
- _this.gexp = function(n) {
-
- while (n < 0) {
- n += 255;
- }
-
- while (n >= 256) {
- n -= 255;
- }
-
- return EXP_TABLE[n];
- };
-
- return _this;
- }();
-
- //---------------------------------------------------------------------
- // qrPolynomial
- //---------------------------------------------------------------------
-
- function qrPolynomial(num, shift) {
-
- if (typeof num.length == 'undefined') {
- throw num.length + '/' + shift;
- }
-
- var _num = function() {
- var offset = 0;
- while (offset < num.length && num[offset] == 0) {
- offset += 1;
- }
- var _num = new Array(num.length - offset + shift);
- for (var i = 0; i < num.length - offset; i += 1) {
- _num[i] = num[i + offset];
- }
- return _num;
- }();
-
- var _this = {};
-
- _this.getAt = function(index) {
- return _num[index];
- };
-
- _this.getLength = function() {
- return _num.length;
- };
-
- _this.multiply = function(e) {
-
- var num = new Array(_this.getLength() + e.getLength() - 1);
-
- for (var i = 0; i < _this.getLength(); i += 1) {
- for (var j = 0; j < e.getLength(); j += 1) {
- num[i + j] ^= QRMath.gexp(QRMath.glog(_this.getAt(i) ) + QRMath.glog(e.getAt(j) ) );
- }
- }
-
- return qrPolynomial(num, 0);
- };
-
- _this.mod = function(e) {
-
- if (_this.getLength() - e.getLength() < 0) {
- return _this;
- }
-
- var ratio = QRMath.glog(_this.getAt(0) ) - QRMath.glog(e.getAt(0) );
-
- var num = new Array(_this.getLength() );
- for (var i = 0; i < _this.getLength(); i += 1) {
- num[i] = _this.getAt(i);
- }
-
- for (var i = 0; i < e.getLength(); i += 1) {
- num[i] ^= QRMath.gexp(QRMath.glog(e.getAt(i) ) + ratio);
- }
-
- // recursive call
- return qrPolynomial(num, 0).mod(e);
- };
-
- return _this;
- }
- //---------------------------------------------------------------------
- // QRRSBlock
- //---------------------------------------------------------------------
-
- var QRRSBlock = function() {
-
- var RS_BLOCK_TABLE = [
-
- // L
- // M
- // Q
- // H
-
- // 1
- [1, 26, 19],
- [1, 26, 16],
- [1, 26, 13],
- [1, 26, 9],
-
- // 2
- [1, 44, 34],
- [1, 44, 28],
- [1, 44, 22],
- [1, 44, 16],
-
- // 3
- [1, 70, 55],
- [1, 70, 44],
- [2, 35, 17],
- [2, 35, 13],
-
- // 4
- [1, 100, 80],
- [2, 50, 32],
- [2, 50, 24],
- [4, 25, 9],
-
- // 5
- [1, 134, 108],
- [2, 67, 43],
- [2, 33, 15, 2, 34, 16],
- [2, 33, 11, 2, 34, 12],
-
- // 6
- [2, 86, 68],
- [4, 43, 27],
- [4, 43, 19],
- [4, 43, 15],
-
- // 7
- [2, 98, 78],
- [4, 49, 31],
- [2, 32, 14, 4, 33, 15],
- [4, 39, 13, 1, 40, 14],
-
- // 8
- [2, 121, 97],
- [2, 60, 38, 2, 61, 39],
- [4, 40, 18, 2, 41, 19],
- [4, 40, 14, 2, 41, 15],
-
- // 9
- [2, 146, 116],
- [3, 58, 36, 2, 59, 37],
- [4, 36, 16, 4, 37, 17],
- [4, 36, 12, 4, 37, 13],
-
- // 10
- [2, 86, 68, 2, 87, 69],
- [4, 69, 43, 1, 70, 44],
- [6, 43, 19, 2, 44, 20],
- [6, 43, 15, 2, 44, 16],
-
- // 11
- [4, 101, 81],
- [1, 80, 50, 4, 81, 51],
- [4, 50, 22, 4, 51, 23],
- [3, 36, 12, 8, 37, 13],
-
- // 12
- [2, 116, 92, 2, 117, 93],
- [6, 58, 36, 2, 59, 37],
- [4, 46, 20, 6, 47, 21],
- [7, 42, 14, 4, 43, 15],
-
- // 13
- [4, 133, 107],
- [8, 59, 37, 1, 60, 38],
- [8, 44, 20, 4, 45, 21],
- [12, 33, 11, 4, 34, 12],
-
- // 14
- [3, 145, 115, 1, 146, 116],
- [4, 64, 40, 5, 65, 41],
- [11, 36, 16, 5, 37, 17],
- [11, 36, 12, 5, 37, 13],
-
- // 15
- [5, 109, 87, 1, 110, 88],
- [5, 65, 41, 5, 66, 42],
- [5, 54, 24, 7, 55, 25],
- [11, 36, 12, 7, 37, 13],
-
- // 16
- [5, 122, 98, 1, 123, 99],
- [7, 73, 45, 3, 74, 46],
- [15, 43, 19, 2, 44, 20],
- [3, 45, 15, 13, 46, 16],
-
- // 17
- [1, 135, 107, 5, 136, 108],
- [10, 74, 46, 1, 75, 47],
- [1, 50, 22, 15, 51, 23],
- [2, 42, 14, 17, 43, 15],
-
- // 18
- [5, 150, 120, 1, 151, 121],
- [9, 69, 43, 4, 70, 44],
- [17, 50, 22, 1, 51, 23],
- [2, 42, 14, 19, 43, 15],
-
- // 19
- [3, 141, 113, 4, 142, 114],
- [3, 70, 44, 11, 71, 45],
- [17, 47, 21, 4, 48, 22],
- [9, 39, 13, 16, 40, 14],
-
- // 20
- [3, 135, 107, 5, 136, 108],
- [3, 67, 41, 13, 68, 42],
- [15, 54, 24, 5, 55, 25],
- [15, 43, 15, 10, 44, 16],
-
- // 21
- [4, 144, 116, 4, 145, 117],
- [17, 68, 42],
- [17, 50, 22, 6, 51, 23],
- [19, 46, 16, 6, 47, 17],
-
- // 22
- [2, 139, 111, 7, 140, 112],
- [17, 74, 46],
- [7, 54, 24, 16, 55, 25],
- [34, 37, 13],
-
- // 23
- [4, 151, 121, 5, 152, 122],
- [4, 75, 47, 14, 76, 48],
- [11, 54, 24, 14, 55, 25],
- [16, 45, 15, 14, 46, 16],
-
- // 24
- [6, 147, 117, 4, 148, 118],
- [6, 73, 45, 14, 74, 46],
- [11, 54, 24, 16, 55, 25],
- [30, 46, 16, 2, 47, 17],
-
- // 25
- [8, 132, 106, 4, 133, 107],
- [8, 75, 47, 13, 76, 48],
- [7, 54, 24, 22, 55, 25],
- [22, 45, 15, 13, 46, 16],
-
- // 26
- [10, 142, 114, 2, 143, 115],
- [19, 74, 46, 4, 75, 47],
- [28, 50, 22, 6, 51, 23],
- [33, 46, 16, 4, 47, 17],
-
- // 27
- [8, 152, 122, 4, 153, 123],
- [22, 73, 45, 3, 74, 46],
- [8, 53, 23, 26, 54, 24],
- [12, 45, 15, 28, 46, 16],
-
- // 28
- [3, 147, 117, 10, 148, 118],
- [3, 73, 45, 23, 74, 46],
- [4, 54, 24, 31, 55, 25],
- [11, 45, 15, 31, 46, 16],
-
- // 29
- [7, 146, 116, 7, 147, 117],
- [21, 73, 45, 7, 74, 46],
- [1, 53, 23, 37, 54, 24],
- [19, 45, 15, 26, 46, 16],
-
- // 30
- [5, 145, 115, 10, 146, 116],
- [19, 75, 47, 10, 76, 48],
- [15, 54, 24, 25, 55, 25],
- [23, 45, 15, 25, 46, 16],
-
- // 31
- [13, 145, 115, 3, 146, 116],
- [2, 74, 46, 29, 75, 47],
- [42, 54, 24, 1, 55, 25],
- [23, 45, 15, 28, 46, 16],
-
- // 32
- [17, 145, 115],
- [10, 74, 46, 23, 75, 47],
- [10, 54, 24, 35, 55, 25],
- [19, 45, 15, 35, 46, 16],
-
- // 33
- [17, 145, 115, 1, 146, 116],
- [14, 74, 46, 21, 75, 47],
- [29, 54, 24, 19, 55, 25],
- [11, 45, 15, 46, 46, 16],
-
- // 34
- [13, 145, 115, 6, 146, 116],
- [14, 74, 46, 23, 75, 47],
- [44, 54, 24, 7, 55, 25],
- [59, 46, 16, 1, 47, 17],
-
- // 35
- [12, 151, 121, 7, 152, 122],
- [12, 75, 47, 26, 76, 48],
- [39, 54, 24, 14, 55, 25],
- [22, 45, 15, 41, 46, 16],
-
- // 36
- [6, 151, 121, 14, 152, 122],
- [6, 75, 47, 34, 76, 48],
- [46, 54, 24, 10, 55, 25],
- [2, 45, 15, 64, 46, 16],
-
- // 37
- [17, 152, 122, 4, 153, 123],
- [29, 74, 46, 14, 75, 47],
- [49, 54, 24, 10, 55, 25],
- [24, 45, 15, 46, 46, 16],
-
- // 38
- [4, 152, 122, 18, 153, 123],
- [13, 74, 46, 32, 75, 47],
- [48, 54, 24, 14, 55, 25],
- [42, 45, 15, 32, 46, 16],
-
- // 39
- [20, 147, 117, 4, 148, 118],
- [40, 75, 47, 7, 76, 48],
- [43, 54, 24, 22, 55, 25],
- [10, 45, 15, 67, 46, 16],
-
- // 40
- [19, 148, 118, 6, 149, 119],
- [18, 75, 47, 31, 76, 48],
- [34, 54, 24, 34, 55, 25],
- [20, 45, 15, 61, 46, 16]
- ];
-
- var qrRSBlock = function(totalCount, dataCount) {
- var _this = {};
- _this.totalCount = totalCount;
- _this.dataCount = dataCount;
- return _this;
- };
-
- var _this = {};
-
- var getRsBlockTable = function(typeNumber, errorCorrectionLevel) {
-
- switch(errorCorrectionLevel) {
- case QRErrorCorrectionLevel.L :
- return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0];
- case QRErrorCorrectionLevel.M :
- return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1];
- case QRErrorCorrectionLevel.Q :
- return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2];
- case QRErrorCorrectionLevel.H :
- return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3];
- default :
- return undefined;
- }
- };
-
- _this.getRSBlocks = function(typeNumber, errorCorrectionLevel) {
-
- var rsBlock = getRsBlockTable(typeNumber, errorCorrectionLevel);
-
- if (typeof rsBlock == 'undefined') {
- throw 'bad rs block @ typeNumber:' + typeNumber +
- '/errorCorrectionLevel:' + errorCorrectionLevel;
- }
-
- var length = rsBlock.length / 3;
-
- var list = [];
-
- for (var i = 0; i < length; i += 1) {
-
- var count = rsBlock[i * 3 + 0];
- var totalCount = rsBlock[i * 3 + 1];
- var dataCount = rsBlock[i * 3 + 2];
-
- for (var j = 0; j < count; j += 1) {
- list.push(qrRSBlock(totalCount, dataCount) );
- }
- }
-
- return list;
- };
-
- return _this;
- }();
-
- //---------------------------------------------------------------------
- // qrBitBuffer
- //---------------------------------------------------------------------
-
- var qrBitBuffer = function() {
-
- var _buffer = [];
- var _length = 0;
-
- var _this = {};
-
- _this.getBuffer = function() {
- return _buffer;
- };
-
- _this.getAt = function(index) {
- var bufIndex = Math.floor(index / 8);
- return ( (_buffer[bufIndex] >>> (7 - index % 8) ) & 1) == 1;
- };
-
- _this.put = function(num, length) {
- for (var i = 0; i < length; i += 1) {
- _this.putBit( ( (num >>> (length - i - 1) ) & 1) == 1);
- }
- };
-
- _this.getLengthInBits = function() {
- return _length;
- };
-
- _this.putBit = function(bit) {
-
- var bufIndex = Math.floor(_length / 8);
- if (_buffer.length <= bufIndex) {
- _buffer.push(0);
- }
-
- if (bit) {
- _buffer[bufIndex] |= (0x80 >>> (_length % 8) );
- }
-
- _length += 1;
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // qrNumber
- //---------------------------------------------------------------------
-
- var qrNumber = function(data) {
-
- var _mode = QRMode.MODE_NUMBER;
- var _data = data;
-
- var _this = {};
-
- _this.getMode = function() {
- return _mode;
- };
-
- _this.getLength = function(buffer) {
- return _data.length;
- };
-
- _this.write = function(buffer) {
-
- var data = _data;
-
- var i = 0;
-
- while (i + 2 < data.length) {
- buffer.put(strToNum(data.substring(i, i + 3) ), 10);
- i += 3;
- }
-
- if (i < data.length) {
- if (data.length - i == 1) {
- buffer.put(strToNum(data.substring(i, i + 1) ), 4);
- } else if (data.length - i == 2) {
- buffer.put(strToNum(data.substring(i, i + 2) ), 7);
- }
- }
- };
-
- var strToNum = function(s) {
- var num = 0;
- for (var i = 0; i < s.length; i += 1) {
- num = num * 10 + chatToNum(s.charAt(i) );
- }
- return num;
- };
-
- var chatToNum = function(c) {
- if ('0' <= c && c <= '9') {
- return c.charCodeAt(0) - '0'.charCodeAt(0);
- }
- throw 'illegal char :' + c;
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // qrAlphaNum
- //---------------------------------------------------------------------
-
- var qrAlphaNum = function(data) {
-
- var _mode = QRMode.MODE_ALPHA_NUM;
- var _data = data;
-
- var _this = {};
-
- _this.getMode = function() {
- return _mode;
- };
-
- _this.getLength = function(buffer) {
- return _data.length;
- };
-
- _this.write = function(buffer) {
-
- var s = _data;
-
- var i = 0;
-
- while (i + 1 < s.length) {
- buffer.put(
- getCode(s.charAt(i) ) * 45 +
- getCode(s.charAt(i + 1) ), 11);
- i += 2;
- }
-
- if (i < s.length) {
- buffer.put(getCode(s.charAt(i) ), 6);
- }
- };
-
- var getCode = function(c) {
-
- if ('0' <= c && c <= '9') {
- return c.charCodeAt(0) - '0'.charCodeAt(0);
- } else if ('A' <= c && c <= 'Z') {
- return c.charCodeAt(0) - 'A'.charCodeAt(0) + 10;
- } else {
- switch (c) {
- case ' ' : return 36;
- case '$' : return 37;
- case '%' : return 38;
- case '*' : return 39;
- case '+' : return 40;
- case '-' : return 41;
- case '.' : return 42;
- case '/' : return 43;
- case ':' : return 44;
- default :
- throw 'illegal char :' + c;
- }
- }
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // qr8BitByte
- //---------------------------------------------------------------------
-
- var qr8BitByte = function(data) {
-
- var _mode = QRMode.MODE_8BIT_BYTE;
- var _bytes = qrcode.stringToBytes(data);
-
- var _this = {};
-
- _this.getMode = function() {
- return _mode;
- };
-
- _this.getLength = function(buffer) {
- return _bytes.length;
- };
-
- _this.write = function(buffer) {
- for (var i = 0; i < _bytes.length; i += 1) {
- buffer.put(_bytes[i], 8);
- }
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // qrKanji
- //---------------------------------------------------------------------
-
- var qrKanji = function(data) {
-
- var _mode = QRMode.MODE_KANJI;
-
- var stringToBytes = qrcode.stringToBytesFuncs['SJIS'];
- if (!stringToBytes) {
- throw 'sjis not supported.';
- }
- !function(c, code) {
- // self test for sjis support.
- var test = stringToBytes(c);
- if (test.length != 2 || ( (test[0] << 8) | test[1]) != code) {
- throw 'sjis not supported.';
- }
- }('\u53cb', 0x9746);
-
- var _bytes = stringToBytes(data);
-
- var _this = {};
-
- _this.getMode = function() {
- return _mode;
- };
-
- _this.getLength = function(buffer) {
- return ~~(_bytes.length / 2);
- };
-
- _this.write = function(buffer) {
-
- var data = _bytes;
-
- var i = 0;
-
- while (i + 1 < data.length) {
-
- var c = ( (0xff & data[i]) << 8) | (0xff & data[i + 1]);
-
- if (0x8140 <= c && c <= 0x9FFC) {
- c -= 0x8140;
- } else if (0xE040 <= c && c <= 0xEBBF) {
- c -= 0xC140;
- } else {
- throw 'illegal char at ' + (i + 1) + '/' + c;
- }
-
- c = ( (c >>> 8) & 0xff) * 0xC0 + (c & 0xff);
-
- buffer.put(c, 13);
-
- i += 2;
- }
-
- if (i < data.length) {
- throw 'illegal char at ' + (i + 1);
- }
- };
-
- return _this;
- };
-
- //=====================================================================
- // GIF Support etc.
- //
-
- //---------------------------------------------------------------------
- // byteArrayOutputStream
- //---------------------------------------------------------------------
-
- var byteArrayOutputStream = function() {
-
- var _bytes = [];
-
- var _this = {};
-
- _this.writeByte = function(b) {
- _bytes.push(b & 0xff);
- };
-
- _this.writeShort = function(i) {
- _this.writeByte(i);
- _this.writeByte(i >>> 8);
- };
-
- _this.writeBytes = function(b, off, len) {
- off = off || 0;
- len = len || b.length;
- for (var i = 0; i < len; i += 1) {
- _this.writeByte(b[i + off]);
- }
- };
-
- _this.writeString = function(s) {
- for (var i = 0; i < s.length; i += 1) {
- _this.writeByte(s.charCodeAt(i) );
- }
- };
-
- _this.toByteArray = function() {
- return _bytes;
- };
-
- _this.toString = function() {
- var s = '';
- s += '[';
- for (var i = 0; i < _bytes.length; i += 1) {
- if (i > 0) {
- s += ',';
- }
- s += _bytes[i];
- }
- s += ']';
- return s;
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // base64EncodeOutputStream
- //---------------------------------------------------------------------
-
- var base64EncodeOutputStream = function() {
-
- var _buffer = 0;
- var _buflen = 0;
- var _length = 0;
- var _base64 = '';
-
- var _this = {};
-
- var writeEncoded = function(b) {
- _base64 += String.fromCharCode(encode(b & 0x3f) );
- };
-
- var encode = function(n) {
- if (n < 0) ; else if (n < 26) {
- return 0x41 + n;
- } else if (n < 52) {
- return 0x61 + (n - 26);
- } else if (n < 62) {
- return 0x30 + (n - 52);
- } else if (n == 62) {
- return 0x2b;
- } else if (n == 63) {
- return 0x2f;
- }
- throw 'n:' + n;
- };
-
- _this.writeByte = function(n) {
-
- _buffer = (_buffer << 8) | (n & 0xff);
- _buflen += 8;
- _length += 1;
-
- while (_buflen >= 6) {
- writeEncoded(_buffer >>> (_buflen - 6) );
- _buflen -= 6;
- }
- };
-
- _this.flush = function() {
-
- if (_buflen > 0) {
- writeEncoded(_buffer << (6 - _buflen) );
- _buffer = 0;
- _buflen = 0;
- }
-
- if (_length % 3 != 0) {
- // padding
- var padlen = 3 - _length % 3;
- for (var i = 0; i < padlen; i += 1) {
- _base64 += '=';
- }
- }
- };
-
- _this.toString = function() {
- return _base64;
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // base64DecodeInputStream
- //---------------------------------------------------------------------
-
- var base64DecodeInputStream = function(str) {
-
- var _str = str;
- var _pos = 0;
- var _buffer = 0;
- var _buflen = 0;
-
- var _this = {};
-
- _this.read = function() {
-
- while (_buflen < 8) {
-
- if (_pos >= _str.length) {
- if (_buflen == 0) {
- return -1;
- }
- throw 'unexpected end of file./' + _buflen;
- }
-
- var c = _str.charAt(_pos);
- _pos += 1;
-
- if (c == '=') {
- _buflen = 0;
- return -1;
- } else if (c.match(/^\s$/) ) {
- // ignore if whitespace.
- continue;
- }
-
- _buffer = (_buffer << 6) | decode(c.charCodeAt(0) );
- _buflen += 6;
- }
-
- var n = (_buffer >>> (_buflen - 8) ) & 0xff;
- _buflen -= 8;
- return n;
- };
-
- var decode = function(c) {
- if (0x41 <= c && c <= 0x5a) {
- return c - 0x41;
- } else if (0x61 <= c && c <= 0x7a) {
- return c - 0x61 + 26;
- } else if (0x30 <= c && c <= 0x39) {
- return c - 0x30 + 52;
- } else if (c == 0x2b) {
- return 62;
- } else if (c == 0x2f) {
- return 63;
- } else {
- throw 'c:' + c;
- }
- };
-
- return _this;
- };
-
- //---------------------------------------------------------------------
- // gifImage (B/W)
- //---------------------------------------------------------------------
-
- var gifImage = function(width, height) {
-
- var _width = width;
- var _height = height;
- var _data = new Array(width * height);
-
- var _this = {};
-
- _this.setPixel = function(x, y, pixel) {
- _data[y * _width + x] = pixel;
- };
-
- _this.write = function(out) {
-
- //---------------------------------
- // GIF Signature
-
- out.writeString('GIF87a');
-
- //---------------------------------
- // Screen Descriptor
-
- out.writeShort(_width);
- out.writeShort(_height);
-
- out.writeByte(0x80); // 2bit
- out.writeByte(0);
- out.writeByte(0);
-
- //---------------------------------
- // Global Color Map
-
- // black
- out.writeByte(0x00);
- out.writeByte(0x00);
- out.writeByte(0x00);
-
- // white
- out.writeByte(0xff);
- out.writeByte(0xff);
- out.writeByte(0xff);
-
- //---------------------------------
- // Image Descriptor
-
- out.writeString(',');
- out.writeShort(0);
- out.writeShort(0);
- out.writeShort(_width);
- out.writeShort(_height);
- out.writeByte(0);
-
- //---------------------------------
- // Local Color Map
-
- //---------------------------------
- // Raster Data
-
- var lzwMinCodeSize = 2;
- var raster = getLZWRaster(lzwMinCodeSize);
-
- out.writeByte(lzwMinCodeSize);
-
- var offset = 0;
-
- while (raster.length - offset > 255) {
- out.writeByte(255);
- out.writeBytes(raster, offset, 255);
- offset += 255;
- }
-
- out.writeByte(raster.length - offset);
- out.writeBytes(raster, offset, raster.length - offset);
- out.writeByte(0x00);
-
- //---------------------------------
- // GIF Terminator
- out.writeString(';');
- };
-
- var bitOutputStream = function(out) {
-
- var _out = out;
- var _bitLength = 0;
- var _bitBuffer = 0;
-
- var _this = {};
-
- _this.write = function(data, length) {
-
- if ( (data >>> length) != 0) {
- throw 'length over';
- }
-
- while (_bitLength + length >= 8) {
- _out.writeByte(0xff & ( (data << _bitLength) | _bitBuffer) );
- length -= (8 - _bitLength);
- data >>>= (8 - _bitLength);
- _bitBuffer = 0;
- _bitLength = 0;
- }
-
- _bitBuffer = (data << _bitLength) | _bitBuffer;
- _bitLength = _bitLength + length;
- };
-
- _this.flush = function() {
- if (_bitLength > 0) {
- _out.writeByte(_bitBuffer);
- }
- };
-
- return _this;
- };
-
- var getLZWRaster = function(lzwMinCodeSize) {
-
- var clearCode = 1 << lzwMinCodeSize;
- var endCode = (1 << lzwMinCodeSize) + 1;
- var bitLength = lzwMinCodeSize + 1;
-
- // Setup LZWTable
- var table = lzwTable();
-
- for (var i = 0; i < clearCode; i += 1) {
- table.add(String.fromCharCode(i) );
- }
- table.add(String.fromCharCode(clearCode) );
- table.add(String.fromCharCode(endCode) );
-
- var byteOut = byteArrayOutputStream();
- var bitOut = bitOutputStream(byteOut);
-
- // clear code
- bitOut.write(clearCode, bitLength);
-
- var dataIndex = 0;
-
- var s = String.fromCharCode(_data[dataIndex]);
- dataIndex += 1;
-
- while (dataIndex < _data.length) {
-
- var c = String.fromCharCode(_data[dataIndex]);
- dataIndex += 1;
-
- if (table.contains(s + c) ) {
-
- s = s + c;
-
- } else {
-
- bitOut.write(table.indexOf(s), bitLength);
-
- if (table.size() < 0xfff) {
-
- if (table.size() == (1 << bitLength) ) {
- bitLength += 1;
- }
-
- table.add(s + c);
- }
-
- s = c;
- }
- }
-
- bitOut.write(table.indexOf(s), bitLength);
-
- // end code
- bitOut.write(endCode, bitLength);
-
- bitOut.flush();
-
- return byteOut.toByteArray();
- };
-
- var lzwTable = function() {
-
- var _map = {};
- var _size = 0;
-
- var _this = {};
-
- _this.add = function(key) {
- if (_this.contains(key) ) {
- throw 'dup key:' + key;
- }
- _map[key] = _size;
- _size += 1;
- };
-
- _this.size = function() {
- return _size;
- };
-
- _this.indexOf = function(key) {
- return _map[key];
- };
-
- _this.contains = function(key) {
- return typeof _map[key] != 'undefined';
- };
-
- return _this;
- };
-
- return _this;
- };
-
- var createDataURL = function(width, height, getPixel) {
- var gif = gifImage(width, height);
- for (var y = 0; y < height; y += 1) {
- for (var x = 0; x < width; x += 1) {
- gif.setPixel(x, y, getPixel(x, y) );
- }
- }
-
- var b = byteArrayOutputStream();
- gif.write(b);
-
- var base64 = base64EncodeOutputStream();
- var bytes = b.toByteArray();
- for (var i = 0; i < bytes.length; i += 1) {
- base64.writeByte(bytes[i]);
- }
- base64.flush();
-
- return 'data:image/gif;base64,' + base64;
- };
-
- //---------------------------------------------------------------------
- // returns qrcode function.
-
- return qrcode;
- }();
-
- // multibyte support
- !function() {
-
- qrcode.stringToBytesFuncs['UTF-8'] = function(s) {
- // http://stackoverflow.com/questions/18729405/how-to-convert-utf8-string-to-byte-array
- function toUTF8Array(str) {
- var utf8 = [];
- for (var i=0; i < str.length; i++) {
- var charcode = str.charCodeAt(i);
- if (charcode < 0x80) utf8.push(charcode);
- else if (charcode < 0x800) {
- utf8.push(0xc0 | (charcode >> 6),
- 0x80 | (charcode & 0x3f));
- }
- else if (charcode < 0xd800 || charcode >= 0xe000) {
- utf8.push(0xe0 | (charcode >> 12),
- 0x80 | ((charcode>>6) & 0x3f),
- 0x80 | (charcode & 0x3f));
- }
- // surrogate pair
- else {
- i++;
- // UTF-16 encodes 0x10000-0x10FFFF by
- // subtracting 0x10000 and splitting the
- // 20 bits of 0x0-0xFFFFF into two halves
- charcode = 0x10000 + (((charcode & 0x3ff)<<10)
- | (str.charCodeAt(i) & 0x3ff));
- utf8.push(0xf0 | (charcode >>18),
- 0x80 | ((charcode>>12) & 0x3f),
- 0x80 | ((charcode>>6) & 0x3f),
- 0x80 | (charcode & 0x3f));
- }
- }
- return utf8;
- }
- return toUTF8Array(s);
- };
-
- }();
-
- (function (factory) {
- {
- module.exports = factory();
- }
- }(function () {
- return qrcode;
- }));
- }(qrcode$1));
-
- var qrcode = qrcode$1.exports;
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- function createSVG(text) {
- const qr = qrcode(0, "L");
- qr.addData(text);
- qr.make();
- return qr.createSvgTag({
- scalable: true,
- margin: 0,
- });
- }
- function QR({ text }) {
- const divRef = _(null);
- h(() => {
- if (divRef.current) {
- divRef.current.innerHTML = createSVG(text);
- }
- });
- return (h$2("div", { style: {
- width: "100%",
- display: "flex",
- flexDirection: "column",
- alignItems: "center",
- } },
- h$2("div", { style: { width: "50%", minWidth: 200, maxWidth: 300 }, ref: divRef })));
- }
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- function Head({ order_summary }) {
- return (h$2(p$2, null,
- h$2("meta", { charSet: "UTF-8" }),
- h$2("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0" }),
- h$2("noscript", null,
- h$2("meta", { "http-equiv": "refresh", content: "1" })),
- h$2("title", null,
- "Payment requested for",
- " ",
- order_summary ? order_summary : `{{ order_summary }}`)));
- }
- function RequestPayment({ payURI, qr_code, order_status_url, }) {
- h(() => {
- const longpollDelayMs = 60 * 1000;
- let checkUrl;
- try {
- checkUrl = new URL(order_status_url ? order_status_url : "{{& order_status_url }}");
- }
- catch (e) {
- return;
- }
- checkUrl.searchParams.set("timeout_s", longpollDelayMs.toString());
- function check() {
- let retried = false;
- function retryOnce() {
- if (!retried) {
- retried = true;
- check();
- }
- }
- const req = new XMLHttpRequest();
- req.onreadystatechange = function () {
- if (req.readyState === XMLHttpRequest.DONE) {
- if (req.status === 200) {
- try {
- const resp = JSON.parse(req.responseText);
- if (resp.fulfillment_url) {
- window.location.replace(resp.fulfillment_url);
- }
- }
- catch (e) {
- console.error("could not parse response:", e);
- }
- }
- if (req.status === 202) {
- try {
- const resp = JSON.parse(req.responseText);
- if (resp.fulfillment_url) {
- window.location.replace(resp.fulfillment_url);
- }
- }
- catch (e) {
- console.error("could not parse response:", e);
- }
- }
- if (req.status === 402) {
- try {
- const resp = JSON.parse(req.responseText);
- if (resp.already_paid_order_id && resp.fulfillment_url) {
- window.location.replace(resp.fulfillment_url);
- }
- }
- catch (e) {
- console.error("could not parse response:", e);
- }
- }
- setTimeout(retryOnce, 500);
- }
- };
- req.onerror = function () {
- setTimeout(retryOnce, 500);
- };
- req.ontimeout = function () {
- setTimeout(retryOnce, 500);
- };
- req.timeout = longpollDelayMs;
- req.open("GET", checkUrl.href);
- req.send();
- }
- setTimeout(check, 500);
- });
- return (h$2(Page, null,
- h$2("section", null,
- h$2("h1", null, "Pay with Taler"),
- h$2("p", null, "Scan this QR code with your mobile wallet:"),
- h$2(QRPlaceholder, { dangerouslySetInnerHTML: {
- __html: qr_code ? qr_code : `{{{ taler_pay_qrcode_svg }}}`,
- } }),
- h$2("p", null,
- h$2(WalletLink, { href: payURI ? payURI : `{{ taler_pay_uri }}` }, "Or open your Taler wallet")),
- h$2("p", null,
- h$2("a", { href: "https://wallet.taler.net/" }, "Don't have a Taler wallet yet? Install it!"))),
- h$2(Footer, null)));
- }
- function mount() {
- try {
- const fromLocation = new URL(window.location.href).searchParams;
- const os = fromLocation.get("order_summary") || undefined;
- if (os) {
- P$1(h$2(Head, { order_summary: os }), document.head);
- }
- const uri = fromLocation.get("pay_uri") || undefined;
- const osu = fromLocation.get("order_status_url") || undefined;
- const qr_code = uri ? S(h$2(QR, { text: uri })) : undefined;
- P$1(h$2(RequestPayment, { payURI: uri, order_status_url: osu, qr_code: qr_code }), document.body);
- }
- catch (e) {
- console.error("got error", e);
- if (e instanceof Error) {
- document.body.innerText = `Fatal error: "${e.message}". Please report this bug at https://bugs.gnunet.org/.`;
- }
- }
- }
- function buildTimeRendering() {
- return {
- head: S(h$2(Head, null)),
- body: S(h$2(RequestPayment, null)),
- };
- }
-
- exports.RequestPayment = RequestPayment;
- exports.buildTimeRendering = buildTimeRendering;
- exports.mount = mount;
-
- Object.defineProperty(exports, '__esModule', { value: true });
-
- return exports;
-
-})({});
+/*! normalize.ss v8.0.1 | MIT License | github.com/necolas/normalize.cs */
+</style>
+ </head>
+ <script id="built_time_data">
+ </script>
+ <body>
+ <div class="p1b3vqup"><section><h1>Pay with Taler</h1><p>Scan this QR code with your mobile wallet:</p><div class="q1ma0zxq">{{{ taler_pay_qrcode_svg }}}</div><p><a href="{{ taler_pay_uri }}" style="--wpwjmk-0: none;" class="wpwjmk">Or open your Taler wallet</a></p><p><a href="https://wallet.taler.net/">Don't have a Taler wallet yet? Install it!</a></p></section><footer class="fef0x5t"><p><a href="https://taler.net/">Learn more about GNU Taler on our website.</a><p>Copyright © 2014—2021 Taler Systems SA</p></p></footer></div>
+ <script>"use strict";var page=(()=>{var kr=Object.create;var Ae=Object.defineProperty;var Cr=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var Er=Object.getPrototypeOf,Tr=Object.prototype.hasOwnProperty;var Mr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pr=(e,t)=>{for(var r in t)Ae(e,r,{get:t[r],enumerable:!0})},ot=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ar(t))!Tr.call(e,i)&&i!==r&&Ae(e,i,{get:()=>t[i],enumerable:!(n=Cr(t,i))||n.enumerable});return e};var Lr=(e,t,r)=>(r=e!=null?kr(Er(e)):{},ot(t||!e||!e.__esModule?Ae(r,"default",{value:e,enumerable:!0}):r,e)),Dr=e=>ot(Ae({},"__esModule",{value:!0}),e);var yr=Mr((gr,mr)=>{var vr=function(){var e=function(w,E){var x=236,b=17,f=w,d=r[E],u=null,a=0,c=null,l=[],p={},S=function(h,v){a=f*4+17,u=function(_){for(var g=new Array(_),y=0;y<_;y+=1){g[y]=new Array(_);for(var M=0;M<_;M+=1)g[y][M]=null}return g}(a),U(0,0),U(a-7,0),U(0,a-7),Y(),V(),Q(h,v),f>=7&&J(h),c==null&&(c=ke(f,d,l)),Z(c,v)},U=function(h,v){for(var _=-1;_<=7;_+=1)if(!(h+_<=-1||a<=h+_))for(var g=-1;g<=7;g+=1)v+g<=-1||a<=v+g||(0<=_&&_<=6&&(g==0||g==6)||0<=g&&g<=6&&(_==0||_==6)||2<=_&&_<=4&&2<=g&&g<=4?u[h+_][v+g]=!0:u[h+_][v+g]=!1)},W=function(){for(var h=0,v=0,_=0;_<8;_+=1){S(!0,_);var g=i.getLostPoint(p);(_==0||h>g)&&(h=g,v=_)}return v},V=function(){for(var h=8;h<a-8;h+=1)u[h][6]==null&&(u[h][6]=h%2==0);for(var v=8;v<a-8;v+=1)u[6][v]==null&&(u[6][v]=v%2==0)},Y=function(){for(var h=i.getPatternPosition(f),v=0;v<h.length;v+=1)for(var _=0;_<h.length;_+=1){var g=h[v],y=h[_];if(u[g][y]==null)for(var M=-2;M<=2;M+=1)for(var R=-2;R<=2;R+=1)M==-2||M==2||R==-2||R==2||M==0&&R==0?u[g+M][y+R]=!0:u[g+M][y+R]=!1}},J=function(h){for(var v=i.getBCHTypeNumber(f),_=0;_<18;_+=1){var g=!h&&(v>>_&1)==1;u[Math.floor(_/3)][_%3+a-8-3]=g}for(var _=0;_<18;_+=1){var g=!h&&(v>>_&1)==1;u[_%3+a-8-3][Math.floor(_/3)]=g}},Q=function(h,v){for(var _=d<<3|v,g=i.getBCHTypeInfo(_),y=0;y<15;y+=1){var M=!h&&(g>>y&1)==1;y<6?u[y][8]=M:y<8?u[y+1][8]=M:u[a-15+y][8]=M}for(var y=0;y<15;y+=1){var M=!h&&(g>>y&1)==1;y<8?u[8][a-y-1]=M:y<9?u[8][15-y-1+1]=M:u[8][15-y-1]=M}u[a-8][8]=!h},Z=function(h,v){for(var _=-1,g=a-1,y=7,M=0,R=i.getMaskFunction(v),O=a-1;O>0;O-=2)for(O==6&&(O-=1);;){for(var $=0;$<2;$+=1)if(u[g][O-$]==null){var G=!1;M<h.length&&(G=(h[M]>>>y&1)==1);var F=R(g,O-$);F&&(G=!G),u[g][O-$]=G,y-=1,y==-1&&(M+=1,y=7)}if(g+=_,g<0||a<=g){g-=_,_=-_;break}}},K=function(h,v){for(var _=0,g=0,y=0,M=new Array(v.length),R=new Array(v.length),O=0;O<v.length;O+=1){var $=v[O].dataCount,G=v[O].totalCount-$;g=Math.max(g,$),y=Math.max(y,G),M[O]=new Array($);for(var F=0;F<M[O].length;F+=1)M[O][F]=255&h.getBuffer()[F+_];_+=$;var z=i.getErrorCorrectPolynomial(G),ee=m(M[O],z.getLength()-1),tt=ee.mod(z);R[O]=new Array(z.getLength()-1);for(var F=0;F<R[O].length;F+=1){var rt=F+tt.getLength()-R[O].length;R[O][F]=rt>=0?tt.getAt(rt):0}}for(var nt=0,F=0;F<v.length;F+=1)nt+=v[F].totalCount;for(var Ue=new Array(nt),Ce=0,F=0;F<g;F+=1)for(var O=0;O<v.length;O+=1)F<M[O].length&&(Ue[Ce]=M[O][F],Ce+=1);for(var F=0;F<y;F+=1)for(var O=0;O<v.length;O+=1)F<R[O].length&&(Ue[Ce]=R[O][F],Ce+=1);return Ue},ke=function(h,v,_){for(var g=k.getRSBlocks(h,v),y=T(),M=0;M<_.length;M+=1){var R=_[M];y.put(R.getMode(),4),y.put(R.getLength(),i.getLengthInBits(R.getMode(),h)),R.write(y)}for(var O=0,M=0;M<g.length;M+=1)O+=g[M].dataCount;if(y.getLengthInBits()>O*8)throw"code length overflow. ("+y.getLengthInBits()+">"+O*8+")";for(y.getLengthInBits()+4<=O*8&&y.put(0,4);y.getLengthInBits()%8!=0;)y.putBit(!1);for(;!(y.getLengthInBits()>=O*8||(y.put(x,8),y.getLengthInBits()>=O*8));)y.put(b,8);return K(y,g)};p.addData=function(h,v){v=v||"Byte";var _=null;switch(v){case"Numeric":_=L(h);break;case"Alphanumeric":_=s(h);break;case"Byte":_=B(h);break;case"Kanji":_=D(h);break;default:throw"mode:"+v}l.push(_),c=null},p.isDark=function(h,v){if(h<0||a<=h||v<0||a<=v)throw h+","+v;return u[h][v]},p.getModuleCount=function(){return a},p.make=function(){if(f<1){for(var h=1;h<40;h++){for(var v=k.getRSBlocks(h,d),_=T(),g=0;g<l.length;g++){var y=l[g];_.put(y.getMode(),4),_.put(y.getLength(),i.getLengthInBits(y.getMode(),h)),y.write(_)}for(var M=0,g=0;g<v.length;g++)M+=v[g].dataCount;if(_.getLengthInBits()<=M*8)break}f=h}S(!1,W())},p.createTableTag=function(h,v){h=h||2,v=typeof v=="undefined"?h*4:v;var _="";_+='<table style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: "+v+"px;",_+='">',_+="<tbody>";for(var g=0;g<p.getModuleCount();g+=1){_+="<tr>";for(var y=0;y<p.getModuleCount();y+=1)_+='<td style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: 0px;",_+=" width: "+h+"px;",_+=" height: "+h+"px;",_+=" background-color: ",_+=p.isDark(g,y)?"#000000":"#ffffff",_+=";",_+='"/>';_+="</tr>"}return _+="</tbody>",_+="</table>",_},p.createSvgTag=function(h,v,_,g){var y={};typeof arguments[0]=="object"&&(y=arguments[0],h=y.cellSize,v=y.margin,_=y.alt,g=y.title),h=h||2,v=typeof v=="undefined"?h*4:v,_=typeof _=="string"?{text:_}:_||{},_.text=_.text||null,_.id=_.text?_.id||"qrcode-description":null,g=typeof g=="string"?{text:g}:g||{},g.text=g.text||null,g.id=g.text?g.id||"qrcode-title":null;var M=p.getModuleCount()*h+v*2,R,O,$,G,F="",z;for(z="l"+h+",0 0,"+h+" -"+h+",0 0,-"+h+"z ",F+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',F+=y.scalable?"":' width="'+M+'px" height="'+M+'px"',F+=' viewBox="0 0 '+M+" "+M+'" ',F+=' preserveAspectRatio="xMinYMin meet"',F+=g.text||_.text?' role="img" aria-labelledby="'+re([g.id,_.id].join(" ").trim())+'"':"",F+=">",F+=g.text?'<title id="'+re(g.id)+'">'+re(g.text)+"</title>":"",F+=_.text?'<description id="'+re(_.id)+'">'+re(_.text)+"</description>":"",F+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',F+='<path d="',$=0;$<p.getModuleCount();$+=1)for(G=$*h+v,R=0;R<p.getModuleCount();R+=1)p.isDark($,R)&&(O=R*h+v,F+="M"+O+","+G+z);return F+='" stroke="transparent" fill="black"/>',F+="</svg>",F},p.createDataURL=function(h,v){h=h||2,v=typeof v=="undefined"?h*4:v;var _=p.getModuleCount()*h+v*2,g=v,y=_-v;return j(_,_,function(M,R){if(g<=M&&M<y&&g<=R&&R<y){var O=Math.floor((M-g)/h),$=Math.floor((R-g)/h);return p.isDark($,O)?0:1}else return 1})},p.createImgTag=function(h,v,_){h=h||2,v=typeof v=="undefined"?h*4:v;var g=p.getModuleCount()*h+v*2,y="";return y+="<img",y+=' src="',y+=p.createDataURL(h,v),y+='"',y+=' width="',y+=g,y+='"',y+=' height="',y+=g,y+='"',_&&(y+=' alt="',y+=re(_),y+='"'),y+="/>",y};var re=function(h){for(var v="",_=0;_<h.length;_+=1){var g=h.charAt(_);switch(g){case"<":v+="&lt;";break;case">":v+="&gt;";break;case"&":v+="&amp;";break;case'"':v+="&quot;";break;default:v+=g;break}}return v},ce=function(h){var v=1;h=typeof h=="undefined"?v*2:h;var _=p.getModuleCount()*v+h*2,g=h,y=_-h,M,R,O,$,G,F={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},z={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},ee="";for(M=0;M<_;M+=2){for(O=Math.floor((M-g)/v),$=Math.floor((M+1-g)/v),R=0;R<_;R+=1)G="\u2588",g<=R&&R<y&&g<=M&&M<y&&p.isDark(O,Math.floor((R-g)/v))&&(G=" "),g<=R&&R<y&&g<=M+1&&M+1<y&&p.isDark($,Math.floor((R-g)/v))?G+=" ":G+="\u2588",ee+=h<1&&M+1>=y?z[G]:F[G];ee+=`
+`}return _%2&&h>0?ee.substring(0,ee.length-_-1)+Array(_+1).join("\u2580"):ee.substring(0,ee.length-1)};return p.createASCII=function(h,v){if(h=h||1,h<2)return ce(v);h-=1,v=typeof v=="undefined"?h*2:v;var _=p.getModuleCount()*h+v*2,g=v,y=_-v,M,R,O,$,G=Array(h+1).join("\u2588\u2588"),F=Array(h+1).join(" "),z="",ee="";for(M=0;M<_;M+=1){for(O=Math.floor((M-g)/h),ee="",R=0;R<_;R+=1)$=1,g<=R&&R<y&&g<=M&&M<y&&p.isDark(O,Math.floor((R-g)/h))&&($=0),ee+=$?G:F;for(O=0;O<h;O+=1)z+=ee+`
+`}return z.substring(0,z.length-1)},p.renderTo2dContext=function(h,v){v=v||2;for(var _=p.getModuleCount(),g=0;g<_;g++)for(var y=0;y<_;y++)h.fillStyle=p.isDark(g,y)?"black":"white",h.fillRect(g*v,y*v,v,v)},p};e.stringToBytesFuncs={default:function(w){for(var E=[],x=0;x<w.length;x+=1){var b=w.charCodeAt(x);E.push(b&255)}return E}},e.stringToBytes=e.stringToBytesFuncs.default,e.createStringToBytes=function(w,E){var x=function(){for(var f=H(w),d=function(){var V=f.read();if(V==-1)throw"eof";return V},u=0,a={};;){var c=f.read();if(c==-1)break;var l=d(),p=d(),S=d(),U=String.fromCharCode(c<<8|l),W=p<<8|S;a[U]=W,u+=1}if(u!=E)throw u+" != "+E;return a}(),b="?".charCodeAt(0);return function(f){for(var d=[],u=0;u<f.length;u+=1){var a=f.charCodeAt(u);if(a<128)d.push(a);else{var c=x[f.charAt(u)];typeof c=="number"?(c&255)==c?d.push(c):(d.push(c>>>8),d.push(c&255)):d.push(b)}}return d}};var t={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3},r={L:1,M:0,Q:3,H:2},n={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},i=function(){var w=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],E=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,x=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,b=1<<14|1<<12|1<<10|1<<4|1<<1,f={},d=function(u){for(var a=0;u!=0;)a+=1,u>>>=1;return a};return f.getBCHTypeInfo=function(u){for(var a=u<<10;d(a)-d(E)>=0;)a^=E<<d(a)-d(E);return(u<<10|a)^b},f.getBCHTypeNumber=function(u){for(var a=u<<12;d(a)-d(x)>=0;)a^=x<<d(a)-d(x);return u<<12|a},f.getPatternPosition=function(u){return w[u-1]},f.getMaskFunction=function(u){switch(u){case n.PATTERN000:return function(a,c){return(a+c)%2==0};case n.PATTERN001:return function(a,c){return a%2==0};case n.PATTERN010:return function(a,c){return c%3==0};case n.PATTERN011:return function(a,c){return(a+c)%3==0};case n.PATTERN100:return function(a,c){return(Math.floor(a/2)+Math.floor(c/3))%2==0};case n.PATTERN101:return function(a,c){return a*c%2+a*c%3==0};case n.PATTERN110:return function(a,c){return(a*c%2+a*c%3)%2==0};case n.PATTERN111:return function(a,c){return(a*c%3+(a+c)%2)%2==0};default:throw"bad maskPattern:"+u}},f.getErrorCorrectPolynomial=function(u){for(var a=m([1],0),c=0;c<u;c+=1)a=a.multiply(m([1,o.gexp(c)],0));return a},f.getLengthInBits=function(u,a){if(1<=a&&a<10)switch(u){case t.MODE_NUMBER:return 10;case t.MODE_ALPHA_NUM:return 9;case t.MODE_8BIT_BYTE:return 8;case t.MODE_KANJI:return 8;default:throw"mode:"+u}else if(a<27)switch(u){case t.MODE_NUMBER:return 12;case t.MODE_ALPHA_NUM:return 11;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 10;default:throw"mode:"+u}else if(a<41)switch(u){case t.MODE_NUMBER:return 14;case t.MODE_ALPHA_NUM:return 13;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 12;default:throw"mode:"+u}else throw"type:"+a},f.getLostPoint=function(u){for(var a=u.getModuleCount(),c=0,l=0;l<a;l+=1)for(var p=0;p<a;p+=1){for(var S=0,U=u.isDark(l,p),W=-1;W<=1;W+=1)if(!(l+W<0||a<=l+W))for(var V=-1;V<=1;V+=1)p+V<0||a<=p+V||W==0&&V==0||U==u.isDark(l+W,p+V)&&(S+=1);S>5&&(c+=3+S-5)}for(var l=0;l<a-1;l+=1)for(var p=0;p<a-1;p+=1){var Y=0;u.isDark(l,p)&&(Y+=1),u.isDark(l+1,p)&&(Y+=1),u.isDark(l,p+1)&&(Y+=1),u.isDark(l+1,p+1)&&(Y+=1),(Y==0||Y==4)&&(c+=3)}for(var l=0;l<a;l+=1)for(var p=0;p<a-6;p+=1)u.isDark(l,p)&&!u.isDark(l,p+1)&&u.isDark(l,p+2)&&u.isDark(l,p+3)&&u.isDark(l,p+4)&&!u.isDark(l,p+5)&&u.isDark(l,p+6)&&(c+=40);for(var p=0;p<a;p+=1)for(var l=0;l<a-6;l+=1)u.isDark(l,p)&&!u.isDark(l+1,p)&&u.isDark(l+2,p)&&u.isDark(l+3,p)&&u.isDark(l+4,p)&&!u.isDark(l+5,p)&&u.isDark(l+6,p)&&(c+=40);for(var J=0,p=0;p<a;p+=1)for(var l=0;l<a;l+=1)u.isDark(l,p)&&(J+=1);var Q=Math.abs(100*J/a/a-50)/5;return c+=Q*10,c},f}(),o=function(){for(var w=new Array(256),E=new Array(256),x=0;x<8;x+=1)w[x]=1<<x;for(var x=8;x<256;x+=1)w[x]=w[x-4]^w[x-5]^w[x-6]^w[x-8];for(var x=0;x<255;x+=1)E[w[x]]=x;var b={};return b.glog=function(f){if(f<1)throw"glog("+f+")";return E[f]},b.gexp=function(f){for(;f<0;)f+=255;for(;f>=256;)f-=255;return w[f]},b}();function m(w,E){if(typeof w.length=="undefined")throw w.length+"/"+E;var x=function(){for(var f=0;f<w.length&&w[f]==0;)f+=1;for(var d=new Array(w.length-f+E),u=0;u<w.length-f;u+=1)d[u]=w[u+f];return d}(),b={};return b.getAt=function(f){return x[f]},b.getLength=function(){return x.length},b.multiply=function(f){for(var d=new Array(b.getLength()+f.getLength()-1),u=0;u<b.getLength();u+=1)for(var a=0;a<f.getLength();a+=1)d[u+a]^=o.gexp(o.glog(b.getAt(u))+o.glog(f.getAt(a)));return m(d,0)},b.mod=function(f){if(b.getLength()-f.getLength()<0)return b;for(var d=o.glog(b.getAt(0))-o.glog(f.getAt(0)),u=new Array(b.getLength()),a=0;a<b.getLength();a+=1)u[a]=b.getAt(a);for(var a=0;a<f.getLength();a+=1)u[a]^=o.gexp(o.glog(f.getAt(a))+d);return m(u,0).mod(f)},b}var k=function(){var w=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],E=function(f,d){var u={};return u.totalCount=f,u.dataCount=d,u},x={},b=function(f,d){switch(d){case r.L:return w[(f-1)*4+0];case r.M:return w[(f-1)*4+1];case r.Q:return w[(f-1)*4+2];case r.H:return w[(f-1)*4+3];default:return}};return x.getRSBlocks=function(f,d){var u=b(f,d);if(typeof u=="undefined")throw"bad rs block @ typeNumber:"+f+"/errorCorrectionLevel:"+d;for(var a=u.length/3,c=[],l=0;l<a;l+=1)for(var p=u[l*3+0],S=u[l*3+1],U=u[l*3+2],W=0;W<p;W+=1)c.push(E(S,U));return c},x}(),T=function(){var w=[],E=0,x={};return x.getBuffer=function(){return w},x.getAt=function(b){var f=Math.floor(b/8);return(w[f]>>>7-b%8&1)==1},x.put=function(b,f){for(var d=0;d<f;d+=1)x.putBit((b>>>f-d-1&1)==1)},x.getLengthInBits=function(){return E},x.putBit=function(b){var f=Math.floor(E/8);w.length<=f&&w.push(0),b&&(w[f]|=128>>>E%8),E+=1},x},L=function(w){var E=t.MODE_NUMBER,x=w,b={};b.getMode=function(){return E},b.getLength=function(u){return x.length},b.write=function(u){for(var a=x,c=0;c+2<a.length;)u.put(f(a.substring(c,c+3)),10),c+=3;c<a.length&&(a.length-c==1?u.put(f(a.substring(c,c+1)),4):a.length-c==2&&u.put(f(a.substring(c,c+2)),7))};var f=function(u){for(var a=0,c=0;c<u.length;c+=1)a=a*10+d(u.charAt(c));return a},d=function(u){if("0"<=u&&u<="9")return u.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+u};return b},s=function(w){var E=t.MODE_ALPHA_NUM,x=w,b={};b.getMode=function(){return E},b.getLength=function(d){return x.length},b.write=function(d){for(var u=x,a=0;a+1<u.length;)d.put(f(u.charAt(a))*45+f(u.charAt(a+1)),11),a+=2;a<u.length&&d.put(f(u.charAt(a)),6)};var f=function(d){if("0"<=d&&d<="9")return d.charCodeAt(0)-"0".charCodeAt(0);if("A"<=d&&d<="Z")return d.charCodeAt(0)-"A".charCodeAt(0)+10;switch(d){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+d}};return b},B=function(w){var E=t.MODE_8BIT_BYTE,x=w,b=e.stringToBytes(w),f={};return f.getMode=function(){return E},f.getLength=function(d){return b.length},f.write=function(d){for(var u=0;u<b.length;u+=1)d.put(b[u],8)},f},D=function(w){var E=t.MODE_KANJI,x=w,b=e.stringToBytesFuncs.SJIS;if(!b)throw"sjis not supported.";(function(u,a){var c=b(u);if(c.length!=2||(c[0]<<8|c[1])!=a)throw"sjis not supported."})("\u53CB",38726);var f=b(w),d={};return d.getMode=function(){return E},d.getLength=function(u){return~~(f.length/2)},d.write=function(u){for(var a=f,c=0;c+1<a.length;){var l=(255&a[c])<<8|255&a[c+1];if(33088<=l&&l<=40956)l-=33088;else if(57408<=l&&l<=60351)l-=49472;else throw"illegal char at "+(c+1)+"/"+l;l=(l>>>8&255)*192+(l&255),u.put(l,13),c+=2}if(c<a.length)throw"illegal char at "+(c+1)},d},P=function(){var w=[],E={};return E.writeByte=function(x){w.push(x&255)},E.writeShort=function(x){E.writeByte(x),E.writeByte(x>>>8)},E.writeBytes=function(x,b,f){b=b||0,f=f||x.length;for(var d=0;d<f;d+=1)E.writeByte(x[d+b])},E.writeString=function(x){for(var b=0;b<x.length;b+=1)E.writeByte(x.charCodeAt(b))},E.toByteArray=function(){return w},E.toString=function(){var x="";x+="[";for(var b=0;b<w.length;b+=1)b>0&&(x+=","),x+=w[b];return x+="]",x},E},N=function(){var w=0,E=0,x=0,b="",f={},d=function(a){b+=String.fromCharCode(u(a&63))},u=function(a){if(!(a<0)){if(a<26)return 65+a;if(a<52)return 97+(a-26);if(a<62)return 48+(a-52);if(a==62)return 43;if(a==63)return 47}throw"n:"+a};return f.writeByte=function(a){for(w=w<<8|a&255,E+=8,x+=1;E>=6;)d(w>>>E-6),E-=6},f.flush=function(){if(E>0&&(d(w<<6-E),w=0,E=0),x%3!=0)for(var a=3-x%3,c=0;c<a;c+=1)b+="="},f.toString=function(){return b},f},H=function(w){var E=w,x=0,b=0,f=0,d={};d.read=function(){for(;f<8;){if(x>=E.length){if(f==0)return-1;throw"unexpected end of file./"+f}var a=E.charAt(x);if(x+=1,a=="=")return f=0,-1;if(a.match(/^\s$/))continue;b=b<<6|u(a.charCodeAt(0)),f+=6}var c=b>>>f-8&255;return f-=8,c};var u=function(a){if(65<=a&&a<=90)return a-65;if(97<=a&&a<=122)return a-97+26;if(48<=a&&a<=57)return a-48+52;if(a==43)return 62;if(a==47)return 63;throw"c:"+a};return d},A=function(w,E){var x=w,b=E,f=new Array(w*E),d={};d.setPixel=function(l,p,S){f[p*x+l]=S},d.write=function(l){l.writeString("GIF87a"),l.writeShort(x),l.writeShort(b),l.writeByte(128),l.writeByte(0),l.writeByte(0),l.writeByte(0),l.writeByte(0),l.writeByte(0),l.writeByte(255),l.writeByte(255),l.writeByte(255),l.writeString(","),l.writeShort(0),l.writeShort(0),l.writeShort(x),l.writeShort(b),l.writeByte(0);var p=2,S=a(p);l.writeByte(p);for(var U=0;S.length-U>255;)l.writeByte(255),l.writeBytes(S,U,255),U+=255;l.writeByte(S.length-U),l.writeBytes(S,U,S.length-U),l.writeByte(0),l.writeString(";")};var u=function(l){var p=l,S=0,U=0,W={};return W.write=function(V,Y){if(V>>>Y)throw"length over";for(;S+Y>=8;)p.writeByte(255&(V<<S|U)),Y-=8-S,V>>>=8-S,U=0,S=0;U=V<<S|U,S=S+Y},W.flush=function(){S>0&&p.writeByte(U)},W},a=function(l){for(var p=1<<l,S=(1<<l)+1,U=l+1,W=c(),V=0;V<p;V+=1)W.add(String.fromCharCode(V));W.add(String.fromCharCode(p)),W.add(String.fromCharCode(S));var Y=P(),J=u(Y);J.write(p,U);var Q=0,Z=String.fromCharCode(f[Q]);for(Q+=1;Q<f.length;){var K=String.fromCharCode(f[Q]);Q+=1,W.contains(Z+K)?Z=Z+K:(J.write(W.indexOf(Z),U),W.size()<4095&&(W.size()==1<<U&&(U+=1),W.add(Z+K)),Z=K)}return J.write(W.indexOf(Z),U),J.write(S,U),J.flush(),Y.toByteArray()},c=function(){var l={},p=0,S={};return S.add=function(U){if(S.contains(U))throw"dup key:"+U;l[U]=p,p+=1},S.size=function(){return p},S.indexOf=function(U){return l[U]},S.contains=function(U){return typeof l[U]!="undefined"},S};return d},j=function(w,E,x){for(var b=A(w,E),f=0;f<E;f+=1)for(var d=0;d<w;d+=1)b.setPixel(d,f,x(d,f));var u=P();b.write(u);for(var a=N(),c=u.toByteArray(),l=0;l<c.length;l+=1)a.writeByte(c[l]);return a.flush(),"data:image/gif;base64,"+a};return e}();(function(){vr.stringToBytesFuncs["UTF-8"]=function(e){function t(r){for(var n=[],i=0;i<r.length;i++){var o=r.charCodeAt(i);o<128?n.push(o):o<2048?n.push(192|o>>6,128|o&63):o<55296||o>=57344?n.push(224|o>>12,128|o>>6&63,128|o&63):(i++,o=65536+((o&1023)<<10|r.charCodeAt(i)&1023),n.push(240|o>>18,128|o>>12&63,128|o>>6&63,128|o&63))}return n}return t(e)}})();(function(e){typeof define=="function"&&define.amd?define([],e):typeof gr=="object"&&(mr.exports=e())})(function(){return vr})});var On={};Pr(On,{RequestPayment:()=>et,buildTimeRendering:()=>Nn,mount:()=>Bn});var ve,C,lt,Br,pe,at,ft,Ee={},_t=[],Nr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function oe(e,t){for(var r in t)e[r]=t[r];return e}function ct(e){var t=e.parentNode;t&&t.removeChild(e)}function I(e,t,r){var n,i,o,m={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:m[o]=t[o];if(arguments.length>2&&(m.children=arguments.length>3?ve.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)m[o]===void 0&&(m[o]=e.defaultProps[o]);return de(e,m,n,i,null)}function de(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++lt:i};return i==null&&C.vnode!=null&&C.vnode(o),o}function Ie(){return{current:null}}function X(e){return e.children}function te(e,t){this.props=e,this.context=t}function he(e,t){if(t==null)return e.__?he(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?he(e):null}function pt(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return pt(e)}}function Fe(e){(!e.__d&&(e.__d=!0)&&pe.push(e)&&!Te.__r++||at!==C.debounceRendering)&&((at=C.debounceRendering)||setTimeout)(Te)}function Te(){for(var e;Te.__r=pe.length;)e=pe.sort(function(t,r){return t.__v.__b-r.__v.__b}),pe=[],e.some(function(t){var r,n,i,o,m,k;t.__d&&(m=(o=(r=t).__v).__e,(k=r.__P)&&(n=[],(i=oe({},o)).__v=o.__v+1,He(k,o,i,r.__n,k.ownerSVGElement!==void 0,o.__h!=null?[m]:null,n,m==null?he(o):m,o.__h),gt(n,o),o.__e!=m&&pt(o)))})}function dt(e,t,r,n,i,o,m,k,T,L){var s,B,D,P,N,H,A,j=n&&n.__k||_t,w=j.length;for(r.__k=[],s=0;s<t.length;s++)if((P=r.__k[s]=(P=t[s])==null||typeof P=="boolean"?null:typeof P=="string"||typeof P=="number"||typeof P=="bigint"?de(null,P,null,null,P):Array.isArray(P)?de(X,{children:P},null,null,null):P.__b>0?de(P.type,P.props,P.key,P.ref?P.ref:null,P.__v):P)!=null){if(P.__=r,P.__b=r.__b+1,(D=j[s])===null||D&&P.key==D.key&&P.type===D.type)j[s]=void 0;else for(B=0;B<w;B++){if((D=j[B])&&P.key==D.key&&P.type===D.type){j[B]=void 0;break}D=null}He(e,P,D=D||Ee,i,o,m,k,T,L),N=P.__e,(B=P.ref)&&D.ref!=B&&(A||(A=[]),D.ref&&A.push(D.ref,null,P),A.push(B,P.__c||N,P)),N!=null?(H==null&&(H=N),typeof P.type=="function"&&P.__k===D.__k?P.__d=T=ht(P,T,e):T=vt(e,P,D,j,N,T),typeof r.type=="function"&&(r.__d=T)):T&&D.__e==T&&T.parentNode!=e&&(T=he(D))}for(r.__e=H,s=w;s--;)j[s]!=null&&yt(j[s],j[s]);if(A)for(s=0;s<A.length;s++)mt(A[s],A[++s],A[++s])}function ht(e,t,r){for(var n,i=e.__k,o=0;i&&o<i.length;o++)(n=i[o])&&(n.__=e,t=typeof n.type=="function"?ht(n,t,r):vt(r,n,n,i,n.__e,t));return t}function ne(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(r){ne(r,t)}):t.push(e)),t}function vt(e,t,r,n,i,o){var m,k,T;if(t.__d!==void 0)m=t.__d,t.__d=void 0;else if(r==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),m=null;else{for(k=o,T=0;(k=k.nextSibling)&&T<n.length;T+=1)if(k==i)break e;e.insertBefore(i,o),m=o}return m!==void 0?m:i.nextSibling}function Or(e,t,r,n,i){var o;for(o in r)o==="children"||o==="key"||o in t||Me(e,o,null,r[o],n);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||r[o]===t[o]||Me(e,o,t[o],r[o],n)}function it(e,t,r){t[0]==="-"?e.setProperty(t,r):e[t]=r==null?"":typeof r!="number"||Nr.test(t)?r:r+"px"}function Me(e,t,r,n,i){var o;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||it(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||it(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?st:ut,o):e.removeEventListener(t,o?st:ut,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=r==null?"":r;break e}catch(m){}typeof r=="function"||(r==null||r===!1&&t.indexOf("-")==-1?e.removeAttribute(t):e.setAttribute(t,r))}}function ut(e){this.l[e.type+!1](C.event?C.event(e):e)}function st(e){this.l[e.type+!0](C.event?C.event(e):e)}function He(e,t,r,n,i,o,m,k,T){var L,s,B,D,P,N,H,A,j,w,E,x,b,f,d,u=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(T=r.__h,k=t.__e=r.__e,t.__h=null,o=[k]),(L=C.__b)&&L(t);try{e:if(typeof u=="function"){if(A=t.props,j=(L=u.contextType)&&n[L.__c],w=L?j?j.props.value:L.__:n,r.__c?H=(s=t.__c=r.__c).__=s.__E:("prototype"in u&&u.prototype.render?t.__c=s=new u(A,w):(t.__c=s=new te(A,w),s.constructor=u,s.render=Rr),j&&j.sub(s),s.props=A,s.state||(s.state={}),s.context=w,s.__n=n,B=s.__d=!0,s.__h=[],s._sb=[]),s.__s==null&&(s.__s=s.state),u.getDerivedStateFromProps!=null&&(s.__s==s.state&&(s.__s=oe({},s.__s)),oe(s.__s,u.getDerivedStateFromProps(A,s.__s))),D=s.props,P=s.state,B)u.getDerivedStateFromProps==null&&s.componentWillMount!=null&&s.componentWillMount(),s.componentDidMount!=null&&s.__h.push(s.componentDidMount);else{if(u.getDerivedStateFromProps==null&&A!==D&&s.componentWillReceiveProps!=null&&s.componentWillReceiveProps(A,w),!s.__e&&s.shouldComponentUpdate!=null&&s.shouldComponentUpdate(A,s.__s,w)===!1||t.__v===r.__v){for(s.props=A,s.state=s.__s,t.__v!==r.__v&&(s.__d=!1),s.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(a){a&&(a.__=t)}),E=0;E<s._sb.length;E++)s.__h.push(s._sb[E]);s._sb=[],s.__h.length&&m.push(s);break e}s.componentWillUpdate!=null&&s.componentWillUpdate(A,s.__s,w),s.componentDidUpdate!=null&&s.__h.push(function(){s.componentDidUpdate(D,P,N)})}if(s.context=w,s.props=A,s.__v=t,s.__P=e,x=C.__r,b=0,"prototype"in u&&u.prototype.render){for(s.state=s.__s,s.__d=!1,x&&x(t),L=s.render(s.props,s.state,s.context),f=0;f<s._sb.length;f++)s.__h.push(s._sb[f]);s._sb=[]}else do s.__d=!1,x&&x(t),L=s.render(s.props,s.state,s.context),s.state=s.__s;while(s.__d&&++b<25);s.state=s.__s,s.getChildContext!=null&&(n=oe(oe({},n),s.getChildContext())),B||s.getSnapshotBeforeUpdate==null||(N=s.getSnapshotBeforeUpdate(D,P)),d=L!=null&&L.type===X&&L.key==null?L.props.children:L,dt(e,Array.isArray(d)?d:[d],t,r,n,i,o,m,k,T),s.base=t.__e,t.__h=null,s.__h.length&&m.push(s),H&&(s.__E=s.__=null),s.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Sr(r.__e,t,r,n,i,o,m,T);(L=C.diffed)&&L(t)}catch(a){t.__v=null,(T||o!=null)&&(t.__e=k,t.__h=!!T,o[o.indexOf(k)]=null),C.__e(a,t,r)}}function gt(e,t){C.__c&&C.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){C.__e(n,r.__v)}})}function Sr(e,t,r,n,i,o,m,k){var T,L,s,B=r.props,D=t.props,P=t.type,N=0;if(P==="svg"&&(i=!0),o!=null){for(;N<o.length;N++)if((T=o[N])&&"setAttribute"in T==!!P&&(P?T.localName===P:T.nodeType===3)){e=T,o[N]=null;break}}if(e==null){if(P===null)return document.createTextNode(D);e=i?document.createElementNS("http://www.w3.org/2000/svg",P):document.createElement(P,D.is&&D),o=null,k=!1}if(P===null)B===D||k&&e.data===D||(e.data=D);else{if(o=o&&ve.call(e.childNodes),L=(B=r.props||Ee).dangerouslySetInnerHTML,s=D.dangerouslySetInnerHTML,!k){if(o!=null)for(B={},N=0;N<e.attributes.length;N++)B[e.attributes[N].name]=e.attributes[N].value;(s||L)&&(s&&(L&&s.__html==L.__html||s.__html===e.innerHTML)||(e.innerHTML=s&&s.__html||""))}if(Or(e,D,B,i,k),s)t.__k=[];else if(N=t.props.children,dt(e,Array.isArray(N)?N:[N],t,r,n,i&&P!=="foreignObject",o,m,o?o[0]:r.__k&&he(r,0),k),o!=null)for(N=o.length;N--;)o[N]!=null&&ct(o[N]);k||("value"in D&&(N=D.value)!==void 0&&(N!==e.value||P==="progress"&&!N||P==="option"&&N!==B.value)&&Me(e,"value",N,B.value,!1),"checked"in D&&(N=D.checked)!==void 0&&N!==e.checked&&Me(e,"checked",N,B.checked,!1))}return e}function mt(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){C.__e(n,r)}}function yt(e,t,r){var n,i;if(C.unmount&&C.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||mt(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){C.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&yt(n[i],t,r||typeof e.type!="function");r||e.__e==null||ct(e.__e),e.__=e.__e=e.__d=void 0}function Rr(e,t,r){return this.constructor(e,r)}function ae(e,t,r){var n,i,o;C.__&&C.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],He(t,e=(!n&&r||t).__k=I(X,null,[e]),i||Ee,Ee,t.ownerSVGElement!==void 0,!n&&r?[r]:i?null:t.firstChild?ve.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n),gt(o,e)}function Ve(e,t){ae(e,t,Ve)}function xt(e,t,r){var n,i,o,m=oe({},e.props);for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:m[o]=t[o];return arguments.length>2&&(m.children=arguments.length>3?ve.call(arguments,2):r),de(e.type,m,n||e.key,i||e.ref,null)}function We(e,t){var r={__c:t="__cC"+ft++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(m){this.props.value!==m.value&&i.some(Fe)},this.sub=function(m){i.push(m);var k=m.componentWillUnmount;m.componentWillUnmount=function(){i.splice(i.indexOf(m),1),k&&k.call(m)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}ve=_t.slice,C={__e:function(e,t,r,n){for(var i,o,m;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),m=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),m=i.__d),m)return i.__E=i}catch(k){e=k}throw e}},lt=0,Br=function(e){return e!=null&&e.constructor===void 0},te.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=oe({},this.state),typeof e=="function"&&(e=e(oe({},r),this.props)),e&&oe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Fe(this))},te.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Fe(this))},te.prototype.render=X,pe=[],Te.__r=0,ft=0;var Ur=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,Mt=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,Pe=/[\s\n\\/='"\0<>]/,Pt=/^xlink:?./,Fr=/["&<]/;function ye(e){if(Fr.test(e+="")===!1)return e;for(var t=0,r=0,n="",i="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 60:i="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=i,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var bt=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||" "))},wt=function(e,t,r){return String(e).length>(t||40)||!r&&String(e).indexOf(`
+`)!==-1||String(e).indexOf("<")!==-1},kt={},Ir=/([A-Z])/g;function Lt(e){var t="";for(var r in e){var n=e[r];n!=null&&n!==""&&(t&&(t+=" "),t+=r[0]=="-"?r:kt[r]||(kt[r]=r.replace(Ir,"-$1").toLowerCase()),t=typeof n=="number"&&Ur.test(r)===!1?t+": "+n+"px;":t+": "+n+";")}return t||void 0}function qe(e,t){return Array.isArray(t)?t.reduce(qe,e):t!=null&&t!==!1&&e.push(t),e}function Ct(){this.__d=!0}function Dt(e,t){return{__v:e,context:t,props:e.props,setState:Ct,forceUpdate:Ct,__d:!0,__h:[]}}function Le(e,t){var r=e.contextType,n=r&&t[r.__c];return r!=null?n?n.props.value:r.__:t}var je=[];function ge(e,t,r,n,i,o){if(e==null||typeof e=="boolean")return"";if(typeof e!="object")return typeof e=="function"?"":ye(e);var m=r.pretty,k=m&&typeof m=="string"?m:" ";if(Array.isArray(e)){for(var T="",L=0;L<e.length;L++)m&&L>0&&(T+=`
+`),T+=ge(e[L],t,r,n,i,o);return T}if(e.constructor!==void 0)return"";var s,B=e.type,D=e.props,P=!1;if(typeof B=="function"){if(P=!0,!r.shallow||!n&&r.renderRootComponent!==!1){if(B===X){var N=[];return qe(N,e.props.children),ge(N,t,r,r.shallowHighOrder!==!1,i,o)}var H,A=e.__c=Dt(e,t);C.__b&&C.__b(e);var j=C.__r;if(B.prototype&&typeof B.prototype.render=="function"){var w=Le(B,t);(A=e.__c=new B(D,w)).__v=e,A._dirty=A.__d=!0,A.props=D,A.state==null&&(A.state={}),A._nextState==null&&A.__s==null&&(A._nextState=A.__s=A.state),A.context=w,B.getDerivedStateFromProps?A.state=Object.assign({},A.state,B.getDerivedStateFromProps(A.props,A.state)):A.componentWillMount&&(A.componentWillMount(),A.state=A._nextState!==A.state?A._nextState:A.__s!==A.state?A.__s:A.state),j&&j(e),H=A.render(A.props,A.state,A.context)}else for(var E=Le(B,t),x=0;A.__d&&x++<25;)A.__d=!1,j&&j(e),H=B.call(e.__c,D,E);return A.getChildContext&&(t=Object.assign({},t,A.getChildContext())),C.diffed&&C.diffed(e),ge(H,t,r,r.shallowHighOrder!==!1,i,o)}B=(s=B).displayName||s!==Function&&s.name||function(ce){var h=(Function.prototype.toString.call(ce).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!h){for(var v=-1,_=je.length;_--;)if(je[_]===ce){v=_;break}v<0&&(v=je.push(ce)-1),h="UnnamedComponent"+v}return h}(s)}var b,f,d="<"+B;if(D){var u=Object.keys(D);r&&r.sortAttributes===!0&&u.sort();for(var a=0;a<u.length;a++){var c=u[a],l=D[c];if(c!=="children"){if(!Pe.test(c)&&(r&&r.allAttributes||c!=="key"&&c!=="ref"&&c!=="__self"&&c!=="__source")){if(c==="defaultValue")c="value";else if(c==="defaultChecked")c="checked";else if(c==="defaultSelected")c="selected";else if(c==="className"){if(D.class!==void 0)continue;c="class"}else i&&Pt.test(c)&&(c=c.toLowerCase().replace(/^xlink:?/,"xlink:"));if(c==="htmlFor"){if(D.for)continue;c="for"}c==="style"&&l&&typeof l=="object"&&(l=Lt(l)),c[0]==="a"&&c[1]==="r"&&typeof l=="boolean"&&(l=String(l));var p=r.attributeHook&&r.attributeHook(c,l,t,r,P);if(p||p==="")d+=p;else if(c==="dangerouslySetInnerHTML")f=l&&l.__html;else if(B==="textarea"&&c==="value")b=l;else if((l||l===0||l==="")&&typeof l!="function"){if(!(l!==!0&&l!==""||(l=c,r&&r.xml))){d=d+" "+c;continue}if(c==="value"){if(B==="select"){o=l;continue}B==="option"&&o==l&&D.selected===void 0&&(d+=" selected")}d=d+" "+c+'="'+ye(l)+'"'}}}else b=l}}if(m){var S=d.replace(/\n\s*/," ");S===d||~S.indexOf(`
+`)?m&&~d.indexOf(`
+`)&&(d+=`
+`):d=S}if(d+=">",Pe.test(B))throw new Error(B+" is not a valid HTML tag name in "+d);var U,W=Mt.test(B)||r.voidElements&&r.voidElements.test(B),V=[];if(f)m&&wt(f)&&(f=`
+`+k+bt(f,k)),d+=f;else if(b!=null&&qe(U=[],b).length){for(var Y=m&&~d.indexOf(`
+`),J=!1,Q=0;Q<U.length;Q++){var Z=U[Q];if(Z!=null&&Z!==!1){var K=ge(Z,t,r,!0,B==="svg"||B!=="foreignObject"&&i,o);if(m&&!Y&&wt(K)&&(Y=!0),K)if(m){var ke=K.length>0&&K[0]!="<";J&&ke?V[V.length-1]+=K:V.push(K),J=ke}else V.push(K)}}if(m&&Y)for(var re=V.length;re--;)V[re]=`
+`+k+bt(V[re],k)}if(V.length||f)d+=V.join("");else if(r&&r.xml)return d.substring(0,d.length-1)+" />";return!W||U||f?(m&&~d.indexOf(`
+`)&&(d+=`
+`),d=d+"</"+B+">"):d=d.replace(/>$/," />"),d}var Hr={shallow:!0};ie.render=ie;var Vr=function(e,t){return ie(e,t,Hr)},At=[];function ie(e,t,r){t=t||{};var n=C.__s;C.__s=!0;var i,o=I(X,null);return o.__k=[e],i=r&&(r.pretty||r.voidElements||r.sortAttributes||r.shallow||r.allAttributes||r.xml||r.attributeHook)?ge(e,t,r):me(e,t,!1,void 0,o),C.__c&&C.__c(e,At),C.__s=n,At.length=0,i}function $e(e){return e==null||typeof e=="boolean"?null:typeof e=="string"||typeof e=="number"||typeof e=="bigint"?I(null,null,e):e}function Wr(e,t){return e==="className"?"class":e==="htmlFor"?"for":e==="defaultValue"?"value":e==="defaultChecked"?"checked":e==="defaultSelected"?"selected":t&&Pt.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function jr(e,t){return e==="style"&&t!=null&&typeof t=="object"?Lt(t):e[0]==="a"&&e[1]==="r"&&typeof t=="boolean"?String(t):t}var Et=Array.isArray,Tt=Object.assign;function me(e,t,r,n,i){if(e==null||e===!0||e===!1||e==="")return"";if(typeof e!="object")return typeof e=="function"?"":ye(e);if(Et(e)){var o="";i.__k=e;for(var m=0;m<e.length;m++)o+=me(e[m],t,r,n,i),e[m]=$e(e[m]);return o}if(e.constructor!==void 0)return"";e.__=i,C.__b&&C.__b(e);var k=e.type,T=e.props;if(typeof k=="function"){var L;if(k===X)L=T.children;else{L=k.prototype&&typeof k.prototype.render=="function"?function(u,a){var c=u.type,l=Le(c,a),p=new c(u.props,l);u.__c=p,p.__v=u,p.__d=!0,p.props=u.props,p.state==null&&(p.state={}),p.__s==null&&(p.__s=p.state),p.context=l,c.getDerivedStateFromProps?p.state=Tt({},p.state,c.getDerivedStateFromProps(p.props,p.state)):p.componentWillMount&&(p.componentWillMount(),p.state=p.__s!==p.state?p.__s:p.state);var S=C.__r;return S&&S(u),p.render(p.props,p.state,p.context)}(e,t):function(u,a){var c,l=Dt(u,a),p=Le(u.type,a);u.__c=l;for(var S=C.__r,U=0;l.__d&&U++<25;)l.__d=!1,S&&S(u),c=u.type.call(l,u.props,p);return c}(e,t);var s=e.__c;s.getChildContext&&(t=Tt({},t,s.getChildContext()))}var B=me(L=L!=null&&L.type===X&&L.key==null?L.props.children:L,t,r,n,e);return C.diffed&&C.diffed(e),e.__=void 0,C.unmount&&C.unmount(e),B}var D,P,N="<";if(N+=k,T)for(var H in D=T.children,T){var A=T[H];if(!(H==="key"||H==="ref"||H==="__self"||H==="__source"||H==="children"||H==="className"&&"class"in T||H==="htmlFor"&&"for"in T||Pe.test(H))){if(A=jr(H=Wr(H,r),A),H==="dangerouslySetInnerHTML")P=A&&A.__html;else if(k==="textarea"&&H==="value")D=A;else if((A||A===0||A==="")&&typeof A!="function"){if(A===!0||A===""){A=H,N=N+" "+H;continue}if(H==="value"){if(k==="select"){n=A;continue}k!=="option"||n!=A||"selected"in T||(N+=" selected")}N=N+" "+H+'="'+ye(A)+'"'}}}var j=N;if(N+=">",Pe.test(k))throw new Error(k+" is not a valid HTML tag name in "+N);var w="",E=!1;if(P)w+=P,E=!0;else if(typeof D=="string")w+=ye(D),E=!0;else if(Et(D)){e.__k=D;for(var x=0;x<D.length;x++){var b=D[x];if(D[x]=$e(b),b!=null&&b!==!1){var f=me(b,t,k==="svg"||k!=="foreignObject"&&r,n,e);f&&(w+=f,E=!0)}}}else if(D!=null&&D!==!1&&D!==!0){e.__k=[$e(D)];var d=me(D,t,k==="svg"||k!=="foreignObject"&&r,n,e);d&&(w+=d,E=!0)}if(C.diffed&&C.diffed(e),e.__=void 0,C.unmount&&C.unmount(e),E)N+=w;else if(Mt.test(k))return j+" />";return N+"</"+k+">"}ie.shallowRender=Vr;var ue,q,Ye,Bt,le=0,It=[],De=[],Nt=C.__b,Ot=C.__r,St=C.diffed,Rt=C.__c,Ut=C.unmount;function fe(e,t){C.__h&&C.__h(q,e,le||t),le=0;var r=q.__H||(q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:De}),r.__[e]}function Xe(e){return le=1,Ke(qt,e)}function Ke(e,t,r){var n=fe(ue++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):qt(void 0,t),function(o){var m=n.__N?n.__N[0]:n.__[0],k=n.t(m,o);m!==k&&(n.__N=[k,n.__[1]],n.__c.setState({}))}],n.__c=q,!q.u)){q.u=!0;var i=q.shouldComponentUpdate;q.shouldComponentUpdate=function(o,m,k){if(!n.__c.__H)return!0;var T=n.__c.__H.__.filter(function(s){return s.__c});if(T.every(function(s){return!s.__N}))return!i||i.call(this,o,m,k);var L=!1;return T.forEach(function(s){if(s.__N){var B=s.__[0];s.__=s.__N,s.__N=void 0,B!==s.__[0]&&(L=!0)}}),!(!L&&n.__c.props===o)&&(!i||i.call(this,o,m,k))}}return n.__N||n.__}function se(e,t){var r=fe(ue++,3);!C.__s&&Je(r.__H,t)&&(r.__=e,r.i=t,q.__H.__h.push(r))}function xe(e,t){var r=fe(ue++,4);!C.__s&&Je(r.__H,t)&&(r.__=e,r.i=t,q.__h.push(r))}function Ne(e){return le=5,Oe(function(){return{current:e}},[])}function Ht(e,t,r){le=6,xe(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function Oe(e,t){var r=fe(ue++,7);return Je(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function Vt(e,t){return le=8,Oe(function(){return e},t)}function Wt(e){var t=q.context[e.__c],r=fe(ue++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(q)),t.props.value):e.__}function jt(e,t){C.useDebugValue&&C.useDebugValue(t?t(e):e)}function $t(){var e=fe(ue++,11);if(!e.__){for(var t=q.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function $r(){for(var e;e=It.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(Ge),e.__H.__h=[]}catch(t){e.__H.__h=[],C.__e(t,e.__v)}}C.__b=function(e){q=null,Nt&&Nt(e)},C.__r=function(e){Ot&&Ot(e),ue=0;var t=(q=e.__c).__H;t&&(Ye===q?(t.__h=[],q.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=De,r.__N=r.i=void 0})):(t.__h.forEach(Be),t.__h.forEach(Ge),t.__h=[])),Ye=q},C.diffed=function(e){St&&St(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(It.push(t)!==1&&Bt===C.requestAnimationFrame||((Bt=C.requestAnimationFrame)||qr)($r)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==De&&(r.__=r.__V),r.i=void 0,r.__V=De})),Ye=q=null},C.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Be),r.__h=r.__h.filter(function(n){return!n.__||Ge(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],C.__e(n,r.__v)}}),Rt&&Rt(e,t)},C.unmount=function(e){Ut&&Ut(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Be(n)}catch(i){t=i}}),r.__H=void 0,t&&C.__e(t,r.__v))};var Ft=typeof requestAnimationFrame=="function";function qr(e){var t,r=function(){clearTimeout(n),Ft&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ft&&(t=requestAnimationFrame(r))}function Be(e){var t=q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),q=t}function Ge(e){var t=q;e.__c=e.__(),q=t}function Je(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function qt(e,t){return typeof t=="function"?t(e):t}function Yr(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Yt=Yr;var Gr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Xr=Yt(function(e){return Gr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Gt=Xr;function rr(e,t){for(var r in t)e[r]=t[r];return e}function Ze(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Qe(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function ze(e){this.props=e}function Kr(e,t){function r(i){var o=this.props.ref,m=o==i.ref;return!m&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!m:Ze(this.props,i)}function n(i){return this.shouldComponentUpdate=r,I(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(ze.prototype=new te).isPureReactComponent=!0,ze.prototype.shouldComponentUpdate=function(e,t){return Ze(this.props,e)||Ze(this.state,t)};var Xt=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Xt&&Xt(e)};var Jr=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Qr(e){function t(r){var n=rr({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=Jr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Kt=function(e,t){return e==null?null:ne(ne(e).map(t))},Zr={map:Kt,forEach:Kt,count:function(e){return e?ne(e).length:0},only:function(e){var t=ne(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ne},zr=C.__e;C.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}zr(e,t,r,n)};var Jt=C.unmount;function nr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=rr({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return nr(n,t,r)})),e}function or(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return or(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function Se(){this.__u=0,this.t=null,this.__b=null}function ar(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function en(e){var t,r,n;function i(o){if(t||(t=e()).then(function(m){r=m.default||m},function(m){n=m}),n)throw n;if(!r)throw t;return I(r,o)}return i.displayName="Lazy",i.__f=!0,i}function be(){this.u=null,this.o=null}C.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Jt&&Jt(e)},(Se.prototype=new te).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var i=ar(n.__v),o=!1,m=function(){o||(o=!0,r.__R=null,i?i(k):k())};r.__R=m;var k=function(){if(!--n.__u){if(n.state.__a){var L=n.state.__a;n.__v.__k[0]=or(L,L.__c.__P,L.__c.__O)}var s;for(n.setState({__a:n.__b=null});s=n.t.pop();)s.forceUpdate()}},T=t.__h===!0;n.__u++||T||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(m,m)},Se.prototype.componentWillUnmount=function(){this.t=[]},Se.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=nr(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&I(X,null,e.fallback);return i&&(i.__h=null),[I(X,null,t.__a?null:e.children),i]};var Qt=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function tn(e){return this.getChildContext=function(){return e.context},e.children}function rn(e){var t=this,r=e.i;t.componentWillUnmount=function(){ae(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),e.__v?(t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n)},insertBefore:function(n,i){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),ae(I(tn,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function nn(e,t){var r=I(rn,{__v:e,i:t});return r.containerInfo=t,r}(be.prototype=new te).__a=function(e){var t=this,r=ar(t.__v),n=t.o.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Qt(t,e,n)):i()};r?r(o):o()}},be.prototype.render=function(e){this.u=null,this.o=new Map;var t=ne(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},be.prototype.componentDidUpdate=be.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Qt(e,r,t)})};var ir=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,on=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,an=typeof document!="undefined",un=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};function sn(e,t,r){return t.__k==null&&(t.textContent=""),ae(e,t),typeof r=="function"&&r(),e?e.__c:null}function ln(e,t,r){return Ve(e,t),typeof r=="function"&&r(),e?e.__c:null}te.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(te.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Zt=C.event;function fn(){}function _n(){return this.cancelBubble}function cn(){return this.defaultPrevented}C.event=function(e){return Zt&&(e=Zt(e)),e.persist=fn,e.isPropagationStopped=_n,e.isDefaultPrevented=cn,e.nativeEvent=e};var ur,zt={configurable:!0,get:function(){return this.class}},er=C.vnode;C.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var o in n={},r){var m=r[o];an&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in r&&m==null||(o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&m===!0?m="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!un(r.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&on.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():m===null&&(m=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o="oninputCapture")),n[o]=m)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=ne(r.children).forEach(function(k){k.props.selected=n.value.indexOf(k.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=ne(r.children).forEach(function(k){k.props.selected=n.multiple?n.defaultValue.indexOf(k.props.value)!=-1:n.defaultValue==k.props.value})),e.props=n,r.class!=r.className&&(zt.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",zt))}e.$$typeof=ir,er&&er(e)};var tr=C.__r;C.__r=function(e){tr&&tr(e),ur=e.__c};var pn={ReactCurrentDispatcher:{current:{readContext:function(e){return ur.__n[e.__c].props.value}}}};function dn(e){return I.bind(null,e)}function sr(e){return!!e&&e.$$typeof===ir}function hn(e){return sr(e)?xt.apply(null,arguments):e}function vn(e){return!!e.__k&&(ae(null,e),!0)}function gn(e){return e&&(e.base||e.nodeType===1&&e)||null}var mn=function(e,t){return e(t)},yn=function(e,t){return e(t)},xn=X;function lr(e){e()}function bn(e){return e}function wn(){return[!1,lr]}var kn=xe;function Cn(e,t){var r=t(),n=Xe({h:{__:r,v:t}}),i=n[0].h,o=n[1];return xe(function(){i.__=r,i.v=t,Qe(i.__,t())||o({h:i})},[e,r,t]),se(function(){return Qe(i.__,i.v())||o({h:i}),e(function(){Qe(i.__,i.v())||o({h:i})})},[e]),r}var we={useState:Xe,useId:$t,useReducer:Ke,useEffect:se,useLayoutEffect:xe,useInsertionEffect:kn,useTransition:wn,useDeferredValue:bn,useSyncExternalStore:Cn,startTransition:lr,useRef:Ne,useImperativeHandle:Ht,useMemo:Oe,useCallback:Vt,useContext:Wt,useDebugValue:jt,version:"17.0.2",Children:Zr,render:sn,hydrate:ln,unmountComponentAtNode:vn,createPortal:nn,createElement:I,createContext:We,createFactory:dn,cloneElement:hn,createRef:Ie,Fragment:X,isValidElement:sr,findDOMNode:gn,Component:te,PureComponent:ze,memo:Kr,forwardRef:Qr,flushSync:yn,unstable_batchedUpdates:mn,StrictMode:xn,Suspense:Se,SuspenseList:be,lazy:en,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pn};var An=function(){let t=Array.prototype.slice.call(arguments).filter(Boolean),r={},n=[];t.forEach(o=>{(o?o.split(" "):[]).forEach(k=>{if(k.startsWith("atm_")){let[,T]=k.split("_");r[T]=k}else n.push(k)})});let i=[];for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(r[o]);return i.push(...n),i.join(" ")},Re=An;var En=e=>e.toUpperCase()===e,Tn=e=>t=>e.indexOf(t)===-1,fr=(e,t)=>{let r={};return Object.keys(e).filter(Tn(t)).forEach(n=>{r[n]=e[n]}),r};function Mn(e,t,r){let n=fr(t,r);return typeof e=="string"&&e.indexOf("-")===-1&&!En(e[0])&&Object.keys(n).forEach(i=>{Gt(i)||delete n[i]}),n}var Pn=(e,t)=>{};function Ln(e){return t=>{let r=(i,o)=>{let{as:m=e,class:k}=i,T=Mn(m,i,["as","class"]);T.ref=o,T.className=t.atomic?Re(t.class,T.className||k):Re(T.className||k,t.class);let{vars:L}=t;if(L){let s={};for(let P in L){let N=L[P],H=N[0],A=N[1]||"",j=typeof H=="function"?H(i):H;Pn(j,t.name),s[`--${P}`]=`${j}${A}`}let B=T.style||{},D=Object.keys(B);D.length>0&&D.forEach(P=>{s[P]=B[P]}),T.style=s}return e.__linaria&&e!==m?(T.as=m,we.createElement(e,T)):we.createElement(m,T)},n=we.forwardRef?we.forwardRef(r):i=>{let o=fr(i,["innerRef"]);return r(o,i.innerRef)};return n.displayName=t.name,n.__linaria={className:t.class,extends:e},n}}var _e=Ln;var _r=_e("div")({name:"QRPlaceholder",class:"q1ma0zxq"}),cr=_e("footer")({name:"FooterBar",class:"fef0x5t"}),pr=_e("div")({name:"Page",class:"p1b3vqup"});var dr=_e("a")({name:"WalletLink",class:"wpwjmk",vars:{"wpwjmk-0":[({upperCased:e})=>e?"uppercase":"none"]}});function hr(){return I(cr,null,I("p",null,I("a",{href:"https://taler.net/"},"Learn more about GNU Taler on our website."),I("p",null,"Copyright \xA9 2014\u20142021 Taler Systems SA")))}var xr=Lr(yr());function Dn(e){let t=(0,xr.default)(0,"L");return t.addData(e),t.make(),t.createSvgTag({scalable:!0,margin:0})}function br({text:e}){let t=Ne(null);return se(()=>{t.current&&(t.current.innerHTML=Dn(e))}),I("div",{style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center"}},I("div",{style:{width:"50%",minWidth:200,maxWidth:300},ref:t}))}function wr({order_summary:e}){return I(X,null,I("meta",{charSet:"UTF-8"}),I("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),I("noscript",null,I("meta",{"http-equiv":"refresh",content:"1"})),I("title",null,"Payment requested for"," ",e||"{{ order_summary }}"))}function et({payURI:e,qr_code:t,order_status_url:r}){return se(()=>{let i;try{i=new URL(r||"{{& order_status_url }}")}catch(m){return}i.searchParams.set("timeout_s",6e4 .toString());function o(){let m=!1;function k(){m||(m=!0,o())}let T=new XMLHttpRequest;T.onreadystatechange=function(){if(T.readyState===XMLHttpRequest.DONE){if(T.status===200)try{let L=JSON.parse(T.responseText);L.fulfillment_url&&window.location.replace(L.fulfillment_url)}catch(L){console.error("could not parse response:",L)}if(T.status===202)try{let L=JSON.parse(T.responseText);L.fulfillment_url&&window.location.replace(L.fulfillment_url)}catch(L){console.error("could not parse response:",L)}if(T.status===402)try{let L=JSON.parse(T.responseText);L.already_paid_order_id&&L.fulfillment_url&&window.location.replace(L.fulfillment_url)}catch(L){console.error("could not parse response:",L)}setTimeout(k,500)}},T.onerror=function(){setTimeout(k,500)},T.ontimeout=function(){setTimeout(k,500)},T.timeout=6e4,T.open("GET",i.href),T.send()}setTimeout(o,500)}),I(pr,null,I("section",null,I("h1",null,"Pay with Taler"),I("p",null,"Scan this QR code with your mobile wallet:"),I(_r,{dangerouslySetInnerHTML:{__html:t||"{{{ taler_pay_qrcode_svg }}}"}}),I("p",null,I(dr,{href:e||"{{ taler_pay_uri }}"},"Or open your Taler wallet")),I("p",null,I("a",{href:"https://wallet.taler.net/"},"Don't have a Taler wallet yet? Install it!"))),I(hr,null))}function Bn(){try{let e=new URL(window.location.href).searchParams,t=e.get("order_summary")||void 0;t&&ae(I(wr,{order_summary:t}),document.head);let r=e.get("pay_uri")||void 0,n=e.get("order_status_url")||void 0,i=r?ie(I(br,{text:r})):void 0;ae(I(et,{payURI:r,order_status_url:n,qr_code:i}),document.body)}catch(e){console.error("got error",e),e instanceof Error&&(document.body.innerText=`Fatal error: "${e.message}". Please report this bug at https://bugs.gnunet.org/.`)}}function Nn(){return{head:ie(I(wr,null)),body:ie(I(et,null))}}return Dr(On);})();
</script>
- <script>page.mount()</script>
- </body>
-</html> \ No newline at end of file
+ <script>page.mount()</script>
+ </body>
+ </html> \ No newline at end of file
diff --git a/backend/show_order_details.en.html b/backend/show_order_details.en.html
index ccdc1011a..342e22974 100644
--- a/backend/show_order_details.en.html
+++ b/backend/show_order_details.en.html
@@ -1,4899 +1,53 @@
-<!doctype html>
-<html>
- <head>
- <meta charSet="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><noscript><meta http-equiv="refresh" content="1" /></noscript><title>Status of your order for {{ order_summary }}</title><script>
+ <!doctype html>
+ <html>
+ <head>
+ <meta charSet="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><noscript><meta http-equiv="refresh" content="1" /></noscript><title>Status of your order for {{ order_summary }}</title><script>
var contractTermsStr = '{{{contract_terms_json}}}';
</script>
- <style>/*!
+ <style>.q1ma0zxq{margin:auto;text-align:center;width:340px}.fef0x5t{text-align:center;background-color:#033;color:#fff;padding:1em;overflow:auto}.fef0x5t>p>a:link,.fef0x5t>p>a:visited,.fef0x5t>p>a:hover,.fef0x5t>p>a:active{color:#fff}.p1b3vqup{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:100vh;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.p1b3vqup a:link,.p1b3vqup a:visited,.p1b3vqup a:hover,.p1b3vqup a:active{color:#000}.p1b3vqup section{text-align:center;width:600px;margin-bottom:auto}.p1b3vqup section:not(:first-of-type){margin-top:2em}.p1b3vqup>header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:center}.p1b3vqup>footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;width:100%;margin-bottom:0}.c1gnd3xp{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.wpwjmk{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;text-transform:var(--wpwjmk-0);font-family:inherit;font-size:100%;padding:.5em 1em;color:#444;color:#000c;border:1px solid #999;border:none rgba(0,0,0,0);background-color:"#e6e6e6";-webkit-text-decoration:none;text-decoration:none;background-color:#e6e6e6;border-radius:4px;text-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.wpwjmk:focus{outline:0}.wpwjmk:disabled{border:none;background-image:none;-webkit-filter:alpha(opacity=40);filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.wpwjmk:hover{-webkit-filter:alpha(opacity=90);filter:alpha(opacity=90);background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.i1pkgksb{border-radius:.25em;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:1em;border:solid 1px #b8daff;background-color:#cce5ff;color:#004085}.t2c81u8{text-align:left}.t2c81u8 dt{font-weight:700;margin-top:1em}.t2c81u8 dd{margin-inline-start:0px}.t1mav7fx{text-align:left}.t1mav7fx dt{font-weight:700;display:inline-block;width:30%}.t1mav7fx dd{margin-inline-start:0px;display:inline-block;width:70%}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html{font-family:sans-serif}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}.pure-g{letter-spacing:-.31em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,Droid Sans,Helvetica,Arial,sans-serif;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-line-pack:start;align-content:flex-start}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-g [class*=pure-u]{font-family:sans-serif}.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}.pure-button{display:inline-block;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#000c;border:none transparent;background-color:#e6e6e6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{background-image:-webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(40%,rgba(0,0,0,.05)),to(rgba(0,0,0,.1)));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;box-shadow:0 0 0 1px #00000026 inset,0 0 6px #0003 inset;border-color:#000}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;opacity:.4;cursor:not-allowed;-webkit-box-shadow:none;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{margin:0;border-radius:0;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 3px #ddd;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 3px #ddd;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input[type=color]:focus,.pure-form input[type=date]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=email]:focus,.pure-form input[type=month]:focus,.pure-form input[type=number]:focus,.pure-form input[type=password]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=text]:focus,.pure-form input[type=time]:focus,.pure-form input[type=url]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129fea}.pure-form input:not([type]):focus{outline:0;border-color:#129fea}.pure-form input[type=checkbox]:focus,.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus{outline:thin solid #129fea;outline:1px auto #129fea}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input[type=color][disabled],.pure-form input[type=date][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=email][disabled],.pure-form input[type=month][disabled],.pure-form input[type=number][disabled],.pure-form input[type=password][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=text][disabled],.pure-form input[type=time][disabled],.pure-form input[type=url][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input:not([type])[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input[type=color],.pure-form-stacked input[type=date],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=email],.pure-form-stacked input[type=file],.pure-form-stacked input[type=month],.pure-form-stacked input[type=number],.pure-form-stacked input[type=password],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=text],.pure-form-stacked input[type=time],.pure-form-stacked input[type=url],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-stacked input:not([type]){display:block;margin:.25em 0}.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width: 480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=color],.pure-group input[type=date],.pure-group input[type=datetime-local],.pure-group input[type=datetime],.pure-group input[type=email],.pure-group input[type=month],.pure-group input[type=number],.pure-group input[type=password],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=text],.pure-group input[type=time],.pure-group input[type=url],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.pure-menu{-webkit-box-sizing:border-box;box-sizing:border-box}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;vertical-align:middle}.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25b8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25be"}.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;padding:.5em 0}.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected>.pure-menu-link,.pure-menu-selected>.pure-menu-link:visited{color:#000}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td{background-color:#f2f2f2}.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}.talerbar{text-align:center}.tt{font-family:Lucida Console,Monaco,monospace}.content{overflow-x:auto;padding-left:15%;padding-right:15%}.qr{margin:auto;text-align:center}.qrtext{width:max-content;margin:auto;transition:font-size .2s;font-family:Lucida Console,Monaco,monospace;font-size:.5em}.qrtext:hover{font-size:1em}.talerbar{margin:0;bottom:0;background-color:#033;color:#fff;width:100%;padding:1em;overflow:auto}body{overflow-y:scroll}@media (min-width: 500px){.content{padding-bottom:2em;overflow-y:auto}}#main a:link,#main a:visited,#main a:hover,#main a:active{color:#000}
+/*!
Pure v2.0.3
Copyright 2013 Yahoo!
Licensed under the BSD License.
- https://github.com/pure-ss/pure/blob/master/LICENSE.md
+ https://github.com/pure-cs s/pure/blob/master/LICENSE.md
*/
/*!
- normalize.cs v | MIT License | git.io/normalize
+ normalize.cs s v | MIT License | git.io/normalize
Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
-/*! normalize.ss v8.0.1 | MIT License | github.com/necolas/normalize.cs */
-
-.talerbar {
- text-align: center;
-}
-.tt {
- font-family: "Lucida Console", Monaco, monospace;
-}
-.content {
- overflow-x: auto;
- padding-left: 15%;
- padding-right: 15%;
-}
-.qr {
- margin: auto;
- text-align: center;
-}
-.qrtext {
- width: max-content;
- margin: auto;
- transition: font-size 0.2s;
- font-family: "Lucida Console", Monaco, monospace;
- font-size: 0.5em;
-}
-.qrtext:hover {
- font-size: 1em;
-}
-.talerbar {
- margin: 0;
- bottom: 0;
- background-color: #033;
- color: white;
- width: 100%;
- padding: 1em;
- overflow: auto;
-}
-body {
- overflow-y: scroll;
-}
-@media (min-width: 500px) {
- .content {
- padding-bottom: 2em;
- overflow-y: auto;
- }
-}
-#main a:link,
-#main a:visited,
-#main a:hover,
-#main a:active {
- color: black;
-}/*!
+/*! normalize.cs s v8.0.1 | MIT License | github.com/necolas/normalize.cs s */
+/*!
Pure v2.0.3
Copyright 2013 Yahoo!
Licensed under the BSD License.
- https://github.com/pure-cs s/pure/blob/master/LICENSE.md
+ https://github.com/pure-ss/pure/blob/master/LICENSE.md
*/
/*!
- normalize.cs s v | MIT License | git.io/normalize
+ normalize.cs v | MIT License | git.io/normalize
Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
-/*! normalize.cs s v8.0.1 | MIT License | github.com/necolas/normalize.cs s */
-
-.talerbar {
- text-align: center;
-}
-
-html {
- line-height: 1.15;
- -webkit-text-size-adjust: 100%;
-}
-body {
- margin: 0;
-}
-main {
- display: block;
-}
-h1 {
- font-size: 2em;
- margin: 0.67em 0;
-}
-hr {
- -webkit-box-sizing: content-box;
- box-sizing: content-box;
- height: 0;
- overflow: visible;
-}
-pre {
- font-family: monospace, monospace;
- font-size: 1em;
-}
-a {
- background-color: transparent;
-}
-abbr[title] {
- border-bottom: none;
- text-decoration: underline;
- -webkit-text-decoration: underline dotted;
- text-decoration: underline dotted;
-}
-b,
-strong {
- font-weight: bolder;
-}
-code,
-kbd,
-samp {
- font-family: monospace, monospace;
- font-size: 1em;
-}
-small {
- font-size: 80%;
-}
-sub,
-sup {
- font-size: 75%;
- line-height: 0;
- position: relative;
- vertical-align: baseline;
-}
-sub {
- bottom: -0.25em;
-}
-sup {
- top: -0.5em;
-}
-img {
- border-style: none;
-}
-button,
-input,
-optgroup,
-select,
-textarea {
- font-family: inherit;
- font-size: 100%;
- line-height: 1.15;
- margin: 0;
-}
-button,
-input {
- overflow: visible;
-}
-button,
-select {
- text-transform: none;
-}
-[type="button"],
-[type="reset"],
-[type="submit"],
-button {
- -webkit-appearance: button;
-}
-[type="button"]::-moz-focus-inner,
-[type="reset"]::-moz-focus-inner,
-[type="submit"]::-moz-focus-inner,
-button::-moz-focus-inner {
- border-style: none;
- padding: 0;
-}
-[type="button"]:-moz-focusring,
-[type="reset"]:-moz-focusring,
-[type="submit"]:-moz-focusring,
-button:-moz-focusring {
- outline: 1px dotted ButtonText;
-}
-fieldset {
- padding: 0.35em 0.75em 0.625em;
-}
-legend {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- color: inherit;
- display: table;
- max-width: 100%;
- padding: 0;
- white-space: normal;
-}
-progress {
- vertical-align: baseline;
-}
-textarea {
- overflow: auto;
-}
-[type="checkbox"],
-[type="radio"] {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- padding: 0;
-}
-[type="number"]::-webkit-inner-spin-button,
-[type="number"]::-webkit-outer-spin-button {
- height: auto;
-}
-[type="search"] {
- -webkit-appearance: textfield;
- outline-offset: -2px;
-}
-[type="search"]::-webkit-search-decoration {
- -webkit-appearance: none;
-}
-::-webkit-file-upload-button {
- -webkit-appearance: button;
- font: inherit;
-}
-details {
- display: block;
-}
-summary {
- display: list-item;
-}
-template {
- display: none;
-}
-[hidden] {
- display: none;
-}
-html {
- font-family: sans-serif;
-}
-.hidden,
-[hidden] {
- display: none !important;
-}
-.pure-img {
- max-width: 100%;
- height: auto;
- display: block;
-}
-.pure-g {
- letter-spacing: -0.31em;
- text-rendering: optimizespeed;
- font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-orient: horizontal;
- -webkit-box-direction: normal;
- -ms-flex-flow: row wrap;
- flex-flow: row wrap;
- -ms-flex-line-pack: start;
- align-content: flex-start;
-}
-@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
- table .pure-g {
- display: block;
- }
-}
-.opera-only :-o-prefocus,
-.pure-g {
- word-spacing: -0.43em;
-}
-.pure-u {
- display: inline-block;
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-g [class*="pure-u"] {
- font-family: sans-serif;
-}
-.pure-u-1,
-.pure-u-1-1,
-.pure-u-1-12,
-.pure-u-1-2,
-.pure-u-1-24,
-.pure-u-1-3,
-.pure-u-1-4,
-.pure-u-1-5,
-.pure-u-1-6,
-.pure-u-1-8,
-.pure-u-10-24,
-.pure-u-11-12,
-.pure-u-11-24,
-.pure-u-12-24,
-.pure-u-13-24,
-.pure-u-14-24,
-.pure-u-15-24,
-.pure-u-16-24,
-.pure-u-17-24,
-.pure-u-18-24,
-.pure-u-19-24,
-.pure-u-2-24,
-.pure-u-2-3,
-.pure-u-2-5,
-.pure-u-20-24,
-.pure-u-21-24,
-.pure-u-22-24,
-.pure-u-23-24,
-.pure-u-24-24,
-.pure-u-3-24,
-.pure-u-3-4,
-.pure-u-3-5,
-.pure-u-3-8,
-.pure-u-4-24,
-.pure-u-4-5,
-.pure-u-5-12,
-.pure-u-5-24,
-.pure-u-5-5,
-.pure-u-5-6,
-.pure-u-5-8,
-.pure-u-6-24,
-.pure-u-7-12,
-.pure-u-7-24,
-.pure-u-7-8,
-.pure-u-8-24,
-.pure-u-9-24 {
- display: inline-block;
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-u-1-24 {
- width: 4.1667%;
-}
-.pure-u-1-12,
-.pure-u-2-24 {
- width: 8.3333%;
-}
-.pure-u-1-8,
-.pure-u-3-24 {
- width: 12.5%;
-}
-.pure-u-1-6,
-.pure-u-4-24 {
- width: 16.6667%;
-}
-.pure-u-1-5 {
- width: 20%;
-}
-.pure-u-5-24 {
- width: 20.8333%;
-}
-.pure-u-1-4,
-.pure-u-6-24 {
- width: 25%;
-}
-.pure-u-7-24 {
- width: 29.1667%;
-}
-.pure-u-1-3,
-.pure-u-8-24 {
- width: 33.3333%;
-}
-.pure-u-3-8,
-.pure-u-9-24 {
- width: 37.5%;
-}
-.pure-u-2-5 {
- width: 40%;
-}
-.pure-u-10-24,
-.pure-u-5-12 {
- width: 41.6667%;
-}
-.pure-u-11-24 {
- width: 45.8333%;
-}
-.pure-u-1-2,
-.pure-u-12-24 {
- width: 50%;
-}
-.pure-u-13-24 {
- width: 54.1667%;
-}
-.pure-u-14-24,
-.pure-u-7-12 {
- width: 58.3333%;
-}
-.pure-u-3-5 {
- width: 60%;
-}
-.pure-u-15-24,
-.pure-u-5-8 {
- width: 62.5%;
-}
-.pure-u-16-24,
-.pure-u-2-3 {
- width: 66.6667%;
-}
-.pure-u-17-24 {
- width: 70.8333%;
-}
-.pure-u-18-24,
-.pure-u-3-4 {
- width: 75%;
-}
-.pure-u-19-24 {
- width: 79.1667%;
-}
-.pure-u-4-5 {
- width: 80%;
-}
-.pure-u-20-24,
-.pure-u-5-6 {
- width: 83.3333%;
-}
-.pure-u-21-24,
-.pure-u-7-8 {
- width: 87.5%;
-}
-.pure-u-11-12,
-.pure-u-22-24 {
- width: 91.6667%;
-}
-.pure-u-23-24 {
- width: 95.8333%;
-}
-.pure-u-1,
-.pure-u-1-1,
-.pure-u-24-24,
-.pure-u-5-5 {
- width: 100%;
-}
-.pure-button {
- display: inline-block;
- line-height: normal;
- white-space: nowrap;
- vertical-align: middle;
- text-align: center;
- cursor: pointer;
- -webkit-user-drag: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-button::-moz-focus-inner {
- padding: 0;
- border: 0;
-}
-.pure-button-group {
- letter-spacing: -0.31em;
- text-rendering: optimizespeed;
-}
-.opera-only :-o-prefocus,
-.pure-button-group {
- word-spacing: -0.43em;
-}
-.pure-button-group .pure-button {
- letter-spacing: normal;
- word-spacing: normal;
- vertical-align: top;
- text-rendering: auto;
-}
-.pure-button {
- font-family: inherit;
- font-size: 100%;
- padding: 0.5em 1em;
- color: rgba(0, 0, 0, 0.8);
- border: none transparent;
- background-color: #e6e6e6;
- text-decoration: none;
- border-radius: 2px;
-}
-.pure-button-hover,
-.pure-button:focus,
-.pure-button:hover {
- background-image: -webkit-gradient(
- linear,
- left top,
- left bottom,
- from(transparent),
- color-stop(40%, rgba(0, 0, 0, 0.05)),
- to(rgba(0, 0, 0, 0.1))
- );
- background-image: linear-gradient(
- transparent,
- rgba(0, 0, 0, 0.05) 40%,
- rgba(0, 0, 0, 0.1)
- );
-}
-.pure-button:focus {
- outline: 0;
-}
-.pure-button-active,
-.pure-button:active {
- -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset,
- 0 0 6px rgba(0, 0, 0, 0.2) inset;
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset,
- 0 0 6px rgba(0, 0, 0, 0.2) inset;
- border-color: #000;
-}
-.pure-button-disabled,
-.pure-button-disabled:active,
-.pure-button-disabled:focus,
-.pure-button-disabled:hover,
-.pure-button[disabled] {
- border: none;
- background-image: none;
- opacity: 0.4;
- cursor: not-allowed;
- -webkit-box-shadow: none;
- box-shadow: none;
- pointer-events: none;
-}
-.pure-button-hidden {
- display: none;
-}
-.pure-button-primary,
-.pure-button-selected,
-a.pure-button-primary,
-a.pure-button-selected {
- background-color: #0078e7;
- color: #fff;
-}
-.pure-button-group .pure-button {
- margin: 0;
- border-radius: 0;
- border-right: 1px solid rgba(0, 0, 0, 0.2);
-}
-.pure-button-group .pure-button:first-child {
- border-top-left-radius: 2px;
- border-bottom-left-radius: 2px;
-}
-.pure-button-group .pure-button:last-child {
- border-top-right-radius: 2px;
- border-bottom-right-radius: 2px;
- border-right: none;
-}
-.pure-form input[type="color"],
-.pure-form input[type="date"],
-.pure-form input[type="datetime-local"],
-.pure-form input[type="datetime"],
-.pure-form input[type="email"],
-.pure-form input[type="month"],
-.pure-form input[type="number"],
-.pure-form input[type="password"],
-.pure-form input[type="search"],
-.pure-form input[type="tel"],
-.pure-form input[type="text"],
-.pure-form input[type="time"],
-.pure-form input[type="url"],
-.pure-form input[type="week"],
-.pure-form select,
-.pure-form textarea {
- padding: 0.5em 0.6em;
- display: inline-block;
- border: 1px solid #ccc;
- -webkit-box-shadow: inset 0 1px 3px #ddd;
- box-shadow: inset 0 1px 3px #ddd;
- border-radius: 4px;
- vertical-align: middle;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-form input:not([type]) {
- padding: 0.5em 0.6em;
- display: inline-block;
- border: 1px solid #ccc;
- -webkit-box-shadow: inset 0 1px 3px #ddd;
- box-shadow: inset 0 1px 3px #ddd;
- border-radius: 4px;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-form input[type="color"] {
- padding: 0.2em 0.5em;
-}
-.pure-form input[type="color"]:focus,
-.pure-form input[type="date"]:focus,
-.pure-form input[type="datetime-local"]:focus,
-.pure-form input[type="datetime"]:focus,
-.pure-form input[type="email"]:focus,
-.pure-form input[type="month"]:focus,
-.pure-form input[type="number"]:focus,
-.pure-form input[type="password"]:focus,
-.pure-form input[type="search"]:focus,
-.pure-form input[type="tel"]:focus,
-.pure-form input[type="text"]:focus,
-.pure-form input[type="time"]:focus,
-.pure-form input[type="url"]:focus,
-.pure-form input[type="week"]:focus,
-.pure-form select:focus,
-.pure-form textarea:focus {
- outline: 0;
- border-color: #129fea;
-}
-.pure-form input:not([type]):focus {
- outline: 0;
- border-color: #129fea;
-}
-.pure-form input[type="checkbox"]:focus,
-.pure-form input[type="file"]:focus,
-.pure-form input[type="radio"]:focus {
- outline: thin solid #129fea;
- outline: 1px auto #129fea;
-}
-.pure-form .pure-checkbox,
-.pure-form .pure-radio {
- margin: 0.5em 0;
- display: block;
-}
-.pure-form input[type="color"][disabled],
-.pure-form input[type="date"][disabled],
-.pure-form input[type="datetime-local"][disabled],
-.pure-form input[type="datetime"][disabled],
-.pure-form input[type="email"][disabled],
-.pure-form input[type="month"][disabled],
-.pure-form input[type="number"][disabled],
-.pure-form input[type="password"][disabled],
-.pure-form input[type="search"][disabled],
-.pure-form input[type="tel"][disabled],
-.pure-form input[type="text"][disabled],
-.pure-form input[type="time"][disabled],
-.pure-form input[type="url"][disabled],
-.pure-form input[type="week"][disabled],
-.pure-form select[disabled],
-.pure-form textarea[disabled] {
- cursor: not-allowed;
- background-color: #eaeded;
- color: #cad2d3;
-}
-.pure-form input:not([type])[disabled] {
- cursor: not-allowed;
- background-color: #eaeded;
- color: #cad2d3;
-}
-.pure-form input[readonly],
-.pure-form select[readonly],
-.pure-form textarea[readonly] {
- background-color: #eee;
- color: #777;
- border-color: #ccc;
-}
-.pure-form input:focus:invalid,
-.pure-form select:focus:invalid,
-.pure-form textarea:focus:invalid {
- color: #b94a48;
- border-color: #e9322d;
-}
-.pure-form input[type="checkbox"]:focus:invalid:focus,
-.pure-form input[type="file"]:focus:invalid:focus,
-.pure-form input[type="radio"]:focus:invalid:focus {
- outline-color: #e9322d;
-}
-.pure-form select {
- height: 2.25em;
- border: 1px solid #ccc;
- background-color: #fff;
-}
-.pure-form select[multiple] {
- height: auto;
-}
-.pure-form label {
- margin: 0.5em 0 0.2em;
-}
-.pure-form fieldset {
- margin: 0;
- padding: 0.35em 0 0.75em;
- border: 0;
-}
-.pure-form legend {
- display: block;
- width: 100%;
- padding: 0.3em 0;
- margin-bottom: 0.3em;
- color: #333;
- border-bottom: 1px solid #e5e5e5;
-}
-.pure-form-stacked input[type="color"],
-.pure-form-stacked input[type="date"],
-.pure-form-stacked input[type="datetime-local"],
-.pure-form-stacked input[type="datetime"],
-.pure-form-stacked input[type="email"],
-.pure-form-stacked input[type="file"],
-.pure-form-stacked input[type="month"],
-.pure-form-stacked input[type="number"],
-.pure-form-stacked input[type="password"],
-.pure-form-stacked input[type="search"],
-.pure-form-stacked input[type="tel"],
-.pure-form-stacked input[type="text"],
-.pure-form-stacked input[type="time"],
-.pure-form-stacked input[type="url"],
-.pure-form-stacked input[type="week"],
-.pure-form-stacked label,
-.pure-form-stacked select,
-.pure-form-stacked textarea {
- display: block;
- margin: 0.25em 0;
-}
-.pure-form-stacked input:not([type]) {
- display: block;
- margin: 0.25em 0;
-}
-.pure-form-aligned input,
-.pure-form-aligned select,
-.pure-form-aligned textarea,
-.pure-form-message-inline {
- display: inline-block;
- vertical-align: middle;
-}
-.pure-form-aligned textarea {
- vertical-align: top;
-}
-.pure-form-aligned .pure-control-group {
- margin-bottom: 0.5em;
-}
-.pure-form-aligned .pure-control-group label {
- text-align: right;
- display: inline-block;
- vertical-align: middle;
- width: 10em;
- margin: 0 1em 0 0;
-}
-.pure-form-aligned .pure-controls {
- margin: 1.5em 0 0 11em;
-}
-.pure-form .pure-input-rounded,
-.pure-form input.pure-input-rounded {
- border-radius: 2em;
- padding: 0.5em 1em;
-}
-.pure-form .pure-group fieldset {
- margin-bottom: 10px;
-}
-.pure-form .pure-group input,
-.pure-form .pure-group textarea {
- display: block;
- padding: 10px;
- margin: 0 0 -1px;
- border-radius: 0;
- position: relative;
- top: -1px;
-}
-.pure-form .pure-group input:focus,
-.pure-form .pure-group textarea:focus {
- z-index: 3;
-}
-.pure-form .pure-group input:first-child,
-.pure-form .pure-group textarea:first-child {
- top: 1px;
- border-radius: 4px 4px 0 0;
- margin: 0;
-}
-.pure-form .pure-group input:first-child:last-child,
-.pure-form .pure-group textarea:first-child:last-child {
- top: 1px;
- border-radius: 4px;
- margin: 0;
-}
-.pure-form .pure-group input:last-child,
-.pure-form .pure-group textarea:last-child {
- top: -2px;
- border-radius: 0 0 4px 4px;
- margin: 0;
-}
-.pure-form .pure-group button {
- margin: 0.35em 0;
-}
-.pure-form .pure-input-1 {
- width: 100%;
-}
-.pure-form .pure-input-3-4 {
- width: 75%;
-}
-.pure-form .pure-input-2-3 {
- width: 66%;
-}
-.pure-form .pure-input-1-2 {
- width: 50%;
-}
-.pure-form .pure-input-1-3 {
- width: 33%;
-}
-.pure-form .pure-input-1-4 {
- width: 25%;
-}
-.pure-form-message-inline {
- display: inline-block;
- padding-left: 0.3em;
- color: #666;
- vertical-align: middle;
- font-size: 0.875em;
-}
-.pure-form-message {
- display: block;
- color: #666;
- font-size: 0.875em;
-}
-@media only screen and (max-width: 480px) {
- .pure-form button[type="submit"] {
- margin: 0.7em 0 0;
- }
- .pure-form input:not([type]),
- .pure-form input[type="color"],
- .pure-form input[type="date"],
- .pure-form input[type="datetime-local"],
- .pure-form input[type="datetime"],
- .pure-form input[type="email"],
- .pure-form input[type="month"],
- .pure-form input[type="number"],
- .pure-form input[type="password"],
- .pure-form input[type="search"],
- .pure-form input[type="tel"],
- .pure-form input[type="text"],
- .pure-form input[type="time"],
- .pure-form input[type="url"],
- .pure-form input[type="week"],
- .pure-form label {
- margin-bottom: 0.3em;
- display: block;
- }
- .pure-group input:not([type]),
- .pure-group input[type="color"],
- .pure-group input[type="date"],
- .pure-group input[type="datetime-local"],
- .pure-group input[type="datetime"],
- .pure-group input[type="email"],
- .pure-group input[type="month"],
- .pure-group input[type="number"],
- .pure-group input[type="password"],
- .pure-group input[type="search"],
- .pure-group input[type="tel"],
- .pure-group input[type="text"],
- .pure-group input[type="time"],
- .pure-group input[type="url"],
- .pure-group input[type="week"] {
- margin-bottom: 0;
- }
- .pure-form-aligned .pure-control-group label {
- margin-bottom: 0.3em;
- text-align: left;
- display: block;
- width: 100%;
- }
- .pure-form-aligned .pure-controls {
- margin: 1.5em 0 0 0;
- }
- .pure-form-message,
- .pure-form-message-inline {
- display: block;
- font-size: 0.75em;
- padding: 0.2em 0 0.8em;
- }
-}
-.pure-menu {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-.pure-menu-fixed {
- position: fixed;
- left: 0;
- top: 0;
- z-index: 3;
-}
-.pure-menu-item,
-.pure-menu-list {
- position: relative;
-}
-.pure-menu-list {
- list-style: none;
- margin: 0;
- padding: 0;
-}
-.pure-menu-item {
- padding: 0;
- margin: 0;
- height: 100%;
-}
-.pure-menu-heading,
-.pure-menu-link {
- display: block;
- text-decoration: none;
- white-space: nowrap;
-}
-.pure-menu-horizontal {
- width: 100%;
- white-space: nowrap;
-}
-.pure-menu-horizontal .pure-menu-list {
- display: inline-block;
-}
-.pure-menu-horizontal .pure-menu-heading,
-.pure-menu-horizontal .pure-menu-item,
-.pure-menu-horizontal .pure-menu-separator {
- display: inline-block;
- vertical-align: middle;
-}
-.pure-menu-item .pure-menu-item {
- display: block;
-}
-.pure-menu-children {
- display: none;
- position: absolute;
- left: 100%;
- top: 0;
- margin: 0;
- padding: 0;
- z-index: 3;
-}
-.pure-menu-horizontal .pure-menu-children {
- left: 0;
- top: auto;
- width: inherit;
-}
-.pure-menu-active > .pure-menu-children,
-.pure-menu-allow-hover:hover > .pure-menu-children {
- display: block;
- position: absolute;
-}
-.pure-menu-has-children > .pure-menu-link:after {
- padding-left: 0.5em;
- content: "\25B8";
- font-size: small;
-}
-.pure-menu-horizontal .pure-menu-has-children > .pure-menu-link:after {
- content: "\25BE";
-}
-.pure-menu-scrollable {
- overflow-y: scroll;
- overflow-x: hidden;
-}
-.pure-menu-scrollable .pure-menu-list {
- display: block;
-}
-.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list {
- display: inline-block;
-}
-.pure-menu-horizontal.pure-menu-scrollable {
- white-space: nowrap;
- overflow-y: hidden;
- overflow-x: auto;
- padding: 0.5em 0;
-}
-.pure-menu-horizontal .pure-menu-children .pure-menu-separator,
-.pure-menu-separator {
- background-color: #ccc;
- height: 1px;
- margin: 0.3em 0;
-}
-.pure-menu-horizontal .pure-menu-separator {
- width: 1px;
- height: 1.3em;
- margin: 0 0.3em;
-}
-.pure-menu-horizontal .pure-menu-children .pure-menu-separator {
- display: block;
- width: auto;
-}
-.pure-menu-heading {
- text-transform: uppercase;
- color: #565d64;
-}
-.pure-menu-link {
- color: #777;
-}
-.pure-menu-children {
- background-color: #fff;
-}
-.pure-menu-disabled,
-.pure-menu-heading,
-.pure-menu-link {
- padding: 0.5em 1em;
-}
-.pure-menu-disabled {
- opacity: 0.5;
-}
-.pure-menu-disabled .pure-menu-link:hover {
- background-color: transparent;
-}
-.pure-menu-active > .pure-menu-link,
-.pure-menu-link:focus,
-.pure-menu-link:hover {
- background-color: #eee;
-}
-.pure-menu-selected > .pure-menu-link,
-.pure-menu-selected > .pure-menu-link:visited {
- color: #000;
-}
-.pure-table {
- border-collapse: collapse;
- border-spacing: 0;
- empty-cells: show;
- border: 1px solid #cbcbcb;
-}
-.pure-table caption {
- color: #000;
- font: italic 85%/1 arial, sans-serif;
- padding: 1em 0;
- text-align: center;
-}
-.pure-table td,
-.pure-table th {
- border-left: 1px solid #cbcbcb;
- border-width: 0 0 0 1px;
- font-size: inherit;
- margin: 0;
- overflow: visible;
- padding: 0.5em 1em;
-}
-.pure-table thead {
- background-color: #e0e0e0;
- color: #000;
- text-align: left;
- vertical-align: bottom;
-}
-.pure-table td {
- background-color: transparent;
-}
-.pure-table-odd td {
- background-color: #f2f2f2;
-}
-.pure-table-striped tr:nth-child(2n-1) td {
- background-color: #f2f2f2;
-}
-.pure-table-bordered td {
- border-bottom: 1px solid #cbcbcb;
-}
-.pure-table-bordered tbody > tr:last-child > td {
- border-bottom-width: 0;
-}
-.pure-table-horizontal td,
-.pure-table-horizontal th {
- border-width: 0 0 1px 0;
- border-bottom: 1px solid #cbcbcb;
-}
-.pure-table-horizontal tbody > tr:last-child > td {
- border-bottom-width: 0;
-}
-.q1ma0zxq{margin:auto;text-align:center;width:340px;}
-.fef0x5t{text-align:center;background-color:#033;color:white;padding:1em;overflow:auto;}.fef0x5t > p > a:link,.fef0x5t > p > a:visited,.fef0x5t > p > a:hover,.fef0x5t > p > a:active{color:white;}
-.p1b3vqup{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:100vh;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.p1b3vqup a:link,.p1b3vqup a:visited,.p1b3vqup a:hover,.p1b3vqup a:active{color:black;}.p1b3vqup section{text-align:center;width:600px;margin-bottom:auto;}.p1b3vqup section:not(:first-of-type){margin-top:2em;}.p1b3vqup > header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:center;}.p1b3vqup > footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;width:100%;margin-bottom:0px;}
-.c1gnd3xp{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
-.wpwjmk{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;text-transform:var(--wpwjmk-0);font-family:inherit;font-size:100%;padding:0.5em 1em;color:#444;color:rgba(0,0,0,0.8);border:1px solid #999;border:none rgba(0,0,0,0);background-color:'#e6e6e6';-webkit-text-decoration:none;text-decoration:none;border-radius:2px;background-color:#e6e6e6;border-radius:4px;text-shadow:0 1px 1px rgba(0,0,0,0.2);box-shadow:0 0 0 1px rgba(0,0,0,0.15) inset, 0 0 6px rgba(0,0,0,0.2) inset;border-color:#000;}.wpwjmk:focus{outline:0;}.wpwjmk:disabled{border:none;background-image:none;-webkit-filter:alpha(opacity=40);filter:alpha(opacity=40);opacity:0.4;cursor:not-allowed;box-shadow:none;pointer-events:none;}.wpwjmk:hover{-webkit-filter:alpha(opacity=90);filter:alpha(opacity=90);background-image:linear-gradient( transparent, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.1) );}
-.i1pkgksb{border-radius:0.25em;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:1em;border:solid 1px #b8daff;background-color:#cce5ff;color:#004085;}
-.t2c81u8{text-align:left;}.t2c81u8 dt{font-weight:bold;margin-top:1em;}.t2c81u8 dd{margin-inline-start:0px;}
-.t1mav7fx{text-align:left;}.t1mav7fx dt{font-weight:bold;display:inline-block;width:30%;}.t1mav7fx dd{margin-inline-start:0px;display:inline-block;width:70%;}
-/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3NlYmFzam0vV29yay90YWxlci93YWxsZXQtY29yZS9wYWNrYWdlcy9tZXJjaGFudC1iYWNrZW5kLXVpL3NyYy9zdHlsZWQvaW5kZXgudHN4Il0sIm5hbWVzIjpbIi5xMW1hMHp4cSIsIi5mZWYweDV0IiwiLnAxYjN2cXVwIiwiLmMxZ25kM3hwIiwiLndwd2ptayIsIi5pMXBrZ2tzYiIsIi50MmM4MXU4IiwiLnQxbWF2N2Z4Il0sIm1hcHBpbmdzIjoiQUFvQmFBO0FBS0FDO0FBY0FDO0FBdUNBQztBQUlBQztBQXVEQUM7QUFVQUM7QUFVQUMiLCJmaWxlIjoiL2hvbWUvc2ViYXNqbS9Xb3JrL3RhbGVyL3dhbGxldC1jb3JlL3BhY2thZ2VzL21lcmNoYW50LWJhY2tlbmQtdWkvc3JjL3N0eWxlZC9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgZmlsZSBpcyBwYXJ0IG9mIEdOVSBUYWxlclxuIChDKSAyMDIxIFRhbGVyIFN5c3RlbXMgUy5BLlxuXG4gR05VIFRhbGVyIGlzIGZyZWUgc29mdHdhcmU7IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnkgaXQgdW5kZXIgdGhlXG4gdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieSB0aGUgRnJlZSBTb2Z0d2FyZVxuIEZvdW5kYXRpb247IGVpdGhlciB2ZXJzaW9uIDMsIG9yIChhdCB5b3VyIG9wdGlvbikgYW55IGxhdGVyIHZlcnNpb24uXG5cbiBHTlUgVGFsZXIgaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCwgYnV0IFdJVEhPVVQgQU5ZXG4gV0FSUkFOVFk7IHdpdGhvdXQgZXZlbiB0aGUgaW1wbGllZCB3YXJyYW50eSBvZiBNRVJDSEFOVEFCSUxJVFkgb3IgRklUTkVTUyBGT1JcbiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4gIFNlZSB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0YWlscy5cblxuIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFsb25nIHdpdGhcbiBHTlUgVGFsZXI7IHNlZSB0aGUgZmlsZSBDT1BZSU5HLiAgSWYgbm90LCBzZWUgPGh0dHA6Ly93d3cuZ251Lm9yZy9saWNlbnNlcy8+XG4gKi9cbi8qKlxuKlxuKiBAYXV0aG9yIFNlYmFzdGlhbiBKYXZpZXIgTWFyY2hhbm8gKHNlYmFzam0pXG4qL1xuaW1wb3J0IHsgc3R5bGVkIH0gZnJvbSAnQGxpbmFyaWEvcmVhY3QnO1xuZXhwb3J0IGNvbnN0IFFSUGxhY2Vob2xkZXIgPSBzdHlsZWQuZGl2IGBcbiAgbWFyZ2luOiBhdXRvO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHdpZHRoOiAzNDBweDsgXG5gO1xuZXhwb3J0IGNvbnN0IEZvb3RlckJhciA9IHN0eWxlZC5mb290ZXIgYFxuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGJhY2tncm91bmQtY29sb3I6ICMwMzM7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgcGFkZGluZzogMWVtO1xuICBvdmVyZmxvdzogYXV0bztcblxuICAmID4gcCA+IGE6bGluayxcbiAgJiA+IHAgPiBhOnZpc2l0ZWQsXG4gICYgPiBwID4gYTpob3ZlcixcbiAgJiA+IHAgPiBhOmFjdGl2ZSB7XG4gICAgY29sb3I6IHdoaXRlO1xuICB9XG5gO1xuZXhwb3J0IGNvbnN0IFBhZ2UgPSBzdHlsZWQuZGl2IGBcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICBtaW4taGVpZ2h0OiAxMDB2aDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgXG4gIGE6bGluayxcbiAgYTp2aXNpdGVkLFxuICBhOmhvdmVyLFxuICBhOmFjdGl2ZSB7XG4gICAgY29sb3I6IGJsYWNrO1xuICB9XG4gIFxuICBzZWN0aW9uIHtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgd2lkdGg6IDYwMHB4O1xuICAgIC8qIG1hcmdpbjogYXV0bzsgKi9cbiAgICAvKiBtYXJnaW4tdG9wOiAwcHg7ICovXG4gICAgbWFyZ2luLWJvdHRvbTogYXV0bztcbiAgICAvKiBvdmVyZmxvdzogYXV0bzsgKi9cbiAgfVxuICBzZWN0aW9uOm5vdCg6Zmlyc3Qtb2YtdHlwZSkge1xuICAgIG1hcmdpbi10b3A6IDJlbTtcbiAgfVxuICAmID4gaGVhZGVyIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgfVxuICAmID4gZm9vdGVyIHtcbiAgICBkaXNwbGF5OiBmbGV4OyAgICBcbiAgICBmbGV4LWRpcmVjdGlvbjogcm93O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIG1hcmdpbi1ib3R0b206IDBweDtcbiAgfVxuYDtcbmV4cG9ydCBjb25zdCBDZW50ZXIgPSBzdHlsZWQuZGl2IGBcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5gO1xuZXhwb3J0IGNvbnN0IFdhbGxldExpbmsgPSBzdHlsZWQuYSBgXG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgem9vbTogMTtcbiAgbGluZS1oZWlnaHQ6IG5vcm1hbDtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgdmVydGljYWwtYWxpZ246IG1pZGRsZTtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIHVzZXItc2VsZWN0OiBub25lO1xuICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICB0ZXh0LXRyYW5zZm9ybTogJHsoeyB1cHBlckNhc2VkIH0pID0+IHVwcGVyQ2FzZWQgPyAndXBwZXJjYXNlJyA6ICdub25lJ307XG5cbiAgZm9udC1mYW1pbHk6IGluaGVyaXQ7XG4gIGZvbnQtc2l6ZTogMTAwJTtcbiAgcGFkZGluZzogMC41ZW0gMWVtO1xuICBjb2xvcjogIzQ0NDsgLyogcmdiYSBub3Qgc3VwcG9ydGVkIChJRSA4KSAqL1xuICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjgpOyAvKiByZ2JhIHN1cHBvcnRlZCAqL1xuICBib3JkZXI6IDFweCBzb2xpZCAjOTk5OyAvKklFIDYvNy84Ki9cbiAgYm9yZGVyOiBub25lIHJnYmEoMCwgMCwgMCwgMCk7IC8qSUU5ICsgZXZlcnl0aGluZyBlbHNlKi9cbiAgYmFja2dyb3VuZC1jb2xvcjogJyNlNmU2ZTYnO1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIGJvcmRlci1yYWRpdXM6IDJweDtcblxuICA6Zm9jdXMge1xuICAgIG91dGxpbmU6IDA7XG4gIH1cblxuICAmOmRpc2FibGVkIHtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogbm9uZTtcbiAgICAvKiBjc3NsaW50IGlnbm9yZTpzdGFydCAqL1xuICAgIGZpbHRlcjogYWxwaGEob3BhY2l0eT00MCk7XG4gICAgLyogY3NzbGludCBpZ25vcmU6ZW5kICovXG4gICAgb3BhY2l0eTogMC40O1xuICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgYm94LXNoYWRvdzogbm9uZTtcbiAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcbiAgfVxuXG4gIDpob3ZlciB7XG4gICAgZmlsdGVyOiBhbHBoYShvcGFjaXR5PTkwKTtcbiAgICBiYWNrZ3JvdW5kLWltYWdlOiBsaW5lYXItZ3JhZGllbnQoXG4gICAgICB0cmFuc3BhcmVudCxcbiAgICAgIHJnYmEoMCwgMCwgMCwgMC4wNSkgNDAlLFxuICAgICAgcmdiYSgwLCAwLCAwLCAwLjEpXG4gICAgKTtcbiAgfVxuXG4gIGJhY2tncm91bmQtY29sb3I6ICNlNmU2ZTY7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgdGV4dC1zaGFkb3c6IDAgMXB4IDFweCByZ2JhKDAsIDAsIDAsIDAuMik7XG4gIGJveC1zaGFkb3c6IDAgMCAwIDFweCByZ2JhKDAsIDAsIDAsIDAuMTUpIGluc2V0LFxuICAgIDAgMCA2cHggcmdiYSgwLCAwLCAwLCAwLjIpIGluc2V0O1xuICBib3JkZXItY29sb3I6ICMwMDA7XG5gO1xuZXhwb3J0IGNvbnN0IEluZm9Cb3ggPSBzdHlsZWQuZGl2IGBcbiAgYm9yZGVyLXJhZGl1czogMC4yNWVtO1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAvKiBtYXJnaW46IDAuNWVtOyAqL1xuICBwYWRkaW5nOiAxZW07XG4gIC8qIHdpZHRoOiAxMDAlOyAqL1xuICBib3JkZXI6c29saWQgMXB4ICNiOGRhZmY7XG4gIGJhY2tncm91bmQtY29sb3I6I2NjZTVmZjtcbiAgY29sb3I6IzAwNDA4NTtcbmA7XG5leHBvcnQgY29uc3QgVGFibGVFeHBhbmRlZCA9IHN0eWxlZC5kbCBgXG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIGR0IHtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICBtYXJnaW4tdG9wOiAxZW07XG4gIH1cbiAgZGQge1xuICAgIG1hcmdpbi1pbmxpbmUtc3RhcnQ6IDBweDtcbiAgfVxuYDtcbmV4cG9ydCBjb25zdCBUYWJsZVNpbXBsZSA9IHN0eWxlZC5kbCBgXG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIGR0IHtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgd2lkdGg6MzAlO1xuICB9XG4gIGRkIHtcbiAgICBtYXJnaW4taW5saW5lLXN0YXJ0OiAwcHg7XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIHdpZHRoOjcwJTtcbiAgfVxuYDtcbiJdfQ==*/</style>
- </head>
- <script id="built_time_data">
- </script>
- <body>
- <div class="p1b3vqup"><header><h1>Details of order {{ contract_terms.order_id }}</h1></header><section>{{#refund_amount}}<section><div class="i1pkgksb"><b>Refunded:</b> The merchant refunded you <b>{{ refund_amount }}</b>.</div></section>{{/refund_amount}}<section><dl class="t2c81u8"><dt>Order summary:</dt><dd>{{ contract_terms.summary }}</dd><dt>Amount paid:</dt><dd>{{ contract_terms.amount }}</dd><dt>Order date:</dt><dd>{{ contract_terms.timestamp_str }} </dd><dt>Merchant name:</dt><dd>{{ contract_terms.merchant.name }}</dd></dl></section>{{#contract_terms.hasProducts}}<section><h2>Products purchased</h2><dl class="t1mav7fx">{{#contract_terms.products}}<p>{{description}}</p><dl><dt>Quantity:</dt><dd>{{quantity}}</dd><dt>Price:</dt><dd>{{price}}</dd>{{#hasTaxes}}{{#taxes}}<dt>{{name}}</dt><dd>{{tax}}</dd>{{/taxes}}{{/hasTaxes}}{{#delivery_date}}<dt>Delivered on:</dt><dd>{{ delivery_date_str }} </dd>{{/delivery_date}}{{#unit}}<dt>Product unit:</dt><dd>{{.}}</dd>{{/unit}}{{#product_id}}<dt>Product ID:</dt><dd>{{.}}</dd>{{/product_id}}</dl>{{/contract_terms.products}}</dl></section>{{/contract_terms.hasProducts}}{{#contract_terms.has_delivery_info}}<section><h2>Delivery information</h2><dl class="t2c81u8">{{#contract_terms.delivery_date}}<dt>Delivery date:</dt><dd>{{ contract_terms.delivery_date_str }} </dd>{{/contract_terms.delivery_date}}{{#contract_terms.delivery_location}}<dt>Delivery address:</dt>{{#contract_terms.delivery_location.building_name}}<dd>{{ contract_terms.delivery_location.building_name }} {{ contract_terms.delivery_location.building_number }}</dd>{{/contract_terms.delivery_location.building_name}}{{#contract_terms.delivery_location.country}}<dd>{{ contract_terms.delivery_location.country }} {{ contract_terms.delivery_location.country_subdivision }}</dd>{{/contract_terms.delivery_location.country}}{{#contract_terms.delivery_location.district}}<dd>{{ contract_terms.delivery_location.district }}</dd>{{/contract_terms.delivery_location.district}}{{#contract_terms.delivery_location.post_code}}<dd>{{ contract_terms.delivery_location.post_code }}</dd>{{/contract_terms.delivery_location.post_code}}{{#contract_terms.delivery_location.street}}<dd>{{ contract_terms.delivery_location.street }}</dd>{{/contract_terms.delivery_location.street}}{{#contract_terms.delivery_location.town}}<dd>{{ contract_terms.delivery_location.town }}</dd>{{/contract_terms.delivery_location.town}}{{#contract_terms.delivery_location.town_location}}<dd>{{ contract_terms.delivery_location.town_location }}</dd>{{/contract_terms.delivery_location.town_location}}{{/contract_terms.delivery_location}}</dl></section>{{/contract_terms.has_delivery_info}}<section><h2>Full payment information</h2><dl class="t2c81u8"><dt>Amount paid:</dt><dd>{{ contract_terms.amount }}</dd><dt>Wire transfer method:</dt><dd>{{ contract_terms.wire_method }}</dd><dt>Payment deadline:</dt><dd>{{ contract_terms.pay_deadline_str }} </dd><dt>Exchange transfer deadline:</dt><dd>{{ contract_terms.wire_transfer_deadline_str }} </dd><dt>Maximum deposit fee:</dt><dd>{{ contract_terms.max_fee }}</dd><dt>Maximum wire fee:</dt><dd>{{ contract_terms.max_wire_fee }}</dd><dt>Wire fee amortization:</dt><dd>{{ contract_terms.wire_fee_amortization }} transactions</dd></dl></section><section><h2>Refund information</h2><dl class="t2c81u8"><dt>Refund deadline:</dt><dd>{{ contract_terms.refund_deadline_str }} </dd>{{#contract_terms.auto_refund}}<dt>Attempt autorefund for:</dt><dd>{{ contract_terms.auto_refund_str }} </dd>{{/contract_terms.auto_refund}}</dl></section><section><h2>Additional order details</h2><dl class="t2c81u8"><dt>Public reorder URL:</dt><dd> -- not defined yet -- </dd>{{#contract_terms.fulfillment_url}}<dt>Fulfillment URL:</dt><dd>{{ contract_terms.fulfillment_url }}</dd>{{/contract_terms.fulfillment_url}}</dl></section><section><h2>Full merchant information</h2><dl class="t2c81u8"><dt>Merchant name:</dt><dd>{{ contract_terms.merchant.name }}</dd><dt>Merchant address:</dt>{{#contract_terms.merchant.address.building_name}}<dd>{{ contract_terms.merchant.address.building_name }} {{ contract_terms.merchant.address.building_number }}</dd>{{/contract_terms.merchant.address.building_name}}{{#contract_terms.merchant.address.country}}<dd>{{ contract_terms.merchant.address.country }} {{ contract_terms.merchant.address.country_subdivision }}</dd>{{/contract_terms.merchant.address.country}}{{#contract_terms.merchant.address.district}}<dd>{{ contract_terms.merchant.address.district }}</dd>{{/contract_terms.merchant.address.district}}{{#contract_terms.merchant.address.post_code}}<dd>{{ contract_terms.merchant.address.post_code }}</dd>{{/contract_terms.merchant.address.post_code}}{{#contract_terms.merchant.address.street}}<dd>{{ contract_terms.merchant.address.street }}</dd>{{/contract_terms.merchant.address.street}}{{#contract_terms.merchant.address.town}}<dd>{{ contract_terms.merchant.address.town }}</dd>{{/contract_terms.merchant.address.town}}{{#contract_terms.merchant.address.town_location}}<dd>{{ contract_terms.merchant.address.town_location }}</dd>{{/contract_terms.merchant.address.town_location}}<dt>Merchant's jurisdiction:</dt>{{#contract_terms.merchant.jurisdiction.building_name}}<dd>{{ contract_terms.merchant.jurisdiction.building_name }} {{ contract_terms.merchant.jurisdiction.building_number }}</dd>{{/contract_terms.merchant.jurisdiction.building_name}}{{#contract_terms.merchant.jurisdiction.country}}<dd>{{ contract_terms.merchant.jurisdiction.country }} {{ contract_terms.merchant.jurisdiction.country_subdivision }}</dd>{{/contract_terms.merchant.jurisdiction.country}}{{#contract_terms.merchant.jurisdiction.district}}<dd>{{ contract_terms.merchant.jurisdiction.district }}</dd>{{/contract_terms.merchant.jurisdiction.district}}{{#contract_terms.merchant.jurisdiction.post_code}}<dd>{{ contract_terms.merchant.jurisdiction.post_code }}</dd>{{/contract_terms.merchant.jurisdiction.post_code}}{{#contract_terms.merchant.jurisdiction.street}}<dd>{{ contract_terms.merchant.jurisdiction.street }}</dd>{{/contract_terms.merchant.jurisdiction.street}}{{#contract_terms.merchant.jurisdiction.town}}<dd>{{ contract_terms.merchant.jurisdiction.town }}</dd>{{/contract_terms.merchant.jurisdiction.town}}{{#contract_terms.merchant.jurisdiction.town_location}}<dd>{{ contract_terms.merchant.jurisdiction.town_location }}</dd>{{/contract_terms.merchant.jurisdiction.town_location}}<dt>Merchant URI:</dt><dd>{{ contract_terms.merchant_base_url }}</dd><dt>Merchant's public key:</dt><dd>{{ contract_terms.merchant_pub }}</dd></dl></section>{{#contract_terms.hasAuditors}}<section><h2>Auditors accepted by the merchant</h2><dl class="t2c81u8">{{#contract_terms.auditors}}<p>{{name}}</p><dt>Auditor's public key:</dt><dd>{{auditor_pub}}</dd><dt>Auditor's URL:</dt><dd>{{url}}</dd>{{/contract_terms.auditors}}</dl></section>{{/contract_terms.hasAuditors}}{{#contract_terms.hasExchanges}}<section><h2>Exchanges accepted by the merchant</h2><dl class="t2c81u8">{{#contract_terms.exchanges}}<dt>Exchange's URL:</dt><dd>{{url}}</dd><dt>Public key:</dt><dd>{{master_pub}}</dd>{{/contract_terms.exchanges}}</dl></section>{{/contract_terms.hasExchanges}}</section><footer class="fef0x5t"><p><a href="https://taler.net/">Learn more about GNU Taler on our website.</a><p>Copyright © 2014—2021 Taler Systems SA</p></p></footer></div>
- <script>var page = (function (exports) {
- 'use strict';
-
- function toInteger(dirtyNumber) {
- if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
- return NaN;
- }
-
- var number = Number(dirtyNumber);
-
- if (isNaN(number)) {
- return number;
- }
-
- return number < 0 ? Math.ceil(number) : Math.floor(number);
- }
-
- function requiredArgs(required, args) {
- if (args.length < required) {
- throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
- }
- }
-
- function _typeof$2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$2 = function _typeof(obj) { return typeof obj; }; } else { _typeof$2 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$2(obj); }
- /**
- * @name toDate
- * @category Common Helpers
- * @summary Convert the given argument to an instance of Date.
- *
- * @description
- * Convert the given argument to an instance of Date.
- *
- * If the argument is an instance of Date, the function returns its clone.
- *
- * If the argument is a number, it is treated as a timestamp.
- *
- * If the argument is none of the above, the function returns Invalid Date.
- *
- * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
- *
- * @param {Date|Number} argument - the value to convert
- * @returns {Date} the parsed date in the local time zone
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // Clone the date:
- * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
- * //=> Tue Feb 11 2014 11:30:30
- *
- * @example
- * // Convert the timestamp to date:
- * const result = toDate(1392098430000)
- * //=> Tue Feb 11 2014 11:30:30
- */
-
- function toDate(argument) {
- requiredArgs(1, arguments);
- var argStr = Object.prototype.toString.call(argument); // Clone the date
-
- if (argument instanceof Date || _typeof$2(argument) === 'object' && argStr === '[object Date]') {
- // Prevent the date to lose the milliseconds when passed to new Date() in IE10
- return new Date(argument.getTime());
- } else if (typeof argument === 'number' || argStr === '[object Number]') {
- return new Date(argument);
- } else {
- if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
- // eslint-disable-next-line no-console
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console
-
- console.warn(new Error().stack);
- }
-
- return new Date(NaN);
- }
- }
-
- /**
- * @name addDays
- * @category Day Helpers
- * @summary Add the specified number of days to the given date.
- *
- * @description
- * Add the specified number of days to the given date.
- *
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} - the new date with the days added
- * @throws {TypeError} - 2 arguments required
- *
- * @example
- * // Add 10 days to 1 September 2014:
- * const result = addDays(new Date(2014, 8, 1), 10)
- * //=> Thu Sep 11 2014 00:00:00
- */
-
- function addDays(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var date = toDate(dirtyDate);
- var amount = toInteger(dirtyAmount);
-
- if (isNaN(amount)) {
- return new Date(NaN);
- }
-
- if (!amount) {
- // If 0 days, no-op to avoid changing times in the hour before end of DST
- return date;
- }
-
- date.setDate(date.getDate() + amount);
- return date;
- }
-
- /**
- * @name addMonths
- * @category Month Helpers
- * @summary Add the specified number of months to the given date.
- *
- * @description
- * Add the specified number of months to the given date.
- *
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the months added
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // Add 5 months to 1 September 2014:
- * const result = addMonths(new Date(2014, 8, 1), 5)
- * //=> Sun Feb 01 2015 00:00:00
- */
-
- function addMonths(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var date = toDate(dirtyDate);
- var amount = toInteger(dirtyAmount);
-
- if (isNaN(amount)) {
- return new Date(NaN);
- }
-
- if (!amount) {
- // If 0 months, no-op to avoid changing times in the hour before end of DST
- return date;
- }
-
- var dayOfMonth = date.getDate(); // The JS Date object supports date math by accepting out-of-bounds values for
- // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and
- // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we
- // want except that dates will wrap around the end of a month, meaning that
- // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So
- // we'll default to the end of the desired month by adding 1 to the desired
- // month and using a date of 0 to back up one day to the end of the desired
- // month.
-
- var endOfDesiredMonth = new Date(date.getTime());
- endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0);
- var daysInMonth = endOfDesiredMonth.getDate();
-
- if (dayOfMonth >= daysInMonth) {
- // If we're already at the end of the month, then this is the correct date
- // and we're done.
- return endOfDesiredMonth;
- } else {
- // Otherwise, we now know that setting the original day-of-month value won't
- // cause an overflow, so set the desired day-of-month. Note that we can't
- // just set the date of `endOfDesiredMonth` because that object may have had
- // its time changed in the unusual case where where a DST transition was on
- // the last day of the month and its local time was in the hour skipped or
- // repeated next to a DST transition. So we use `date` instead which is
- // guaranteed to still have the original time.
- date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);
- return date;
- }
- }
-
- function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
-
- /**
- * @name add
- * @category Common Helpers
- * @summary Add the specified years, months, weeks, days, hours, minutes and seconds to the given date.
- *
- * @description
- * Add the specified years, months, weeks, days, hours, minutes and seconds to the given date.
- *
- * @param {Date|Number} date - the date to be changed
- * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- *
- * | Key | Description |
- * |----------------|------------------------------------|
- * | years | Amount of years to be added |
- * | months | Amount of months to be added |
- * | weeks | Amount of weeks to be added |
- * | days | Amount of days to be added |
- * | hours | Amount of hours to be added |
- * | minutes | Amount of minutes to be added |
- * | seconds | Amount of seconds to be added |
- *
- * All values default to 0
- *
- * @returns {Date} the new date with the seconds added
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // Add the following duration to 1 September 2014, 10:19:50
- * const result = add(new Date(2014, 8, 1, 10, 19, 50), {
- * years: 2,
- * months: 9,
- * weeks: 1,
- * days: 7,
- * hours: 5,
- * minutes: 9,
- * seconds: 30,
- * })
- * //=> Thu Jun 15 2017 15:29:20
- */
- function add(dirtyDate, duration) {
- requiredArgs(2, arguments);
- if (!duration || _typeof$1(duration) !== 'object') return new Date(NaN);
- var years = duration.years ? toInteger(duration.years) : 0;
- var months = duration.months ? toInteger(duration.months) : 0;
- var weeks = duration.weeks ? toInteger(duration.weeks) : 0;
- var days = duration.days ? toInteger(duration.days) : 0;
- var hours = duration.hours ? toInteger(duration.hours) : 0;
- var minutes = duration.minutes ? toInteger(duration.minutes) : 0;
- var seconds = duration.seconds ? toInteger(duration.seconds) : 0; // Add years and months
-
- var date = toDate(dirtyDate);
- var dateWithMonths = months || years ? addMonths(date, months + years * 12) : date; // Add weeks and days
-
- var dateWithDays = days || weeks ? addDays(dateWithMonths, days + weeks * 7) : dateWithMonths; // Add days, hours, minutes and seconds
-
- var minutesToAdd = minutes + hours * 60;
- var secondsToAdd = seconds + minutesToAdd * 60;
- var msToAdd = secondsToAdd * 1000;
- var finalDate = new Date(dateWithDays.getTime() + msToAdd);
- return finalDate;
- }
-
- /**
- * @name addMilliseconds
- * @category Millisecond Helpers
- * @summary Add the specified number of milliseconds to the given date.
- *
- * @description
- * Add the specified number of milliseconds to the given date.
- *
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the milliseconds added
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // Add 750 milliseconds to 10 July 2014 12:45:30.000:
- * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
- * //=> Thu Jul 10 2014 12:45:30.750
- */
-
- function addMilliseconds(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var timestamp = toDate(dirtyDate).getTime();
- var amount = toInteger(dirtyAmount);
- return new Date(timestamp + amount);
- }
-
- var defaultOptions = {};
- function getDefaultOptions() {
- return defaultOptions;
- }
-
- /**
- * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
- * They usually appear for dates that denote time before the timezones were introduced
- * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
- * and GMT+01:00:00 after that date)
- *
- * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
- * which would lead to incorrect calculations.
- *
- * This function returns the timezone offset in milliseconds that takes seconds in account.
- */
- function getTimezoneOffsetInMilliseconds(date) {
- var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
- utcDate.setUTCFullYear(date.getFullYear());
- return date.getTime() - utcDate.getTime();
- }
-
- /**
- * @name startOfDay
- * @category Day Helpers
- * @summary Return the start of a day for the given date.
- *
- * @description
- * Return the start of a day for the given date.
- * The result will be in the local timezone.
- *
- * @param {Date|Number} date - the original date
- * @returns {Date} the start of a day
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // The start of a day for 2 September 2014 11:55:00:
- * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
- * //=> Tue Sep 02 2014 00:00:00
- */
-
- function startOfDay(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- date.setHours(0, 0, 0, 0);
- return date;
- }
-
- var MILLISECONDS_IN_DAY$1 = 86400000;
- /**
- * @name differenceInCalendarDays
- * @category Day Helpers
- * @summary Get the number of calendar days between the given dates.
- *
- * @description
- * Get the number of calendar days between the given dates. This means that the times are removed
- * from the dates and then the difference in days is calculated.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of calendar days
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many calendar days are between
- * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
- * const result = differenceInCalendarDays(
- * new Date(2012, 6, 2, 0, 0),
- * new Date(2011, 6, 2, 23, 0)
- * )
- * //=> 366
- * // How many calendar days are between
- * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
- * const result = differenceInCalendarDays(
- * new Date(2011, 6, 3, 0, 1),
- * new Date(2011, 6, 2, 23, 59)
- * )
- * //=> 1
- */
-
- function differenceInCalendarDays(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var startOfDayLeft = startOfDay(dirtyDateLeft);
- var startOfDayRight = startOfDay(dirtyDateRight);
- var timestampLeft = startOfDayLeft.getTime() - getTimezoneOffsetInMilliseconds(startOfDayLeft);
- var timestampRight = startOfDayRight.getTime() - getTimezoneOffsetInMilliseconds(startOfDayRight); // Round the number of days to the nearest integer
- // because the number of milliseconds in a day is not constant
- // (e.g. it's different in the day of the daylight saving time clock shift)
-
- return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY$1);
- }
-
- /**
- * @name compareAsc
- * @category Common Helpers
- * @summary Compare the two dates and return -1, 0 or 1.
- *
- * @description
- * Compare the two dates and return 1 if the first date is after the second,
- * -1 if the first date is before the second or 0 if dates are equal.
- *
- * @param {Date|Number} dateLeft - the first date to compare
- * @param {Date|Number} dateRight - the second date to compare
- * @returns {Number} the result of the comparison
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // Compare 11 February 1987 and 10 July 1989:
- * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))
- * //=> -1
- *
- * @example
- * // Sort the array of dates:
- * const result = [
- * new Date(1995, 6, 2),
- * new Date(1987, 1, 11),
- * new Date(1989, 6, 10)
- * ].sort(compareAsc)
- * //=> [
- * // Wed Feb 11 1987 00:00:00,
- * // Mon Jul 10 1989 00:00:00,
- * // Sun Jul 02 1995 00:00:00
- * // ]
- */
-
- function compareAsc(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var dateLeft = toDate(dirtyDateLeft);
- var dateRight = toDate(dirtyDateRight);
- var diff = dateLeft.getTime() - dateRight.getTime();
-
- if (diff < 0) {
- return -1;
- } else if (diff > 0) {
- return 1; // Return 0 if diff is 0; return NaN if diff is NaN
- } else {
- return diff;
- }
- }
-
- /**
- * Days in 1 week.
- *
- * @name daysInWeek
- * @constant
- * @type {number}
- * @default
- */
- /**
- * Milliseconds in 1 minute
- *
- * @name millisecondsInMinute
- * @constant
- * @type {number}
- * @default
- */
-
- var millisecondsInMinute = 60000;
- /**
- * Milliseconds in 1 hour
- *
- * @name millisecondsInHour
- * @constant
- * @type {number}
- * @default
- */
-
- var millisecondsInHour = 3600000;
-
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
- /**
- * @name isDate
- * @category Common Helpers
- * @summary Is the given value a date?
- *
- * @description
- * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
- *
- * @param {*} value - the value to check
- * @returns {boolean} true if the given value is a date
- * @throws {TypeError} 1 arguments required
- *
- * @example
- * // For a valid date:
- * const result = isDate(new Date())
- * //=> true
- *
- * @example
- * // For an invalid date:
- * const result = isDate(new Date(NaN))
- * //=> true
- *
- * @example
- * // For some value:
- * const result = isDate('2014-02-31')
- * //=> false
- *
- * @example
- * // For an object:
- * const result = isDate({})
- * //=> false
- */
-
- function isDate(value) {
- requiredArgs(1, arguments);
- return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
- }
-
- /**
- * @name isValid
- * @category Common Helpers
- * @summary Is the given date valid?
- *
- * @description
- * Returns false if argument is Invalid Date and true otherwise.
- * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
- * Invalid Date is a Date, whose time value is NaN.
- *
- * Time value of Date: http://es5.github.io/#x15.9.1.1
- *
- * @param {*} date - the date to check
- * @returns {Boolean} the date is valid
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // For the valid date:
- * const result = isValid(new Date(2014, 1, 31))
- * //=> true
- *
- * @example
- * // For the value, convertable into a date:
- * const result = isValid(1393804800000)
- * //=> true
- *
- * @example
- * // For the invalid date:
- * const result = isValid(new Date(''))
- * //=> false
- */
-
- function isValid(dirtyDate) {
- requiredArgs(1, arguments);
-
- if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
- return false;
- }
-
- var date = toDate(dirtyDate);
- return !isNaN(Number(date));
- }
-
- /**
- * @name differenceInCalendarMonths
- * @category Month Helpers
- * @summary Get the number of calendar months between the given dates.
- *
- * @description
- * Get the number of calendar months between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of calendar months
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many calendar months are between 31 January 2014 and 1 September 2014?
- * const result = differenceInCalendarMonths(
- * new Date(2014, 8, 1),
- * new Date(2014, 0, 31)
- * )
- * //=> 8
- */
-
- function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var dateLeft = toDate(dirtyDateLeft);
- var dateRight = toDate(dirtyDateRight);
- var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();
- var monthDiff = dateLeft.getMonth() - dateRight.getMonth();
- return yearDiff * 12 + monthDiff;
- }
-
- /**
- * @name differenceInCalendarYears
- * @category Year Helpers
- * @summary Get the number of calendar years between the given dates.
- *
- * @description
- * Get the number of calendar years between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of calendar years
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many calendar years are between 31 December 2013 and 11 February 2015?
- * const result = differenceInCalendarYears(
- * new Date(2015, 1, 11),
- * new Date(2013, 11, 31)
- * )
- * //=> 2
- */
-
- function differenceInCalendarYears(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var dateLeft = toDate(dirtyDateLeft);
- var dateRight = toDate(dirtyDateRight);
- return dateLeft.getFullYear() - dateRight.getFullYear();
- }
-
- // for accurate equality comparisons of UTC timestamps that end up
- // having the same representation in local time, e.g. one hour before
- // DST ends vs. the instant that DST ends.
-
- function compareLocalAsc(dateLeft, dateRight) {
- var diff = dateLeft.getFullYear() - dateRight.getFullYear() || dateLeft.getMonth() - dateRight.getMonth() || dateLeft.getDate() - dateRight.getDate() || dateLeft.getHours() - dateRight.getHours() || dateLeft.getMinutes() - dateRight.getMinutes() || dateLeft.getSeconds() - dateRight.getSeconds() || dateLeft.getMilliseconds() - dateRight.getMilliseconds();
-
- if (diff < 0) {
- return -1;
- } else if (diff > 0) {
- return 1; // Return 0 if diff is 0; return NaN if diff is NaN
- } else {
- return diff;
- }
- }
- /**
- * @name differenceInDays
- * @category Day Helpers
- * @summary Get the number of full days between the given dates.
- *
- * @description
- * Get the number of full day periods between two dates. Fractional days are
- * truncated towards zero.
- *
- * One "full day" is the distance between a local time in one day to the same
- * local time on the next or previous day. A full day can sometimes be less than
- * or more than 24 hours if a daylight savings change happens between two dates.
- *
- * To ignore DST and only measure exact 24-hour periods, use this instead:
- * `Math.floor(differenceInHours(dateLeft, dateRight)/24)|0`.
- *
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of full days according to the local timezone
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many full days are between
- * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
- * const result = differenceInDays(
- * new Date(2012, 6, 2, 0, 0),
- * new Date(2011, 6, 2, 23, 0)
- * )
- * //=> 365
- * // How many full days are between
- * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
- * const result = differenceInDays(
- * new Date(2011, 6, 3, 0, 1),
- * new Date(2011, 6, 2, 23, 59)
- * )
- * //=> 0
- * // How many full days are between
- * // 1 March 2020 0:00 and 1 June 2020 0:00 ?
- * // Note: because local time is used, the
- * // result will always be 92 days, even in
- * // time zones where DST starts and the
- * // period has only 92*24-1 hours.
- * const result = differenceInDays(
- * new Date(2020, 5, 1),
- * new Date(2020, 2, 1)
- * )
- //=> 92
- */
-
-
- function differenceInDays(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var dateLeft = toDate(dirtyDateLeft);
- var dateRight = toDate(dirtyDateRight);
- var sign = compareLocalAsc(dateLeft, dateRight);
- var difference = Math.abs(differenceInCalendarDays(dateLeft, dateRight));
- dateLeft.setDate(dateLeft.getDate() - sign * difference); // Math.abs(diff in full days - diff in calendar days) === 1 if last calendar day is not full
- // If so, result must be decreased by 1 in absolute value
-
- var isLastDayNotFull = Number(compareLocalAsc(dateLeft, dateRight) === -sign);
- var result = sign * (difference - isLastDayNotFull); // Prevent negative zero
-
- return result === 0 ? 0 : result;
- }
-
- /**
- * @name differenceInMilliseconds
- * @category Millisecond Helpers
- * @summary Get the number of milliseconds between the given dates.
- *
- * @description
- * Get the number of milliseconds between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of milliseconds
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many milliseconds are between
- * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?
- * const result = differenceInMilliseconds(
- * new Date(2014, 6, 2, 12, 30, 21, 700),
- * new Date(2014, 6, 2, 12, 30, 20, 600)
- * )
- * //=> 1100
- */
-
- function differenceInMilliseconds(dateLeft, dateRight) {
- requiredArgs(2, arguments);
- return toDate(dateLeft).getTime() - toDate(dateRight).getTime();
- }
-
- var roundingMap = {
- ceil: Math.ceil,
- round: Math.round,
- floor: Math.floor,
- trunc: function trunc(value) {
- return value < 0 ? Math.ceil(value) : Math.floor(value);
- } // Math.trunc is not supported by IE
-
- };
- var defaultRoundingMethod = 'trunc';
- function getRoundingMethod(method) {
- return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];
- }
-
- /**
- * @name differenceInHours
- * @category Hour Helpers
- * @summary Get the number of hours between the given dates.
- *
- * @description
- * Get the number of hours between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @param {Object} [options] - an object with options.
- * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)
- * @returns {Number} the number of hours
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00?
- * const result = differenceInHours(
- * new Date(2014, 6, 2, 19, 0),
- * new Date(2014, 6, 2, 6, 50)
- * )
- * //=> 12
- */
-
- function differenceInHours(dateLeft, dateRight, options) {
- requiredArgs(2, arguments);
- var diff = differenceInMilliseconds(dateLeft, dateRight) / millisecondsInHour;
- return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
- }
-
- /**
- * @name differenceInMinutes
- * @category Minute Helpers
- * @summary Get the number of minutes between the given dates.
- *
- * @description
- * Get the signed number of full (rounded towards 0) minutes between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @param {Object} [options] - an object with options.
- * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)
- * @returns {Number} the number of minutes
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00?
- * const result = differenceInMinutes(
- * new Date(2014, 6, 2, 12, 20, 0),
- * new Date(2014, 6, 2, 12, 7, 59)
- * )
- * //=> 12
- *
- * @example
- * // How many minutes are between 10:01:59 and 10:00:00
- * const result = differenceInMinutes(
- * new Date(2000, 0, 1, 10, 0, 0),
- * new Date(2000, 0, 1, 10, 1, 59)
- * )
- * //=> -1
- */
-
- function differenceInMinutes(dateLeft, dateRight, options) {
- requiredArgs(2, arguments);
- var diff = differenceInMilliseconds(dateLeft, dateRight) / millisecondsInMinute;
- return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
- }
-
- /**
- * @name endOfDay
- * @category Day Helpers
- * @summary Return the end of a day for the given date.
- *
- * @description
- * Return the end of a day for the given date.
- * The result will be in the local timezone.
- *
- * @param {Date|Number} date - the original date
- * @returns {Date} the end of a day
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // The end of a day for 2 September 2014 11:55:00:
- * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))
- * //=> Tue Sep 02 2014 23:59:59.999
- */
-
- function endOfDay(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- date.setHours(23, 59, 59, 999);
- return date;
- }
-
- /**
- * @name endOfMonth
- * @category Month Helpers
- * @summary Return the end of a month for the given date.
- *
- * @description
- * Return the end of a month for the given date.
- * The result will be in the local timezone.
- *
- * @param {Date|Number} date - the original date
- * @returns {Date} the end of a month
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // The end of a month for 2 September 2014 11:55:00:
- * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
- * //=> Tue Sep 30 2014 23:59:59.999
- */
-
- function endOfMonth(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var month = date.getMonth();
- date.setFullYear(date.getFullYear(), month + 1, 0);
- date.setHours(23, 59, 59, 999);
- return date;
- }
-
- /**
- * @name isLastDayOfMonth
- * @category Month Helpers
- * @summary Is the given date the last day of a month?
- *
- * @description
- * Is the given date the last day of a month?
- *
- * @param {Date|Number} date - the date to check
- * @returns {Boolean} the date is the last day of a month
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // Is 28 February 2014 the last day of a month?
- * const result = isLastDayOfMonth(new Date(2014, 1, 28))
- * //=> true
- */
-
- function isLastDayOfMonth(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- return endOfDay(date).getTime() === endOfMonth(date).getTime();
- }
-
- /**
- * @name differenceInMonths
- * @category Month Helpers
- * @summary Get the number of full months between the given dates.
- *
- * @description
- * Get the number of full months between the given dates using trunc as a default rounding method.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of full months
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many full months are between 31 January 2014 and 1 September 2014?
- * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))
- * //=> 7
- */
-
- function differenceInMonths(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var dateLeft = toDate(dirtyDateLeft);
- var dateRight = toDate(dirtyDateRight);
- var sign = compareAsc(dateLeft, dateRight);
- var difference = Math.abs(differenceInCalendarMonths(dateLeft, dateRight));
- var result; // Check for the difference of less than month
-
- if (difference < 1) {
- result = 0;
- } else {
- if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) {
- // This will check if the date is end of Feb and assign a higher end of month date
- // to compare it with Jan
- dateLeft.setDate(30);
- }
-
- dateLeft.setMonth(dateLeft.getMonth() - sign * difference); // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full
- // If so, result must be decreased by 1 in absolute value
-
- var isLastMonthNotFull = compareAsc(dateLeft, dateRight) === -sign; // Check for cases of one full calendar month
-
- if (isLastDayOfMonth(toDate(dirtyDateLeft)) && difference === 1 && compareAsc(dirtyDateLeft, dateRight) === 1) {
- isLastMonthNotFull = false;
- }
-
- result = sign * (difference - Number(isLastMonthNotFull));
- } // Prevent negative zero
-
-
- return result === 0 ? 0 : result;
- }
-
- /**
- * @name differenceInSeconds
- * @category Second Helpers
- * @summary Get the number of seconds between the given dates.
- *
- * @description
- * Get the number of seconds between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @param {Object} [options] - an object with options.
- * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)
- * @returns {Number} the number of seconds
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many seconds are between
- * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?
- * const result = differenceInSeconds(
- * new Date(2014, 6, 2, 12, 30, 20, 0),
- * new Date(2014, 6, 2, 12, 30, 7, 999)
- * )
- * //=> 12
- */
-
- function differenceInSeconds(dateLeft, dateRight, options) {
- requiredArgs(2, arguments);
- var diff = differenceInMilliseconds(dateLeft, dateRight) / 1000;
- return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
- }
-
- /**
- * @name differenceInYears
- * @category Year Helpers
- * @summary Get the number of full years between the given dates.
- *
- * @description
- * Get the number of full years between the given dates.
- *
- * @param {Date|Number} dateLeft - the later date
- * @param {Date|Number} dateRight - the earlier date
- * @returns {Number} the number of full years
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // How many full years are between 31 December 2013 and 11 February 2015?
- * const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31))
- * //=> 1
- */
-
- function differenceInYears(dirtyDateLeft, dirtyDateRight) {
- requiredArgs(2, arguments);
- var dateLeft = toDate(dirtyDateLeft);
- var dateRight = toDate(dirtyDateRight);
- var sign = compareAsc(dateLeft, dateRight);
- var difference = Math.abs(differenceInCalendarYears(dateLeft, dateRight)); // Set both dates to a valid leap year for accurate comparison when dealing
- // with leap days
-
- dateLeft.setFullYear(1584);
- dateRight.setFullYear(1584); // Math.abs(diff in full years - diff in calendar years) === 1 if last calendar year is not full
- // If so, result must be decreased by 1 in absolute value
-
- var isLastYearNotFull = compareAsc(dateLeft, dateRight) === -sign;
- var result = sign * (difference - Number(isLastYearNotFull)); // Prevent negative zero
-
- return result === 0 ? 0 : result;
- }
-
- /**
- * @name subMilliseconds
- * @category Millisecond Helpers
- * @summary Subtract the specified number of milliseconds from the given date.
- *
- * @description
- * Subtract the specified number of milliseconds from the given date.
- *
- * @param {Date|Number} date - the date to be changed
- * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
- * @returns {Date} the new date with the milliseconds subtracted
- * @throws {TypeError} 2 arguments required
- *
- * @example
- * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
- * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
- * //=> Thu Jul 10 2014 12:45:29.250
- */
-
- function subMilliseconds(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var amount = toInteger(dirtyAmount);
- return addMilliseconds(dirtyDate, -amount);
- }
-
- var MILLISECONDS_IN_DAY = 86400000;
- function getUTCDayOfYear(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var timestamp = date.getTime();
- date.setUTCMonth(0, 1);
- date.setUTCHours(0, 0, 0, 0);
- var startOfYearTimestamp = date.getTime();
- var difference = timestamp - startOfYearTimestamp;
- return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
- }
-
- function startOfUTCISOWeek(dirtyDate) {
- requiredArgs(1, arguments);
- var weekStartsOn = 1;
- var date = toDate(dirtyDate);
- var day = date.getUTCDay();
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
- date.setUTCDate(date.getUTCDate() - diff);
- date.setUTCHours(0, 0, 0, 0);
- return date;
- }
-
- function getUTCISOWeekYear(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var year = date.getUTCFullYear();
- var fourthOfJanuaryOfNextYear = new Date(0);
- fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
- fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
- var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);
- var fourthOfJanuaryOfThisYear = new Date(0);
- fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
- fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
- var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
-
- if (date.getTime() >= startOfNextYear.getTime()) {
- return year + 1;
- } else if (date.getTime() >= startOfThisYear.getTime()) {
- return year;
- } else {
- return year - 1;
- }
- }
-
- function startOfUTCISOWeekYear(dirtyDate) {
- requiredArgs(1, arguments);
- var year = getUTCISOWeekYear(dirtyDate);
- var fourthOfJanuary = new Date(0);
- fourthOfJanuary.setUTCFullYear(year, 0, 4);
- fourthOfJanuary.setUTCHours(0, 0, 0, 0);
- var date = startOfUTCISOWeek(fourthOfJanuary);
- return date;
- }
-
- var MILLISECONDS_IN_WEEK$1 = 604800000;
- function getUTCISOWeek(dirtyDate) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer
- // because the number of milliseconds in a week is not constant
- // (e.g. it's different in the week of the daylight saving time clock shift)
-
- return Math.round(diff / MILLISECONDS_IN_WEEK$1) + 1;
- }
-
- function startOfUTCWeek(dirtyDate, options) {
- var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
-
- requiredArgs(1, arguments);
- var defaultOptions = getDefaultOptions();
- var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
-
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- }
-
- var date = toDate(dirtyDate);
- var day = date.getUTCDay();
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
- date.setUTCDate(date.getUTCDate() - diff);
- date.setUTCHours(0, 0, 0, 0);
- return date;
- }
-
- function getUTCWeekYear(dirtyDate, options) {
- var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
-
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var year = date.getUTCFullYear();
- var defaultOptions = getDefaultOptions();
- var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
-
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
- }
-
- var firstWeekOfNextYear = new Date(0);
- firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
- firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
- var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);
- var firstWeekOfThisYear = new Date(0);
- firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
- firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
- var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
-
- if (date.getTime() >= startOfNextYear.getTime()) {
- return year + 1;
- } else if (date.getTime() >= startOfThisYear.getTime()) {
- return year;
- } else {
- return year - 1;
- }
- }
-
- function startOfUTCWeekYear(dirtyDate, options) {
- var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
-
- requiredArgs(1, arguments);
- var defaultOptions = getDefaultOptions();
- var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
- var year = getUTCWeekYear(dirtyDate, options);
- var firstWeek = new Date(0);
- firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
- firstWeek.setUTCHours(0, 0, 0, 0);
- var date = startOfUTCWeek(firstWeek, options);
- return date;
- }
-
- var MILLISECONDS_IN_WEEK = 604800000;
- function getUTCWeek(dirtyDate, options) {
- requiredArgs(1, arguments);
- var date = toDate(dirtyDate);
- var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer
- // because the number of milliseconds in a week is not constant
- // (e.g. it's different in the week of the daylight saving time clock shift)
-
- return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
- }
-
- function addLeadingZeros(number, targetLength) {
- var sign = number < 0 ? '-' : '';
- var output = Math.abs(number).toString();
-
- while (output.length < targetLength) {
- output = '0' + output;
- }
-
- return sign + output;
- }
-
- /*
- * | | Unit | | Unit |
- * |-----|--------------------------------|-----|--------------------------------|
- * | a | AM, PM | A* | |
- * | d | Day of month | D | |
- * | h | Hour [1-12] | H | Hour [0-23] |
- * | m | Minute | M | Month |
- * | s | Second | S | Fraction of second |
- * | y | Year (abs) | Y | |
- *
- * Letters marked by * are not implemented but reserved by Unicode standard.
- */
-
- var formatters$2 = {
- // Year
- y: function y(date, token) {
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
- // | Year | y | yy | yyy | yyyy | yyyyy |
- // |----------|-------|----|-------|-------|-------|
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
-
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
- return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
- },
- // Month
- M: function M(date, token) {
- var month = date.getUTCMonth();
- return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
- },
- // Day of the month
- d: function d(date, token) {
- return addLeadingZeros(date.getUTCDate(), token.length);
- },
- // AM or PM
- a: function a(date, token) {
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
-
- switch (token) {
- case 'a':
- case 'aa':
- return dayPeriodEnumValue.toUpperCase();
-
- case 'aaa':
- return dayPeriodEnumValue;
-
- case 'aaaaa':
- return dayPeriodEnumValue[0];
-
- case 'aaaa':
- default:
- return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
- }
- },
- // Hour [1-12]
- h: function h(date, token) {
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
- },
- // Hour [0-23]
- H: function H(date, token) {
- return addLeadingZeros(date.getUTCHours(), token.length);
- },
- // Minute
- m: function m(date, token) {
- return addLeadingZeros(date.getUTCMinutes(), token.length);
- },
- // Second
- s: function s(date, token) {
- return addLeadingZeros(date.getUTCSeconds(), token.length);
- },
- // Fraction of second
- S: function S(date, token) {
- var numberOfDigits = token.length;
- var milliseconds = date.getUTCMilliseconds();
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
- return addLeadingZeros(fractionalSeconds, token.length);
- }
- };
- var formatters$3 = formatters$2;
-
- var dayPeriodEnum = {
- am: 'am',
- pm: 'pm',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- };
-
- /*
- * | | Unit | | Unit |
- * |-----|--------------------------------|-----|--------------------------------|
- * | a | AM, PM | A* | Milliseconds in day |
- * | b | AM, PM, noon, midnight | B | Flexible day period |
- * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
- * | d | Day of month | D | Day of year |
- * | e | Local day of week | E | Day of week |
- * | f | | F* | Day of week in month |
- * | g* | Modified Julian day | G | Era |
- * | h | Hour [1-12] | H | Hour [0-23] |
- * | i! | ISO day of week | I! | ISO week of year |
- * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
- * | k | Hour [1-24] | K | Hour [0-11] |
- * | l* | (deprecated) | L | Stand-alone month |
- * | m | Minute | M | Month |
- * | n | | N | |
- * | o! | Ordinal number modifier | O | Timezone (GMT) |
- * | p! | Long localized time | P! | Long localized date |
- * | q | Stand-alone quarter | Q | Quarter |
- * | r* | Related Gregorian year | R! | ISO week-numbering year |
- * | s | Second | S | Fraction of second |
- * | t! | Seconds timestamp | T! | Milliseconds timestamp |
- * | u | Extended year | U* | Cyclic year |
- * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
- * | w | Local week of year | W* | Week of month |
- * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
- * | y | Year (abs) | Y | Local week-numbering year |
- * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
- *
- * Letters marked by * are not implemented but reserved by Unicode standard.
- *
- * Letters marked by ! are non-standard, but implemented by date-fns:
- * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
- * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
- * i.e. 7 for Sunday, 1 for Monday, etc.
- * - `I` is ISO week of year, as opposed to `w` which is local week of year.
- * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
- * `R` is supposed to be used in conjunction with `I` and `i`
- * for universal ISO week-numbering date, whereas
- * `Y` is supposed to be used in conjunction with `w` and `e`
- * for week-numbering date specific to the locale.
- * - `P` is long localized date format
- * - `p` is long localized time format
- */
- var formatters = {
- // Era
- G: function G(date, token, localize) {
- var era = date.getUTCFullYear() > 0 ? 1 : 0;
-
- switch (token) {
- // AD, BC
- case 'G':
- case 'GG':
- case 'GGG':
- return localize.era(era, {
- width: 'abbreviated'
- });
- // A, B
-
- case 'GGGGG':
- return localize.era(era, {
- width: 'narrow'
- });
- // Anno Domini, Before Christ
-
- case 'GGGG':
- default:
- return localize.era(era, {
- width: 'wide'
- });
- }
- },
- // Year
- y: function y(date, token, localize) {
- // Ordinal number
- if (token === 'yo') {
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
-
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
- return localize.ordinalNumber(year, {
- unit: 'year'
- });
- }
-
- return formatters$3.y(date, token);
- },
- // Local week-numbering year
- Y: function Y(date, token, localize, options) {
- var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
-
- var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
-
- if (token === 'YY') {
- var twoDigitYear = weekYear % 100;
- return addLeadingZeros(twoDigitYear, 2);
- } // Ordinal number
-
-
- if (token === 'Yo') {
- return localize.ordinalNumber(weekYear, {
- unit: 'year'
- });
- } // Padding
-
-
- return addLeadingZeros(weekYear, token.length);
- },
- // ISO week-numbering year
- R: function R(date, token) {
- var isoWeekYear = getUTCISOWeekYear(date); // Padding
-
- return addLeadingZeros(isoWeekYear, token.length);
- },
- // Extended year. This is a single number designating the year of this calendar system.
- // The main difference between `y` and `u` localizers are B.C. years:
- // | Year | `y` | `u` |
- // |------|-----|-----|
- // | AC 1 | 1 | 1 |
- // | BC 1 | 1 | 0 |
- // | BC 2 | 2 | -1 |
- // Also `yy` always returns the last two digits of a year,
- // while `uu` pads single digit years to 2 characters and returns other years unchanged.
- u: function u(date, token) {
- var year = date.getUTCFullYear();
- return addLeadingZeros(year, token.length);
- },
- // Quarter
- Q: function Q(date, token, localize) {
- var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
-
- switch (token) {
- // 1, 2, 3, 4
- case 'Q':
- return String(quarter);
- // 01, 02, 03, 04
-
- case 'QQ':
- return addLeadingZeros(quarter, 2);
- // 1st, 2nd, 3rd, 4th
-
- case 'Qo':
- return localize.ordinalNumber(quarter, {
- unit: 'quarter'
- });
- // Q1, Q2, Q3, Q4
-
- case 'QQQ':
- return localize.quarter(quarter, {
- width: 'abbreviated',
- context: 'formatting'
- });
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
-
- case 'QQQQQ':
- return localize.quarter(quarter, {
- width: 'narrow',
- context: 'formatting'
- });
- // 1st quarter, 2nd quarter, ...
-
- case 'QQQQ':
- default:
- return localize.quarter(quarter, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // Stand-alone quarter
- q: function q(date, token, localize) {
- var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
-
- switch (token) {
- // 1, 2, 3, 4
- case 'q':
- return String(quarter);
- // 01, 02, 03, 04
-
- case 'qq':
- return addLeadingZeros(quarter, 2);
- // 1st, 2nd, 3rd, 4th
-
- case 'qo':
- return localize.ordinalNumber(quarter, {
- unit: 'quarter'
- });
- // Q1, Q2, Q3, Q4
-
- case 'qqq':
- return localize.quarter(quarter, {
- width: 'abbreviated',
- context: 'standalone'
- });
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
-
- case 'qqqqq':
- return localize.quarter(quarter, {
- width: 'narrow',
- context: 'standalone'
- });
- // 1st quarter, 2nd quarter, ...
-
- case 'qqqq':
- default:
- return localize.quarter(quarter, {
- width: 'wide',
- context: 'standalone'
- });
- }
- },
- // Month
- M: function M(date, token, localize) {
- var month = date.getUTCMonth();
-
- switch (token) {
- case 'M':
- case 'MM':
- return formatters$3.M(date, token);
- // 1st, 2nd, ..., 12th
-
- case 'Mo':
- return localize.ordinalNumber(month + 1, {
- unit: 'month'
- });
- // Jan, Feb, ..., Dec
-
- case 'MMM':
- return localize.month(month, {
- width: 'abbreviated',
- context: 'formatting'
- });
- // J, F, ..., D
-
- case 'MMMMM':
- return localize.month(month, {
- width: 'narrow',
- context: 'formatting'
- });
- // January, February, ..., December
-
- case 'MMMM':
- default:
- return localize.month(month, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // Stand-alone month
- L: function L(date, token, localize) {
- var month = date.getUTCMonth();
-
- switch (token) {
- // 1, 2, ..., 12
- case 'L':
- return String(month + 1);
- // 01, 02, ..., 12
-
- case 'LL':
- return addLeadingZeros(month + 1, 2);
- // 1st, 2nd, ..., 12th
-
- case 'Lo':
- return localize.ordinalNumber(month + 1, {
- unit: 'month'
- });
- // Jan, Feb, ..., Dec
-
- case 'LLL':
- return localize.month(month, {
- width: 'abbreviated',
- context: 'standalone'
- });
- // J, F, ..., D
-
- case 'LLLLL':
- return localize.month(month, {
- width: 'narrow',
- context: 'standalone'
- });
- // January, February, ..., December
-
- case 'LLLL':
- default:
- return localize.month(month, {
- width: 'wide',
- context: 'standalone'
- });
- }
- },
- // Local week of year
- w: function w(date, token, localize, options) {
- var week = getUTCWeek(date, options);
-
- if (token === 'wo') {
- return localize.ordinalNumber(week, {
- unit: 'week'
- });
- }
-
- return addLeadingZeros(week, token.length);
- },
- // ISO week of year
- I: function I(date, token, localize) {
- var isoWeek = getUTCISOWeek(date);
-
- if (token === 'Io') {
- return localize.ordinalNumber(isoWeek, {
- unit: 'week'
- });
- }
-
- return addLeadingZeros(isoWeek, token.length);
- },
- // Day of the month
- d: function d(date, token, localize) {
- if (token === 'do') {
- return localize.ordinalNumber(date.getUTCDate(), {
- unit: 'date'
- });
- }
-
- return formatters$3.d(date, token);
- },
- // Day of year
- D: function D(date, token, localize) {
- var dayOfYear = getUTCDayOfYear(date);
-
- if (token === 'Do') {
- return localize.ordinalNumber(dayOfYear, {
- unit: 'dayOfYear'
- });
- }
-
- return addLeadingZeros(dayOfYear, token.length);
- },
- // Day of week
- E: function E(date, token, localize) {
- var dayOfWeek = date.getUTCDay();
-
- switch (token) {
- // Tue
- case 'E':
- case 'EE':
- case 'EEE':
- return localize.day(dayOfWeek, {
- width: 'abbreviated',
- context: 'formatting'
- });
- // T
-
- case 'EEEEE':
- return localize.day(dayOfWeek, {
- width: 'narrow',
- context: 'formatting'
- });
- // Tu
-
- case 'EEEEEE':
- return localize.day(dayOfWeek, {
- width: 'short',
- context: 'formatting'
- });
- // Tuesday
-
- case 'EEEE':
- default:
- return localize.day(dayOfWeek, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // Local day of week
- e: function e(date, token, localize, options) {
- var dayOfWeek = date.getUTCDay();
- var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
-
- switch (token) {
- // Numerical value (Nth day of week with current locale or weekStartsOn)
- case 'e':
- return String(localDayOfWeek);
- // Padded numerical value
-
- case 'ee':
- return addLeadingZeros(localDayOfWeek, 2);
- // 1st, 2nd, ..., 7th
-
- case 'eo':
- return localize.ordinalNumber(localDayOfWeek, {
- unit: 'day'
- });
-
- case 'eee':
- return localize.day(dayOfWeek, {
- width: 'abbreviated',
- context: 'formatting'
- });
- // T
-
- case 'eeeee':
- return localize.day(dayOfWeek, {
- width: 'narrow',
- context: 'formatting'
- });
- // Tu
-
- case 'eeeeee':
- return localize.day(dayOfWeek, {
- width: 'short',
- context: 'formatting'
- });
- // Tuesday
-
- case 'eeee':
- default:
- return localize.day(dayOfWeek, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // Stand-alone local day of week
- c: function c(date, token, localize, options) {
- var dayOfWeek = date.getUTCDay();
- var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
-
- switch (token) {
- // Numerical value (same as in `e`)
- case 'c':
- return String(localDayOfWeek);
- // Padded numerical value
-
- case 'cc':
- return addLeadingZeros(localDayOfWeek, token.length);
- // 1st, 2nd, ..., 7th
-
- case 'co':
- return localize.ordinalNumber(localDayOfWeek, {
- unit: 'day'
- });
-
- case 'ccc':
- return localize.day(dayOfWeek, {
- width: 'abbreviated',
- context: 'standalone'
- });
- // T
-
- case 'ccccc':
- return localize.day(dayOfWeek, {
- width: 'narrow',
- context: 'standalone'
- });
- // Tu
-
- case 'cccccc':
- return localize.day(dayOfWeek, {
- width: 'short',
- context: 'standalone'
- });
- // Tuesday
-
- case 'cccc':
- default:
- return localize.day(dayOfWeek, {
- width: 'wide',
- context: 'standalone'
- });
- }
- },
- // ISO day of week
- i: function i(date, token, localize) {
- var dayOfWeek = date.getUTCDay();
- var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
-
- switch (token) {
- // 2
- case 'i':
- return String(isoDayOfWeek);
- // 02
-
- case 'ii':
- return addLeadingZeros(isoDayOfWeek, token.length);
- // 2nd
-
- case 'io':
- return localize.ordinalNumber(isoDayOfWeek, {
- unit: 'day'
- });
- // Tue
-
- case 'iii':
- return localize.day(dayOfWeek, {
- width: 'abbreviated',
- context: 'formatting'
- });
- // T
-
- case 'iiiii':
- return localize.day(dayOfWeek, {
- width: 'narrow',
- context: 'formatting'
- });
- // Tu
-
- case 'iiiiii':
- return localize.day(dayOfWeek, {
- width: 'short',
- context: 'formatting'
- });
- // Tuesday
-
- case 'iiii':
- default:
- return localize.day(dayOfWeek, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // AM or PM
- a: function a(date, token, localize) {
- var hours = date.getUTCHours();
- var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
-
- switch (token) {
- case 'a':
- case 'aa':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
- });
-
- case 'aaa':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
- }).toLowerCase();
-
- case 'aaaaa':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'narrow',
- context: 'formatting'
- });
-
- case 'aaaa':
- default:
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // AM, PM, midnight, noon
- b: function b(date, token, localize) {
- var hours = date.getUTCHours();
- var dayPeriodEnumValue;
-
- if (hours === 12) {
- dayPeriodEnumValue = dayPeriodEnum.noon;
- } else if (hours === 0) {
- dayPeriodEnumValue = dayPeriodEnum.midnight;
- } else {
- dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
- }
-
- switch (token) {
- case 'b':
- case 'bb':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
- });
-
- case 'bbb':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
- }).toLowerCase();
-
- case 'bbbbb':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'narrow',
- context: 'formatting'
- });
-
- case 'bbbb':
- default:
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // in the morning, in the afternoon, in the evening, at night
- B: function B(date, token, localize) {
- var hours = date.getUTCHours();
- var dayPeriodEnumValue;
-
- if (hours >= 17) {
- dayPeriodEnumValue = dayPeriodEnum.evening;
- } else if (hours >= 12) {
- dayPeriodEnumValue = dayPeriodEnum.afternoon;
- } else if (hours >= 4) {
- dayPeriodEnumValue = dayPeriodEnum.morning;
- } else {
- dayPeriodEnumValue = dayPeriodEnum.night;
- }
-
- switch (token) {
- case 'B':
- case 'BB':
- case 'BBB':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'abbreviated',
- context: 'formatting'
- });
-
- case 'BBBBB':
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'narrow',
- context: 'formatting'
- });
-
- case 'BBBB':
- default:
- return localize.dayPeriod(dayPeriodEnumValue, {
- width: 'wide',
- context: 'formatting'
- });
- }
- },
- // Hour [1-12]
- h: function h(date, token, localize) {
- if (token === 'ho') {
- var hours = date.getUTCHours() % 12;
- if (hours === 0) hours = 12;
- return localize.ordinalNumber(hours, {
- unit: 'hour'
- });
- }
-
- return formatters$3.h(date, token);
- },
- // Hour [0-23]
- H: function H(date, token, localize) {
- if (token === 'Ho') {
- return localize.ordinalNumber(date.getUTCHours(), {
- unit: 'hour'
- });
- }
-
- return formatters$3.H(date, token);
- },
- // Hour [0-11]
- K: function K(date, token, localize) {
- var hours = date.getUTCHours() % 12;
-
- if (token === 'Ko') {
- return localize.ordinalNumber(hours, {
- unit: 'hour'
- });
- }
-
- return addLeadingZeros(hours, token.length);
- },
- // Hour [1-24]
- k: function k(date, token, localize) {
- var hours = date.getUTCHours();
- if (hours === 0) hours = 24;
-
- if (token === 'ko') {
- return localize.ordinalNumber(hours, {
- unit: 'hour'
- });
- }
-
- return addLeadingZeros(hours, token.length);
- },
- // Minute
- m: function m(date, token, localize) {
- if (token === 'mo') {
- return localize.ordinalNumber(date.getUTCMinutes(), {
- unit: 'minute'
- });
- }
-
- return formatters$3.m(date, token);
- },
- // Second
- s: function s(date, token, localize) {
- if (token === 'so') {
- return localize.ordinalNumber(date.getUTCSeconds(), {
- unit: 'second'
- });
- }
-
- return formatters$3.s(date, token);
- },
- // Fraction of second
- S: function S(date, token) {
- return formatters$3.S(date, token);
- },
- // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
- X: function X(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timezoneOffset = originalDate.getTimezoneOffset();
-
- if (timezoneOffset === 0) {
- return 'Z';
- }
-
- switch (token) {
- // Hours and optional minutes
- case 'X':
- return formatTimezoneWithOptionalMinutes(timezoneOffset);
- // Hours, minutes and optional seconds without `:` delimiter
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
- // so this token always has the same output as `XX`
-
- case 'XXXX':
- case 'XX':
- // Hours and minutes without `:` delimiter
- return formatTimezone(timezoneOffset);
- // Hours, minutes and optional seconds with `:` delimiter
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
- // so this token always has the same output as `XXX`
-
- case 'XXXXX':
- case 'XXX': // Hours and minutes with `:` delimiter
-
- default:
- return formatTimezone(timezoneOffset, ':');
- }
- },
- // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
- x: function x(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timezoneOffset = originalDate.getTimezoneOffset();
-
- switch (token) {
- // Hours and optional minutes
- case 'x':
- return formatTimezoneWithOptionalMinutes(timezoneOffset);
- // Hours, minutes and optional seconds without `:` delimiter
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
- // so this token always has the same output as `xx`
-
- case 'xxxx':
- case 'xx':
- // Hours and minutes without `:` delimiter
- return formatTimezone(timezoneOffset);
- // Hours, minutes and optional seconds with `:` delimiter
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
- // so this token always has the same output as `xxx`
-
- case 'xxxxx':
- case 'xxx': // Hours and minutes with `:` delimiter
-
- default:
- return formatTimezone(timezoneOffset, ':');
- }
- },
- // Timezone (GMT)
- O: function O(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timezoneOffset = originalDate.getTimezoneOffset();
-
- switch (token) {
- // Short
- case 'O':
- case 'OO':
- case 'OOO':
- return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
- // Long
-
- case 'OOOO':
- default:
- return 'GMT' + formatTimezone(timezoneOffset, ':');
- }
- },
- // Timezone (specific non-location)
- z: function z(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timezoneOffset = originalDate.getTimezoneOffset();
-
- switch (token) {
- // Short
- case 'z':
- case 'zz':
- case 'zzz':
- return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
- // Long
-
- case 'zzzz':
- default:
- return 'GMT' + formatTimezone(timezoneOffset, ':');
- }
- },
- // Seconds timestamp
- t: function t(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timestamp = Math.floor(originalDate.getTime() / 1000);
- return addLeadingZeros(timestamp, token.length);
- },
- // Milliseconds timestamp
- T: function T(date, token, _localize, options) {
- var originalDate = options._originalDate || date;
- var timestamp = originalDate.getTime();
- return addLeadingZeros(timestamp, token.length);
- }
- };
-
- function formatTimezoneShort(offset, dirtyDelimiter) {
- var sign = offset > 0 ? '-' : '+';
- var absOffset = Math.abs(offset);
- var hours = Math.floor(absOffset / 60);
- var minutes = absOffset % 60;
-
- if (minutes === 0) {
- return sign + String(hours);
- }
-
- var delimiter = dirtyDelimiter || '';
- return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
- }
-
- function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
- if (offset % 60 === 0) {
- var sign = offset > 0 ? '-' : '+';
- return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
- }
-
- return formatTimezone(offset, dirtyDelimiter);
- }
-
- function formatTimezone(offset, dirtyDelimiter) {
- var delimiter = dirtyDelimiter || '';
- var sign = offset > 0 ? '-' : '+';
- var absOffset = Math.abs(offset);
- var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);
- var minutes = addLeadingZeros(absOffset % 60, 2);
- return sign + hours + delimiter + minutes;
- }
-
- var formatters$1 = formatters;
-
- var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
- switch (pattern) {
- case 'P':
- return formatLong.date({
- width: 'short'
- });
-
- case 'PP':
- return formatLong.date({
- width: 'medium'
- });
-
- case 'PPP':
- return formatLong.date({
- width: 'long'
- });
-
- case 'PPPP':
- default:
- return formatLong.date({
- width: 'full'
- });
- }
- };
-
- var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
- switch (pattern) {
- case 'p':
- return formatLong.time({
- width: 'short'
- });
-
- case 'pp':
- return formatLong.time({
- width: 'medium'
- });
-
- case 'ppp':
- return formatLong.time({
- width: 'long'
- });
-
- case 'pppp':
- default:
- return formatLong.time({
- width: 'full'
- });
- }
- };
-
- var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
- var matchResult = pattern.match(/(P+)(p+)?/) || [];
- var datePattern = matchResult[1];
- var timePattern = matchResult[2];
-
- if (!timePattern) {
- return dateLongFormatter(pattern, formatLong);
- }
-
- var dateTimeFormat;
-
- switch (datePattern) {
- case 'P':
- dateTimeFormat = formatLong.dateTime({
- width: 'short'
- });
- break;
-
- case 'PP':
- dateTimeFormat = formatLong.dateTime({
- width: 'medium'
- });
- break;
-
- case 'PPP':
- dateTimeFormat = formatLong.dateTime({
- width: 'long'
- });
- break;
-
- case 'PPPP':
- default:
- dateTimeFormat = formatLong.dateTime({
- width: 'full'
- });
- break;
- }
-
- return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
- };
-
- var longFormatters = {
- p: timeLongFormatter,
- P: dateTimeLongFormatter
- };
- var longFormatters$1 = longFormatters;
-
- var protectedDayOfYearTokens = ['D', 'DD'];
- var protectedWeekYearTokens = ['YY', 'YYYY'];
- function isProtectedDayOfYearToken(token) {
- return protectedDayOfYearTokens.indexOf(token) !== -1;
- }
- function isProtectedWeekYearToken(token) {
- return protectedWeekYearTokens.indexOf(token) !== -1;
- }
- function throwProtectedError(token, format, input) {
- if (token === 'YYYY') {
- throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
- } else if (token === 'YY') {
- throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
- } else if (token === 'D') {
- throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
- } else if (token === 'DD') {
- throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
- }
- }
-
- var formatDistanceLocale = {
- lessThanXSeconds: {
- one: 'less than a second',
- other: 'less than {{count}} seconds'
- },
- xSeconds: {
- one: '1 second',
- other: '{{count}} seconds'
- },
- halfAMinute: 'half a minute',
- lessThanXMinutes: {
- one: 'less than a minute',
- other: 'less than {{count}} minutes'
- },
- xMinutes: {
- one: '1 minute',
- other: '{{count}} minutes'
- },
- aboutXHours: {
- one: 'about 1 hour',
- other: 'about {{count}} hours'
- },
- xHours: {
- one: '1 hour',
- other: '{{count}} hours'
- },
- xDays: {
- one: '1 day',
- other: '{{count}} days'
- },
- aboutXWeeks: {
- one: 'about 1 week',
- other: 'about {{count}} weeks'
- },
- xWeeks: {
- one: '1 week',
- other: '{{count}} weeks'
- },
- aboutXMonths: {
- one: 'about 1 month',
- other: 'about {{count}} months'
- },
- xMonths: {
- one: '1 month',
- other: '{{count}} months'
- },
- aboutXYears: {
- one: 'about 1 year',
- other: 'about {{count}} years'
- },
- xYears: {
- one: '1 year',
- other: '{{count}} years'
- },
- overXYears: {
- one: 'over 1 year',
- other: 'over {{count}} years'
- },
- almostXYears: {
- one: 'almost 1 year',
- other: 'almost {{count}} years'
- }
- };
-
- var formatDistance = function formatDistance(token, count, options) {
- var result;
- var tokenValue = formatDistanceLocale[token];
-
- if (typeof tokenValue === 'string') {
- result = tokenValue;
- } else if (count === 1) {
- result = tokenValue.one;
- } else {
- result = tokenValue.other.replace('{{count}}', count.toString());
- }
-
- if (options !== null && options !== void 0 && options.addSuffix) {
- if (options.comparison && options.comparison > 0) {
- return 'in ' + result;
- } else {
- return result + ' ago';
- }
- }
-
- return result;
- };
-
- var formatDistance$1 = formatDistance;
-
- function buildFormatLongFn(args) {
- return function () {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- // TODO: Remove String()
- var width = options.width ? String(options.width) : args.defaultWidth;
- var format = args.formats[width] || args.formats[args.defaultWidth];
- return format;
- };
- }
-
- var dateFormats = {
- full: 'EEEE, MMMM do, y',
- long: 'MMMM do, y',
- medium: 'MMM d, y',
- short: 'MM/dd/yyyy'
- };
- var timeFormats = {
- full: 'h:mm:ss a zzzz',
- long: 'h:mm:ss a z',
- medium: 'h:mm:ss a',
- short: 'h:mm a'
- };
- var dateTimeFormats = {
- full: "{{date}} 'at' {{time}}",
- long: "{{date}} 'at' {{time}}",
- medium: '{{date}}, {{time}}',
- short: '{{date}}, {{time}}'
- };
- var formatLong = {
- date: buildFormatLongFn({
- formats: dateFormats,
- defaultWidth: 'full'
- }),
- time: buildFormatLongFn({
- formats: timeFormats,
- defaultWidth: 'full'
- }),
- dateTime: buildFormatLongFn({
- formats: dateTimeFormats,
- defaultWidth: 'full'
- })
- };
- var formatLong$1 = formatLong;
-
- var formatRelativeLocale = {
- lastWeek: "'last' eeee 'at' p",
- yesterday: "'yesterday at' p",
- today: "'today at' p",
- tomorrow: "'tomorrow at' p",
- nextWeek: "eeee 'at' p",
- other: 'P'
- };
-
- var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
- return formatRelativeLocale[token];
- };
-
- var formatRelative$1 = formatRelative;
-
- function buildLocalizeFn(args) {
- return function (dirtyIndex, options) {
- var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
- var valuesArray;
-
- if (context === 'formatting' && args.formattingValues) {
- var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
- var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
- valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
- } else {
- var _defaultWidth = args.defaultWidth;
-
- var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
-
- valuesArray = args.values[_width] || args.values[_defaultWidth];
- }
-
- var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
-
- return valuesArray[index];
- };
- }
-
- var eraValues = {
- narrow: ['B', 'A'],
- abbreviated: ['BC', 'AD'],
- wide: ['Before Christ', 'Anno Domini']
- };
- var quarterValues = {
- narrow: ['1', '2', '3', '4'],
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
- }; // Note: in English, the names of days of the week and months are capitalized.
- // If you are making a new locale based on this one, check if the same is true for the language you're working on.
- // Generally, formatted dates should look like they are in the middle of a sentence,
- // e.g. in Spanish language the weekdays and months should be in the lowercase.
-
- var monthValues = {
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
- abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
- wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
- };
- var dayValues = {
- narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
- short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
- abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
- wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
- };
- var dayPeriodValues = {
- narrow: {
- am: 'a',
- pm: 'p',
- midnight: 'mi',
- noon: 'n',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- abbreviated: {
- am: 'AM',
- pm: 'PM',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- wide: {
- am: 'a.m.',
- pm: 'p.m.',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- }
- };
- var formattingDayPeriodValues = {
- narrow: {
- am: 'a',
- pm: 'p',
- midnight: 'mi',
- noon: 'n',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- },
- abbreviated: {
- am: 'AM',
- pm: 'PM',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- },
- wide: {
- am: 'a.m.',
- pm: 'p.m.',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- }
- };
-
- var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
- var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
- // if they are different for different grammatical genders,
- // use `options.unit`.
- //
- // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
- // 'day', 'hour', 'minute', 'second'.
-
- var rem100 = number % 100;
-
- if (rem100 > 20 || rem100 < 10) {
- switch (rem100 % 10) {
- case 1:
- return number + 'st';
-
- case 2:
- return number + 'nd';
-
- case 3:
- return number + 'rd';
- }
- }
-
- return number + 'th';
- };
-
- var localize = {
- ordinalNumber: ordinalNumber,
- era: buildLocalizeFn({
- values: eraValues,
- defaultWidth: 'wide'
- }),
- quarter: buildLocalizeFn({
- values: quarterValues,
- defaultWidth: 'wide',
- argumentCallback: function argumentCallback(quarter) {
- return quarter - 1;
- }
- }),
- month: buildLocalizeFn({
- values: monthValues,
- defaultWidth: 'wide'
- }),
- day: buildLocalizeFn({
- values: dayValues,
- defaultWidth: 'wide'
- }),
- dayPeriod: buildLocalizeFn({
- values: dayPeriodValues,
- defaultWidth: 'wide',
- formattingValues: formattingDayPeriodValues,
- defaultFormattingWidth: 'wide'
- })
- };
- var localize$1 = localize;
-
- function buildMatchFn(args) {
- return function (string) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var width = options.width;
- var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
- var matchResult = string.match(matchPattern);
-
- if (!matchResult) {
- return null;
- }
-
- var matchedString = matchResult[0];
- var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
- var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
- return pattern.test(matchedString);
- }) : findKey(parsePatterns, function (pattern) {
- return pattern.test(matchedString);
- });
- var value;
- value = args.valueCallback ? args.valueCallback(key) : key;
- value = options.valueCallback ? options.valueCallback(value) : value;
- var rest = string.slice(matchedString.length);
- return {
- value: value,
- rest: rest
- };
- };
- }
-
- function findKey(object, predicate) {
- for (var key in object) {
- if (object.hasOwnProperty(key) && predicate(object[key])) {
- return key;
- }
- }
-
- return undefined;
- }
-
- function findIndex(array, predicate) {
- for (var key = 0; key < array.length; key++) {
- if (predicate(array[key])) {
- return key;
- }
- }
-
- return undefined;
- }
-
- function buildMatchPatternFn(args) {
- return function (string) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var matchResult = string.match(args.matchPattern);
- if (!matchResult) return null;
- var matchedString = matchResult[0];
- var parseResult = string.match(args.parsePattern);
- if (!parseResult) return null;
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
- value = options.valueCallback ? options.valueCallback(value) : value;
- var rest = string.slice(matchedString.length);
- return {
- value: value,
- rest: rest
- };
- };
- }
-
- var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
- var parseOrdinalNumberPattern = /\d+/i;
- var matchEraPatterns = {
- narrow: /^(b|a)/i,
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
- wide: /^(before christ|before common era|anno domini|common era)/i
- };
- var parseEraPatterns = {
- any: [/^b/i, /^(a|c)/i]
- };
- var matchQuarterPatterns = {
- narrow: /^[1234]/i,
- abbreviated: /^q[1234]/i,
- wide: /^[1234](th|st|nd|rd)? quarter/i
- };
- var parseQuarterPatterns = {
- any: [/1/i, /2/i, /3/i, /4/i]
- };
- var matchMonthPatterns = {
- narrow: /^[jfmasond]/i,
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
- };
- var parseMonthPatterns = {
- narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
- any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
- };
- var matchDayPatterns = {
- narrow: /^[smtwf]/i,
- short: /^(su|mo|tu|we|th|fr|sa)/i,
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
- };
- var parseDayPatterns = {
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
- };
- var matchDayPeriodPatterns = {
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
- };
- var parseDayPeriodPatterns = {
- any: {
- am: /^a/i,
- pm: /^p/i,
- midnight: /^mi/i,
- noon: /^no/i,
- morning: /morning/i,
- afternoon: /afternoon/i,
- evening: /evening/i,
- night: /night/i
- }
- };
- var match = {
- ordinalNumber: buildMatchPatternFn({
- matchPattern: matchOrdinalNumberPattern,
- parsePattern: parseOrdinalNumberPattern,
- valueCallback: function valueCallback(value) {
- return parseInt(value, 10);
- }
- }),
- era: buildMatchFn({
- matchPatterns: matchEraPatterns,
- defaultMatchWidth: 'wide',
- parsePatterns: parseEraPatterns,
- defaultParseWidth: 'any'
- }),
- quarter: buildMatchFn({
- matchPatterns: matchQuarterPatterns,
- defaultMatchWidth: 'wide',
- parsePatterns: parseQuarterPatterns,
- defaultParseWidth: 'any',
- valueCallback: function valueCallback(index) {
- return index + 1;
- }
- }),
- month: buildMatchFn({
- matchPatterns: matchMonthPatterns,
- defaultMatchWidth: 'wide',
- parsePatterns: parseMonthPatterns,
- defaultParseWidth: 'any'
- }),
- day: buildMatchFn({
- matchPatterns: matchDayPatterns,
- defaultMatchWidth: 'wide',
- parsePatterns: parseDayPatterns,
- defaultParseWidth: 'any'
- }),
- dayPeriod: buildMatchFn({
- matchPatterns: matchDayPeriodPatterns,
- defaultMatchWidth: 'any',
- parsePatterns: parseDayPeriodPatterns,
- defaultParseWidth: 'any'
- })
- };
- var match$1 = match;
-
- /**
- * @type {Locale}
- * @category Locales
- * @summary English locale (United States).
- * @language English
- * @iso-639-2 eng
- * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
- * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
- */
- var locale = {
- code: 'en-US',
- formatDistance: formatDistance$1,
- formatLong: formatLong$1,
- formatRelative: formatRelative$1,
- localize: localize$1,
- match: match$1,
- options: {
- weekStartsOn: 0
- /* Sunday */
- ,
- firstWeekContainsDate: 1
- }
- };
- var defaultLocale = locale;
-
- // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
- // (one of the certain letters followed by `o`)
- // - (\w)\1* matches any sequences of the same letter
- // - '' matches two quote characters in a row
- // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
- // except a single quote symbol, which ends the sequence.
- // Two quote characters do not end the sequence.
- // If there is no matching single quote
- // then the sequence will continue until the end of the string.
- // - . matches any single character unmatched by previous parts of the RegExps
-
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
- // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
-
- var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
- var escapedStringRegExp = /^'([^]*?)'?$/;
- var doubleQuoteRegExp = /''/g;
- var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
- /**
- * @name format
- * @category Common Helpers
- * @summary Format the date.
- *
- * @description
- * Return the formatted date string in the given format. The result may vary by locale.
- *
- * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
- * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- *
- * The characters wrapped between two single quotes characters (') are escaped.
- * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
- * (see the last example)
- *
- * Format of the string is based on Unicode Technical Standard #35:
- * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
- * with a few additions (see note 7 below the table).
- *
- * Accepted patterns:
- * | Unit | Pattern | Result examples | Notes |
- * |---------------------------------|---------|-----------------------------------|-------|
- * | Era | G..GGG | AD, BC | |
- * | | GGGG | Anno Domini, Before Christ | 2 |
- * | | GGGGG | A, B | |
- * | Calendar year | y | 44, 1, 1900, 2017 | 5 |
- * | | yo | 44th, 1st, 0th, 17th | 5,7 |
- * | | yy | 44, 01, 00, 17 | 5 |
- * | | yyy | 044, 001, 1900, 2017 | 5 |
- * | | yyyy | 0044, 0001, 1900, 2017 | 5 |
- * | | yyyyy | ... | 3,5 |
- * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |
- * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |
- * | | YY | 44, 01, 00, 17 | 5,8 |
- * | | YYY | 044, 001, 1900, 2017 | 5 |
- * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |
- * | | YYYYY | ... | 3,5 |
- * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |
- * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |
- * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |
- * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |
- * | | RRRRR | ... | 3,5,7 |
- * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |
- * | | uu | -43, 01, 1900, 2017 | 5 |
- * | | uuu | -043, 001, 1900, 2017 | 5 |
- * | | uuuu | -0043, 0001, 1900, 2017 | 5 |
- * | | uuuuu | ... | 3,5 |
- * | Quarter (formatting) | Q | 1, 2, 3, 4 | |
- * | | Qo | 1st, 2nd, 3rd, 4th | 7 |
- * | | QQ | 01, 02, 03, 04 | |
- * | | QQQ | Q1, Q2, Q3, Q4 | |
- * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
- * | | QQQQQ | 1, 2, 3, 4 | 4 |
- * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |
- * | | qo | 1st, 2nd, 3rd, 4th | 7 |
- * | | qq | 01, 02, 03, 04 | |
- * | | qqq | Q1, Q2, Q3, Q4 | |
- * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
- * | | qqqqq | 1, 2, 3, 4 | 4 |
- * | Month (formatting) | M | 1, 2, ..., 12 | |
- * | | Mo | 1st, 2nd, ..., 12th | 7 |
- * | | MM | 01, 02, ..., 12 | |
- * | | MMM | Jan, Feb, ..., Dec | |
- * | | MMMM | January, February, ..., December | 2 |
- * | | MMMMM | J, F, ..., D | |
- * | Month (stand-alone) | L | 1, 2, ..., 12 | |
- * | | Lo | 1st, 2nd, ..., 12th | 7 |
- * | | LL | 01, 02, ..., 12 | |
- * | | LLL | Jan, Feb, ..., Dec | |
- * | | LLLL | January, February, ..., December | 2 |
- * | | LLLLL | J, F, ..., D | |
- * | Local week of year | w | 1, 2, ..., 53 | |
- * | | wo | 1st, 2nd, ..., 53th | 7 |
- * | | ww | 01, 02, ..., 53 | |
- * | ISO week of year | I | 1, 2, ..., 53 | 7 |
- * | | Io | 1st, 2nd, ..., 53th | 7 |
- * | | II | 01, 02, ..., 53 | 7 |
- * | Day of month | d | 1, 2, ..., 31 | |
- * | | do | 1st, 2nd, ..., 31st | 7 |
- * | | dd | 01, 02, ..., 31 | |
- * | Day of year | D | 1, 2, ..., 365, 366 | 9 |
- * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |
- * | | DD | 01, 02, ..., 365, 366 | 9 |
- * | | DDD | 001, 002, ..., 365, 366 | |
- * | | DDDD | ... | 3 |
- * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
- * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
- * | | EEEEE | M, T, W, T, F, S, S | |
- * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
- * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
- * | | io | 1st, 2nd, ..., 7th | 7 |
- * | | ii | 01, 02, ..., 07 | 7 |
- * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
- * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
- * | | iiiii | M, T, W, T, F, S, S | 7 |
- * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
- * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
- * | | eo | 2nd, 3rd, ..., 1st | 7 |
- * | | ee | 02, 03, ..., 01 | |
- * | | eee | Mon, Tue, Wed, ..., Sun | |
- * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
- * | | eeeee | M, T, W, T, F, S, S | |
- * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
- * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
- * | | co | 2nd, 3rd, ..., 1st | 7 |
- * | | cc | 02, 03, ..., 01 | |
- * | | ccc | Mon, Tue, Wed, ..., Sun | |
- * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
- * | | ccccc | M, T, W, T, F, S, S | |
- * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
- * | AM, PM | a..aa | AM, PM | |
- * | | aaa | am, pm | |
- * | | aaaa | a.m., p.m. | 2 |
- * | | aaaaa | a, p | |
- * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
- * | | bbb | am, pm, noon, midnight | |
- * | | bbbb | a.m., p.m., noon, midnight | 2 |
- * | | bbbbb | a, p, n, mi | |
- * | Flexible day period | B..BBB | at night, in the morning, ... | |
- * | | BBBB | at night, in the morning, ... | 2 |
- * | | BBBBB | at night, in the morning, ... | |
- * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |
- * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |
- * | | hh | 01, 02, ..., 11, 12 | |
- * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |
- * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |
- * | | HH | 00, 01, 02, ..., 23 | |
- * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |
- * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |
- * | | KK | 01, 02, ..., 11, 00 | |
- * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |
- * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |
- * | | kk | 24, 01, 02, ..., 23 | |
- * | Minute | m | 0, 1, ..., 59 | |
- * | | mo | 0th, 1st, ..., 59th | 7 |
- * | | mm | 00, 01, ..., 59 | |
- * | Second | s | 0, 1, ..., 59 | |
- * | | so | 0th, 1st, ..., 59th | 7 |
- * | | ss | 00, 01, ..., 59 | |
- * | Fraction of second | S | 0, 1, ..., 9 | |
- * | | SS | 00, 01, ..., 99 | |
- * | | SSS | 000, 001, ..., 999 | |
- * | | SSSS | ... | 3 |
- * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
- * | | XX | -0800, +0530, Z | |
- * | | XXX | -08:00, +05:30, Z | |
- * | | XXXX | -0800, +0530, Z, +123456 | 2 |
- * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
- * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |
- * | | xx | -0800, +0530, +0000 | |
- * | | xxx | -08:00, +05:30, +00:00 | 2 |
- * | | xxxx | -0800, +0530, +0000, +123456 | |
- * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
- * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |
- * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |
- * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |
- * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |
- * | Seconds timestamp | t | 512969520 | 7 |
- * | | tt | ... | 3,7 |
- * | Milliseconds timestamp | T | 512969520900 | 7 |
- * | | TT | ... | 3,7 |
- * | Long localized date | P | 04/29/1453 | 7 |
- * | | PP | Apr 29, 1453 | 7 |
- * | | PPP | April 29th, 1453 | 7 |
- * | | PPPP | Friday, April 29th, 1453 | 2,7 |
- * | Long localized time | p | 12:00 AM | 7 |
- * | | pp | 12:00:00 AM | 7 |
- * | | ppp | 12:00:00 AM GMT+2 | 7 |
- * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
- * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
- * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
- * | | PPPppp | April 29th, 1453 at ... | 7 |
- * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
- * Notes:
- * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
- * are the same as "stand-alone" units, but are different in some languages.
- * "Formatting" units are declined according to the rules of the language
- * in the context of a date. "Stand-alone" units are always nominative singular:
- *
- * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
- *
- * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
- *
- * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
- * the single quote characters (see below).
- * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)
- * the output will be the same as default pattern for this unit, usually
- * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units
- * are marked with "2" in the last column of the table.
- *
- * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`
- *
- * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`
- *
- * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`
- *
- * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`
- *
- * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`
- *
- * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).
- * The output will be padded with zeros to match the length of the pattern.
- *
- * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`
- *
- * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
- * These tokens represent the shortest form of the quarter.
- *
- * 5. The main difference between `y` and `u` patterns are B.C. years:
- *
- * | Year | `y` | `u` |
- * |------|-----|-----|
- * | AC 1 | 1 | 1 |
- * | BC 1 | 1 | 0 |
- * | BC 2 | 2 | -1 |
- *
- * Also `yy` always returns the last two digits of a year,
- * while `uu` pads single digit years to 2 characters and returns other years unchanged:
- *
- * | Year | `yy` | `uu` |
- * |------|------|------|
- * | 1 | 01 | 01 |
- * | 14 | 14 | 14 |
- * | 376 | 76 | 376 |
- * | 1453 | 53 | 1453 |
- *
- * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
- * except local week-numbering years are dependent on `options.weekStartsOn`
- * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}
- * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).
- *
- * 6. Specific non-location timezones are currently unavailable in `date-fns`,
- * so right now these tokens fall back to GMT timezones.
- *
- * 7. These patterns are not in the Unicode Technical Standard #35:
- * - `i`: ISO day of week
- * - `I`: ISO week of year
- * - `R`: ISO week-numbering year
- * - `t`: seconds timestamp
- * - `T`: milliseconds timestamp
- * - `o`: ordinal number modifier
- * - `P`: long localized date
- * - `p`: long localized time
- *
- * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- *
- * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- *
- * @param {Date|Number} date - the original date
- * @param {String} format - the string of tokens
- * @param {Object} [options] - an object with options.
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
- * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is
- * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
- * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
- * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @returns {String} the formatted date string
- * @throws {TypeError} 2 arguments required
- * @throws {RangeError} `date` must not be Invalid Date
- * @throws {RangeError} `options.locale` must contain `localize` property
- * @throws {RangeError} `options.locale` must contain `formatLong` property
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
- * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
- * @throws {RangeError} format string contains an unescaped latin alphabet character
- *
- * @example
- * // Represent 11 February 2014 in middle-endian format:
- * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
- * //=> '02/11/2014'
- *
- * @example
- * // Represent 2 July 2014 in Esperanto:
- * import { eoLocale } from 'date-fns/locale/eo'
- * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
- * locale: eoLocale
- * })
- * //=> '2-a de julio 2014'
- *
- * @example
- * // Escape string by single quote characters:
- * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
- * //=> "3 o'clock"
- */
-
- function format(dirtyDate, dirtyFormatStr, options) {
- var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
-
- requiredArgs(2, arguments);
- var formatStr = String(dirtyFormatStr);
- var defaultOptions = getDefaultOptions();
- var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;
- var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
-
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
- }
-
- var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
-
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- }
-
- if (!locale.localize) {
- throw new RangeError('locale must contain localize property');
- }
-
- if (!locale.formatLong) {
- throw new RangeError('locale must contain formatLong property');
- }
-
- var originalDate = toDate(dirtyDate);
-
- if (!isValid(originalDate)) {
- throw new RangeError('Invalid time value');
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
- // This ensures that when UTC functions will be implemented, locales will be compatible with them.
- // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
-
-
- var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
- var utcDate = subMilliseconds(originalDate, timezoneOffset);
- var formatterOptions = {
- firstWeekContainsDate: firstWeekContainsDate,
- weekStartsOn: weekStartsOn,
- locale: locale,
- _originalDate: originalDate
- };
- var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
- var firstCharacter = substring[0];
-
- if (firstCharacter === 'p' || firstCharacter === 'P') {
- var longFormatter = longFormatters$1[firstCharacter];
- return longFormatter(substring, locale.formatLong);
- }
-
- return substring;
- }).join('').match(formattingTokensRegExp).map(function (substring) {
- // Replace two single quote characters with one single quote character
- if (substring === "''") {
- return "'";
- }
-
- var firstCharacter = substring[0];
-
- if (firstCharacter === "'") {
- return cleanEscapedString(substring);
- }
-
- var formatter = formatters$1[firstCharacter];
-
- if (formatter) {
- if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
- throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
- }
-
- if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
- throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
- }
-
- return formatter(utcDate, substring, locale.localize, formatterOptions);
- }
-
- if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
- throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
- }
-
- return substring;
- }).join('');
- return result;
- }
-
- function cleanEscapedString(input) {
- var matched = input.match(escapedStringRegExp);
-
- if (!matched) {
- return input;
- }
-
- return matched[1].replace(doubleQuoteRegExp, "'");
- }
-
- var defaultFormat = ['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds'];
- /**
- * @name formatDuration
- * @category Common Helpers
- * @summary Formats a duration in human-readable format
- *
- * @description
- * Return human-readable duration string i.e. "9 months 2 days"
- *
- * @param {Duration} duration - the duration to format
- * @param {Object} [options] - an object with options.
- * @param {string[]} [options.format=['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds']] - the array of units to format
- * @param {boolean} [options.zero=false] - should zeros be included in the output?
- * @param {string} [options.delimiter=' '] - delimiter string
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
- * @returns {string} the formatted date string
- * @throws {TypeError} 1 argument required
- *
- * @example
- * // Format full duration
- * formatDuration({
- * years: 2,
- * months: 9,
- * weeks: 1,
- * days: 7,
- * hours: 5,
- * minutes: 9,
- * seconds: 30
- * })
- * //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds'
- *
- * @example
- * // Format partial duration
- * formatDuration({ months: 9, days: 2 })
- * //=> '9 months 2 days'
- *
- * @example
- * // Customize the format
- * formatDuration(
- * {
- * years: 2,
- * months: 9,
- * weeks: 1,
- * days: 7,
- * hours: 5,
- * minutes: 9,
- * seconds: 30
- * },
- * { format: ['months', 'weeks'] }
- * ) === '9 months 1 week'
- *
- * @example
- * // Customize the zeros presence
- * formatDuration({ years: 0, months: 9 })
- * //=> '9 months'
- * formatDuration({ years: 0, months: 9 }, { zero: true })
- * //=> '0 years 9 months'
- *
- * @example
- * // Customize the delimiter
- * formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' })
- * //=> '2 years, 9 months, 3 weeks'
- */
-
- function formatDuration(duration, options) {
- var _ref, _options$locale, _options$format, _options$zero, _options$delimiter;
-
- if (arguments.length < 1) {
- throw new TypeError("1 argument required, but only ".concat(arguments.length, " present"));
- }
-
- var defaultOptions = getDefaultOptions();
- var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;
- var format = (_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : defaultFormat;
- var zero = (_options$zero = options === null || options === void 0 ? void 0 : options.zero) !== null && _options$zero !== void 0 ? _options$zero : false;
- var delimiter = (_options$delimiter = options === null || options === void 0 ? void 0 : options.delimiter) !== null && _options$delimiter !== void 0 ? _options$delimiter : ' ';
-
- if (!locale.formatDistance) {
- return '';
- }
-
- var result = format.reduce(function (acc, unit) {
- var token = "x".concat(unit.replace(/(^.)/, function (m) {
- return m.toUpperCase();
- }));
- var value = duration[unit];
-
- if (typeof value === 'number' && (zero || duration[unit])) {
- return acc.concat(locale.formatDistance(token, value));
- }
-
- return acc;
- }, []).join(delimiter);
- return result;
- }
-
- /**
- * @name intervalToDuration
- * @category Common Helpers
- * @summary Convert interval to duration
- *
- * @description
- * Convert a interval object to a duration object.
- *
- * @param {Interval} interval - the interval to convert to duration
- *
- * @returns {Duration} The duration Object
- * @throws {TypeError} Requires 2 arguments
- * @throws {RangeError} `start` must not be Invalid Date
- * @throws {RangeError} `end` must not be Invalid Date
- *
- * @example
- * // Get the duration between January 15, 1929 and April 4, 1968.
- * intervalToDuration({
- * start: new Date(1929, 0, 15, 12, 0, 0),
- * end: new Date(1968, 3, 4, 19, 5, 0)
- * })
- * // => { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 }
- */
-
- function intervalToDuration(interval) {
- requiredArgs(1, arguments);
- var start = toDate(interval.start);
- var end = toDate(interval.end);
- if (isNaN(start.getTime())) throw new RangeError('Start Date is invalid');
- if (isNaN(end.getTime())) throw new RangeError('End Date is invalid');
- var duration = {};
- duration.years = Math.abs(differenceInYears(end, start));
- var sign = compareAsc(end, start);
- var remainingMonths = add(start, {
- years: sign * duration.years
- });
- duration.months = Math.abs(differenceInMonths(end, remainingMonths));
- var remainingDays = add(remainingMonths, {
- months: sign * duration.months
- });
- duration.days = Math.abs(differenceInDays(end, remainingDays));
- var remainingHours = add(remainingDays, {
- days: sign * duration.days
- });
- duration.hours = Math.abs(differenceInHours(end, remainingHours));
- var remainingMinutes = add(remainingHours, {
- hours: sign * duration.hours
- });
- duration.minutes = Math.abs(differenceInMinutes(end, remainingMinutes));
- var remainingSeconds = add(remainingMinutes, {
- minutes: sign * duration.minutes
- });
- duration.seconds = Math.abs(differenceInSeconds(end, remainingSeconds));
- return duration;
- }
-
- var n$1,l$2,u$2,t$1,o$2,r$1,f$2={},e$1=[],c$2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s$2(n,l){for(var u in l)n[u]=l[u];return n}function a$2(n){var l=n.parentNode;l&&l.removeChild(n);}function h$2(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v$2(l,f,t,o,null)}function v$2(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$2:r};return null==r&&null!=l$2.vnode&&l$2.vnode(f),f}function y$2(){return {current:null}}function p$2(n){return n.children}function d$2(n,l){this.props=n,this.context=l;}function _$2(n,l){if(null==l)return n.__?_$2(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?_$2(n):null}function k$3(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k$3(n)}}function b$2(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$3.__r++||o$2!==l$2.debounceRendering)&&((o$2=l$2.debounceRendering)||setTimeout)(g$3);}function g$3(){for(var n;g$3.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s$2({},t)).__v=t.__v+1,j$3(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_$2(t):o,t.__h),z$2(u,t),t.__e!=o&&k$3(t)));});}function w$3(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e$1,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$2(null,k,null,null,k):Array.isArray(k)?v$2(p$2,{children:k},null,null,null):k.__b>0?v$2(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j$3(n,k,d=d||f$2,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m$2(k,s,n):s=A$3(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_$2(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&N$1(x[h],x[h]);if(w)for(h=0;h<w.length;h++)M$1(w[h],w[++h],w[++h]);}function m$2(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m$2(i,l,u):A$3(u,i,i,t,i.__e,l));return l}function x$3(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){x$3(n,l);}):l.push(n)),l}function A$3(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C$2(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H$1(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H$1(n,o,l[o],u[o],i);}function $$1(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c$2.test(l)?u:u+"px";}function H$1(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$$1(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$$1(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$2:I$1,o):n.removeEventListener(l,o?T$2:I$1,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function I$1(n){this.l[n.type+!1](l$2.event?l$2.event(n):n);}function T$2(n){this.l[n.type+!0](l$2.event?l$2.event(n):n);}function j$3(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H,I,T=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l$2.__b)&&a(u);try{n:if("function"==typeof T){if(g=u.props,m=(a=T.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in T&&T.prototype.render?u.__c=h=new T(g,x):(u.__c=h=new d$2(g,x),h.constructor=T,h.render=O$2),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s$2({},h.__s)),s$2(h.__s,T.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==T.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){for(h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,C=l$2.__r,$=0,"prototype"in T&&T.prototype.render){for(h.state=h.__s,h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(t=s$2(s$2({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),I=null!=a&&a.type===p$2&&null==a.key?a.props.children:a,w$3(n,Array.isArray(I)?I:[I],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L$1(i.__e,u,i,t,o,r,f,c);(a=l$2.diffed)&&a(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$2.__e(n,u,i);}}function z$2(n,u){l$2.__c&&l$2.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$2.__e(n,u.__v);}});}function L$1(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n$1.call(l.childNodes),h=(y=i.props||f$2).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C$2(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w$3(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_$2(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a$2(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H$1(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H$1(l,"checked",k,y.checked,!1));}return l}function M$1(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$2.__e(n,i);}}function N$1(n,u,i){var t,o;if(l$2.unmount&&l$2.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M$1(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$2.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N$1(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||a$2(n.__e),n.__=n.__e=n.__d=void 0;}function O$2(n,l,u){return this.constructor(n,u)}function P$1(u,i,t){var o,r,e;l$2.__&&l$2.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j$3(i,u=(!o&&t||i).__k=h$2(p$2,null,[u]),r||f$2,f$2,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n$1.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z$2(e,u);}function S$1(n,l){P$1(n,l,S$1);}function q$2(l,u,i){var t,o,r,f=s$2({},l.props);for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];return arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):i),v$2(l.type,f,t||l.key,o||l.ref,null)}function B$2(n,l){var u={__c:l="__cC"+r$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(b$2);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n$1=e$1.slice,l$2={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$2=0,d$2.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s$2({},this.state),"function"==typeof n&&(n=n(s$2({},u),this.props)),n&&s$2(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),b$2(this));},d$2.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b$2(this));},d$2.prototype.render=p$2,t$1=[],g$3.__r=0,r$1=0;
-
- var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,o$1=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,i$1=/[\s\n\\/='"\0<>]/,l$1=/^xlink:?./,a$1=/["&<]/;function s$1(e){if(!1===a$1.test(e+=""))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1;}return r!==t&&(n+=e.slice(t,r)),n}var f$1=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},u$1=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},c$1={},_$1=/([A-Z])/g;function p$1(e){var t="";for(var r in e){var o=e[r];null!=o&&""!==o&&(t&&(t+=" "),t+="-"==r[0]?r:c$1[r]||(c$1[r]=r.replace(_$1,"-$1").toLowerCase()),t="number"==typeof o&&!1===n.test(r)?t+": "+o+"px;":t+": "+o+";");}return t||void 0}function d$1(e,t){return Array.isArray(t)?t.reduce(d$1,e):null!=t&&!1!==t&&e.push(t),e}function v$1(){this.__d=!0;}function h$1(e,t){return {__v:e,context:t,props:e.props,setState:v$1,forceUpdate:v$1,__d:!0,__h:[]}}function g$2(e,t){var r=e.contextType,n=r&&t[r.__c];return null!=r?n?n.props.value:r.__:t}var y$1=[];function m$1(r,n,a,c,_,v){if(null==r||"boolean"==typeof r)return "";if("object"!=typeof r)return "function"==typeof r?"":s$1(r);var b=a.pretty,x=b&&"string"==typeof b?b:"\t";if(Array.isArray(r)){for(var k="",S=0;S<r.length;S++)b&&S>0&&(k+="\n"),k+=m$1(r[S],n,a,c,_,v);return k}if(void 0!==r.constructor)return "";var w,C=r.type,O=r.props,j=!1;if("function"==typeof C){if(j=!0,!a.shallow||!c&&!1!==a.renderRootComponent){if(C===p$2){var A=[];return d$1(A,r.props.children),m$1(A,n,a,!1!==a.shallowHighOrder,_,v)}var F,H=r.__c=h$1(r,n);l$2.__b&&l$2.__b(r);var M=l$2.__r;if(C.prototype&&"function"==typeof C.prototype.render){var L=g$2(C,n);(H=r.__c=new C(O,L)).__v=r,H._dirty=H.__d=!0,H.props=O,null==H.state&&(H.state={}),null==H._nextState&&null==H.__s&&(H._nextState=H.__s=H.state),H.context=L,C.getDerivedStateFromProps?H.state=Object.assign({},H.state,C.getDerivedStateFromProps(H.props,H.state)):H.componentWillMount&&(H.componentWillMount(),H.state=H._nextState!==H.state?H._nextState:H.__s!==H.state?H.__s:H.state),M&&M(r),F=H.render(H.props,H.state,H.context);}else for(var T=g$2(C,n),E=0;H.__d&&E++<25;)H.__d=!1,M&&M(r),F=C.call(r.__c,O,T);return H.getChildContext&&(n=Object.assign({},n,H.getChildContext())),l$2.diffed&&l$2.diffed(r),m$1(F,n,a,!1!==a.shallowHighOrder,_,v)}C=(w=C).displayName||w!==Function&&w.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=y$1.length;n--;)if(y$1[n]===e){r=n;break}r<0&&(r=y$1.push(e)-1),t="UnnamedComponent"+r;}return t}(w);}var $,D,N="<"+C;if(O){var P=Object.keys(O);a&&!0===a.sortAttributes&&P.sort();for(var W=0;W<P.length;W++){var I=P[W],R=O[I];if("children"!==I){if(!i$1.test(I)&&(a&&a.allAttributes||"key"!==I&&"ref"!==I&&"__self"!==I&&"__source"!==I)){if("defaultValue"===I)I="value";else if("defaultChecked"===I)I="checked";else if("defaultSelected"===I)I="selected";else if("className"===I){if(void 0!==O.class)continue;I="class";}else _&&l$1.test(I)&&(I=I.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===I){if(O.for)continue;I="for";}"style"===I&&R&&"object"==typeof R&&(R=p$1(R)),"a"===I[0]&&"r"===I[1]&&"boolean"==typeof R&&(R=String(R));var U=a.attributeHook&&a.attributeHook(I,R,n,a,j);if(U||""===U)N+=U;else if("dangerouslySetInnerHTML"===I)D=R&&R.__html;else if("textarea"===C&&"value"===I)$=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=I,a&&a.xml))){N=N+" "+I;continue}if("value"===I){if("select"===C){v=R;continue}"option"===C&&v==R&&void 0===O.selected&&(N+=" selected");}N=N+" "+I+'="'+s$1(R)+'"';}}}else $=R;}}if(b){var V=N.replace(/\n\s*/," ");V===N||~V.indexOf("\n")?b&&~N.indexOf("\n")&&(N+="\n"):N=V;}if(N+=">",i$1.test(C))throw new Error(C+" is not a valid HTML tag name in "+N);var q,z=o$1.test(C)||a.voidElements&&a.voidElements.test(C),Z=[];if(D)b&&u$1(D)&&(D="\n"+x+f$1(D,x)),N+=D;else if(null!=$&&d$1(q=[],$).length){for(var B=b&&~N.indexOf("\n"),G=!1,J=0;J<q.length;J++){var K=q[J];if(null!=K&&!1!==K){var Q=m$1(K,n,a,!0,"svg"===C||"foreignObject"!==C&&_,v);if(b&&!B&&u$1(Q)&&(B=!0),Q)if(b){var X=Q.length>0&&"<"!=Q[0];G&&X?Z[Z.length-1]+=Q:Z.push(Q),G=X;}else Z.push(Q);}}if(b&&B)for(var Y=Z.length;Y--;)Z[Y]="\n"+x+f$1(Z[Y],x);}if(Z.length||D)N+=Z.join("");else if(a&&a.xml)return N.substring(0,N.length-1)+" />";return !z||q||D?(b&&~N.indexOf("\n")&&(N+="\n"),N=N+"</"+C+">"):N=N.replace(/>$/," />"),N}var b$1={shallow:!0};S.render=S;var x$2=function(e,t){return S(e,t,b$1)},k$2=[];function S(n,o,i){o=o||{};var l=l$2.__s;l$2.__s=!0;var a,s=h$2(p$2,null);return s.__k=[n],a=i&&(i.pretty||i.voidElements||i.sortAttributes||i.shallow||i.allAttributes||i.xml||i.attributeHook)?m$1(n,o,i):F$2(n,o,!1,void 0,s),l$2.__c&&l$2.__c(n,k$2),l$2.__s=l,k$2.length=0,a}function w$2(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?h$2(null,null,e):e}function C$1(e,t){return "className"===e?"class":"htmlFor"===e?"for":"defaultValue"===e?"value":"defaultChecked"===e?"checked":"defaultSelected"===e?"selected":t&&l$1.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function O$1(e,t){return "style"===e&&null!=t&&"object"==typeof t?p$1(t):"a"===e[0]&&"r"===e[1]&&"boolean"==typeof t?String(t):t}var j$2=Array.isArray,A$2=Object.assign;function F$2(r,n,l,a,f){if(null==r||!0===r||!1===r||""===r)return "";if("object"!=typeof r)return "function"==typeof r?"":s$1(r);if(j$2(r)){var u="";f.__k=r;for(var c=0;c<r.length;c++)u+=F$2(r[c],n,l,a,f),r[c]=w$2(r[c]);return u}if(void 0!==r.constructor)return "";r.__=f,l$2.__b&&l$2.__b(r);var _=r.type,p=r.props;if("function"==typeof _){var d;if(_===p$2)d=p.children;else {d=_.prototype&&"function"==typeof _.prototype.render?function(e,r){var n=e.type,o=g$2(n,r),i=new n(e.props,o);e.__c=i,i.__v=e,i.__d=!0,i.props=e.props,null==i.state&&(i.state={}),null==i.__s&&(i.__s=i.state),i.context=o,n.getDerivedStateFromProps?i.state=A$2({},i.state,n.getDerivedStateFromProps(i.props,i.state)):i.componentWillMount&&(i.componentWillMount(),i.state=i.__s!==i.state?i.__s:i.state);var l=l$2.__r;return l&&l(e),i.render(i.props,i.state,i.context)}(r,n):function(e,r){var n,o=h$1(e,r),i=g$2(e.type,r);e.__c=o;for(var l=l$2.__r,a=0;o.__d&&a++<25;)o.__d=!1,l&&l(e),n=e.type.call(o,e.props,i);return n}(r,n);var v=r.__c;v.getChildContext&&(n=A$2({},n,v.getChildContext()));}var y=F$2(d=null!=d&&d.type===p$2&&null==d.key?d.props.children:d,n,l,a,r);return l$2.diffed&&l$2.diffed(r),r.__=void 0,l$2.unmount&&l$2.unmount(r),y}var m,b,x="<";if(x+=_,p)for(var k in m=p.children,p){var S=p[k];if(!("key"===k||"ref"===k||"__self"===k||"__source"===k||"children"===k||"className"===k&&"class"in p||"htmlFor"===k&&"for"in p||i$1.test(k)))if(S=O$1(k=C$1(k,l),S),"dangerouslySetInnerHTML"===k)b=S&&S.__html;else if("textarea"===_&&"value"===k)m=S;else if((S||0===S||""===S)&&"function"!=typeof S){if(!0===S||""===S){S=k,x=x+" "+k;continue}if("value"===k){if("select"===_){a=S;continue}"option"!==_||a!=S||"selected"in p||(x+=" selected");}x=x+" "+k+'="'+s$1(S)+'"';}}var H=x;if(x+=">",i$1.test(_))throw new Error(_+" is not a valid HTML tag name in "+x);var M="",L=!1;if(b)M+=b,L=!0;else if("string"==typeof m)M+=s$1(m),L=!0;else if(j$2(m)){r.__k=m;for(var T=0;T<m.length;T++){var E=m[T];if(m[T]=w$2(E),null!=E&&!1!==E){var $=F$2(E,n,"svg"===_||"foreignObject"!==_&&l,a,r);$&&(M+=$,L=!0);}}}else if(null!=m&&!1!==m&&!0!==m){r.__k=[w$2(m)];var D=F$2(m,n,"svg"===_||"foreignObject"!==_&&l,a,r);D&&(M+=D,L=!0);}if(l$2.diffed&&l$2.diffed(r),r.__=void 0,l$2.unmount&&l$2.unmount(r),L)x+=M;else if(o$1.test(_))return H+" />";return x+"</"+_+">"}S.shallowRender=x$2;
-
- function memoize(fn) {
- var cache = {};
- return function (arg) {
- if (cache[arg] === undefined) cache[arg] = fn(arg);
- return cache[arg];
- };
- }
-
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
-
- var index = memoize(function (prop) {
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
- /* o */
- && prop.charCodeAt(1) === 110
- /* n */
- && prop.charCodeAt(2) < 91;
- }
- /* Z+1 */
- );
-
- var t,r,u,i,o=0,f=[],c=[],e=l$2.__b,a=l$2.__r,v=l$2.diffed,l=l$2.__c,m=l$2.unmount;function d(t,u){l$2.__h&&l$2.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function p(n){return o=1,y(B$1,n)}function y(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$1(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){r.u=!0;var f=r.shouldComponentUpdate;r.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!f||f.call(this,n,t,r))};}return o.__N||o.__}function h(u,i){var o=d(t++,3);!l$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function s(u,i){var o=d(t++,4);!l$2.__s&&z$1(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o));}function _(n){return o=5,F$1(function(){return {current:n}},[])}function A$1(n,t,r){o=6,s(function(){return "function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n));}function F$1(n,r){var u=d(t++,7);return z$1(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T$1(n,t){return o=8,F$1(function(){return n},t)}function q$1(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x$1(t,r){l$2.useDebugValue&&l$2.useDebugValue(r?r(t):t);}function V$1(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++;}return n.__}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k$1),t.__H.__h.forEach(w$1),t.__H.__h=[];}catch(r){t.__H.__h=[],l$2.__e(r,t.__v);}}l$2.__b=function(n){r=null,e&&e(n);},l$2.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k$1),i.__h.forEach(w$1),i.__h=[])),u=r;},l$2.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$2.requestAnimationFrame||((i=l$2.requestAnimationFrame)||j$1)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},l$2.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k$1),t.__h=t.__h.filter(function(n){return !n.__||w$1(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$2.__e(u,t.__v);}}),l&&l(t,r);},l$2.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k$1(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$2.__e(r,u.__v));};var g$1="function"==typeof requestAnimationFrame;function j$1(n){var t,r=function(){clearTimeout(u),g$1&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$1&&(t=requestAnimationFrame(r));}function k$1(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w$1(n){var t=r;n.__c=n.__(),r=t;}function z$1(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$1(n,t){return "function"==typeof t?t(n):t}
-
- function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n,t){return n===t&&(0!==n||1/n==1/t)||n!=n&&t!=t}function w(n){this.props=n;}function R(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return !r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C(this.props,n)}function u(e){return this.shouldComponentUpdate=r,h$2(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(w.prototype=new d$2).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var x=l$2.__b;l$2.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x&&x(n);};var N="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function k(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var A=function(n,t){return null==n?null:x$3(x$3(n).map(t))},O={map:A,forEach:A,count:function(n){return n?x$3(n).length:0},only:function(n){var t=x$3(n);if(1!==t.length)throw "Children.only";return t[0]},toArray:x$3},T=l$2.__e;l$2.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r);};var I=l$2.unmount;function L(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)})),n}function U(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null;}function F(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function M(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n;},function(n){u=n;}),u)throw u;if(!r)throw e;return h$2(r,o)}return o.displayName="Lazy",o.__f=!0,o}function V(){this.u=null,this.o=null;}l$2.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),I&&I(n);},(D.prototype=new d$2).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=F(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=U(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate();}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i);},D.prototype.componentWillUnmount=function(){this.t=[];},D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=L(this.__b,r,o.__O=o.__P);}this.__b=null;}var i=e.__a&&h$2(p$2,null,n.fallback);return i&&(i.__h=null),[h$2(p$2,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function P(n){return this.getChildContext=function(){return n.context},n.children}function $(n){var e=this,r=n.i;e.componentWillUnmount=function(){P$1(null,e.l),e.l=null,e.i=null;},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n);},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n);}}),P$1(h$2(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount();}function j(n,e){var r=h$2($,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new d$2).__a=function(n){var t=this,e=F(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u();};e?e(o):o();}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=x$3(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t);});};var z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H="undefined"!=typeof document,Z=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function Y(n,t,e){return null==t.__k&&(t.textContent=""),P$1(n,t),"function"==typeof e&&e(),n?n.__c:null}function q(n,t,e){return S$1(n,t),"function"==typeof e&&e(),n?n.__c:null}d$2.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(d$2.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});}});});var G=l$2.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}l$2.event=function(n){return G&&(n=G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var X,nn={configurable:!0,get:function(){return this.class}},tn=l$2.vnode;l$2.vnode=function(n){var t=n.type,e=n.props,u=e;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in u={},e){var l=e[i];H&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in e&&null==l||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Z(e.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&B.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i="oninputCapture")),u[i]=l);}"select"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=x$3(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),"select"==t&&null!=u.defaultValue&&(u.value=x$3(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;})),n.props=u,e.class!=e.className&&(nn.enumerable="className"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,"className",nn));}n.$$typeof=z,tn&&tn(n);};var en=l$2.__r;l$2.__r=function(n){en&&en(n),X=n.__c;};var rn={ReactCurrentDispatcher:{current:{readContext:function(n){return X.__n[n.__c].props.value}}}};function on(n){return h$2.bind(null,n)}function ln(n){return !!n&&n.$$typeof===z}function cn(n){return ln(n)?q$2.apply(null,arguments):n}function fn(n){return !!n.__k&&(P$1(null,n),!0)}function an(n){return n&&(n.base||1===n.nodeType&&n)||null}var sn=function(n,t){return n(t)},hn=function(n,t){return n(t)},vn=p$2;function dn(n){n();}function pn(n){return n}function mn(){return [!1,dn]}var yn=s;function _n(n,t){var e=t(),r=p({h:{__:e,v:t}}),u=r[0].h,o=r[1];return s(function(){u.__=e,u.v=t,E(u.__,t())||o({h:u});},[n,e,t]),h(function(){return E(u.__,u.v())||o({h:u}),n(function(){E(u.__,u.v())||o({h:u});})},[n]),e}var bn={useState:p,useId:V$1,useReducer:y,useEffect:h,useLayoutEffect:s,useInsertionEffect:yn,useTransition:mn,useDeferredValue:pn,useSyncExternalStore:_n,startTransition:dn,useRef:_,useImperativeHandle:A$1,useMemo:F$1,useCallback:T$1,useContext:q$1,useDebugValue:x$1,version:"17.0.2",Children:O,render:Y,hydrate:q,unmountComponentAtNode:fn,createPortal:j,createElement:h$2,createContext:B$2,createFactory:on,cloneElement:cn,createRef:y$2,Fragment:p$2,isValidElement:ln,findDOMNode:an,Component:d$2,PureComponent:w,memo:R,forwardRef:k,flushSync:hn,unstable_batchedUpdates:sn,StrictMode:vn,Suspense:D,SuspenseList:V,lazy:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:rn};
-
- /**
- * Takes a list of class names and filters for truthy ones, joining them into a single class name for convenience.
- * eg.
- * ```js
- * cx('red', isBig && 'big') // returns 'red big' if `isBig` is true, otherwise returns 'red'
- * ```
- * If space separated atomic styles are provided, they are deduplicated according to the first hashed valued:
- *
- * ```js
- * cx('atm_a_class1 atm_b_class2', 'atm_a_class3') // returns `atm_a_class3 atm_b_class2`
- * ```
- *
- * @returns the combined, space separated class names that can be applied directly to the class attribute
- */
- const cx = function cx() {
- const presentClassNames = Array.prototype.slice // eslint-disable-next-line prefer-rest-params
- .call(arguments).filter(Boolean);
- const atomicClasses = {};
- const nonAtomicClasses = [];
- presentClassNames.forEach(arg => {
- // className could be the output of a previous cx call, so split by ' ' first
- const individualClassNames = arg ? arg.split(' ') : [];
- individualClassNames.forEach(className => {
- if (className.startsWith('atm_')) {
- const [, keyHash] = className.split('_');
- atomicClasses[keyHash] = className;
- } else {
- nonAtomicClasses.push(className);
- }
- });
- });
- const result = []; // eslint-disable-next-line no-restricted-syntax
-
- for (const keyHash in atomicClasses) {
- if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
- result.push(atomicClasses[keyHash]);
- }
- }
-
- result.push(...nonAtomicClasses);
- return result.join(' ');
- };
-
- var cx$1 = cx;
-
- /* eslint-disable @typescript-eslint/no-explicit-any */
-
- const isCapital = ch => ch.toUpperCase() === ch;
-
- const filterKey = keys => key => keys.indexOf(key) === -1;
-
- const omit = (obj, keys) => {
- const res = {};
- Object.keys(obj).filter(filterKey(keys)).forEach(key => {
- res[key] = obj[key];
- });
- return res;
- };
-
- function filterProps(component, props, omitKeys) {
- const filteredProps = omit(props, omitKeys); // Check if it's an HTML tag and not a custom element
-
- if (typeof component === 'string' && component.indexOf('-') === -1 && !isCapital(component[0])) {
- Object.keys(filteredProps).forEach(key => {
- if (!index(key)) {
- // Don't pass through invalid attributes to HTML elements
- delete filteredProps[key];
- }
- });
- }
-
- return filteredProps;
- }
-
- const warnIfInvalid = (value, componentName) => {
- };
-
- function styled(tag) {
- return options => {
-
- const render = (props, ref) => {
- const {
- as: component = tag,
- class: className
- } = props;
- const filteredProps = filterProps(component, props, ['as', 'class']);
- filteredProps.ref = ref;
- filteredProps.className = options.atomic ? cx$1(options.class, filteredProps.className || className) : cx$1(filteredProps.className || className, options.class);
- const {
- vars
- } = options;
-
- if (vars) {
- const style = {}; // eslint-disable-next-line guard-for-in,no-restricted-syntax
-
- for (const name in vars) {
- const variable = vars[name];
- const result = variable[0];
- const unit = variable[1] || '';
- const value = typeof result === 'function' ? result(props) : result;
- warnIfInvalid(value, options.name);
- style[`--${name}`] = `${value}${unit}`;
- }
-
- const ownStyle = filteredProps.style || {};
- const keys = Object.keys(ownStyle);
-
- if (keys.length > 0) {
- keys.forEach(key => {
- style[key] = ownStyle[key];
- });
- }
-
- filteredProps.style = style;
- }
-
- if (tag.__linaria && tag !== component) {
- // If the underlying tag is a styled component, forward the `as` prop
- // Otherwise the styles from the underlying component will be ignored
- filteredProps.as = component;
- return /*#__PURE__*/bn.createElement(tag, filteredProps);
- }
-
- return /*#__PURE__*/bn.createElement(component, filteredProps);
- };
-
- const Result = bn.forwardRef ? /*#__PURE__*/bn.forwardRef(render) : // React.forwardRef won't available on older React versions and in Preact
- // Fallback to a innerRef prop in that case
- props => {
- const rest = omit(props, ['innerRef']);
- return render(rest, props.innerRef);
- };
- Result.displayName = options.name; // These properties will be read by the babel plugin for interpolation
-
- Result.__linaria = {
- className: options.class,
- extends: tag
- };
- return Result;
- };
- }
-
- var styled$1 = styled;
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- const FooterBar = /*#__PURE__*/styled$1('footer')({
- name: "FooterBar",
- class: "fef0x5t"
- });
- const Page = /*#__PURE__*/styled$1('div')({
- name: "Page",
- class: "p1b3vqup"
- });
- const InfoBox = /*#__PURE__*/styled$1('div')({
- name: "InfoBox",
- class: "i1pkgksb"
- });
- const TableExpanded = /*#__PURE__*/styled$1('dl')({
- name: "TableExpanded",
- class: "t2c81u8"
- });
- const TableSimple = /*#__PURE__*/styled$1('dl')({
- name: "TableSimple",
- class: "t1mav7fx"
- });
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- function Footer() {
- return (h$2(FooterBar, null,
- h$2("p", null,
- h$2("a", { href: "https://taler.net/" }, "Learn more about GNU Taler on our website."),
- h$2("p", null, "Copyright \u00A9 2014\u20142021 Taler Systems SA"))));
- }
-
- /*
- This file is part of GNU Taler
- (C) 2021 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
- function Head({ order_summary }) {
- return (h$2(p$2, null,
- h$2("meta", { charSet: "UTF-8" }),
- h$2("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0" }),
- h$2("noscript", null,
- h$2("meta", { "http-equiv": "refresh", content: "1" })),
- h$2("title", null,
- "Status of your order for",
- " ",
- order_summary ? order_summary : `{{ order_summary }}`),
- h$2("script", null, `
+/*! normalize.ss v8.0.1 | MIT License | github.com/necolas/normalize.cs */
+</style>
+ </head>
+ <script id="built_time_data">
+ </script>
+ <body>
+ <div class="p1b3vqup"><header><h1>Details of order {{ contract_terms.order_id }}</h1></header><section>{{#refund_amount}}<section><div class="i1pkgksb"><b>Refunded:</b> The merchant refunded you <b>{{ refund_amount }}</b>.</div></section>{{/refund_amount}}<section><dl class="t2c81u8"><dt>Order summary:</dt><dd>{{ contract_terms.summary }}</dd><dt>Amount paid:</dt><dd>{{ contract_terms.amount }}</dd><dt>Order date:</dt><dd>{{ contract_terms.timestamp_str }} </dd><dt>Merchant name:</dt><dd>{{ contract_terms.merchant.name }}</dd></dl></section>{{#contract_terms.hasProducts}}<section><h2>Products purchased</h2><dl class="t1mav7fx">{{#contract_terms.products}}<p>{{description}}</p><dl><dt>Quantity:</dt><dd>{{quantity}}</dd><dt>Price:</dt><dd>{{price}}</dd>{{#hasTaxes}}{{#taxes}}<dt>{{name}}</dt><dd>{{tax}}</dd>{{/taxes}}{{/hasTaxes}}{{#delivery_date}}<dt>Delivered on:</dt><dd>{{ delivery_date_str }} </dd>{{/delivery_date}}{{#unit}}<dt>Product unit:</dt><dd>{{.}}</dd>{{/unit}}{{#product_id}}<dt>Product ID:</dt><dd>{{.}}</dd>{{/product_id}}</dl>{{/contract_terms.products}}</dl></section>{{/contract_terms.hasProducts}}{{#contract_terms.has_delivery_info}}<section><h2>Delivery information</h2><dl class="t2c81u8">{{#contract_terms.delivery_date}}<dt>Delivery date:</dt><dd>{{ contract_terms.delivery_date_str }} </dd>{{/contract_terms.delivery_date}}{{#contract_terms.delivery_location}}<dt>Delivery address:</dt>{{#contract_terms.delivery_location.building_name}}<dd>{{ contract_terms.delivery_location.building_name }} {{ contract_terms.delivery_location.building_number }}</dd>{{/contract_terms.delivery_location.building_name}}{{#contract_terms.delivery_location.country}}<dd>{{ contract_terms.delivery_location.country }} {{ contract_terms.delivery_location.country_subdivision }}</dd>{{/contract_terms.delivery_location.country}}{{#contract_terms.delivery_location.district}}<dd>{{ contract_terms.delivery_location.district }}</dd>{{/contract_terms.delivery_location.district}}{{#contract_terms.delivery_location.post_code}}<dd>{{ contract_terms.delivery_location.post_code }}</dd>{{/contract_terms.delivery_location.post_code}}{{#contract_terms.delivery_location.street}}<dd>{{ contract_terms.delivery_location.street }}</dd>{{/contract_terms.delivery_location.street}}{{#contract_terms.delivery_location.town}}<dd>{{ contract_terms.delivery_location.town }}</dd>{{/contract_terms.delivery_location.town}}{{#contract_terms.delivery_location.town_location}}<dd>{{ contract_terms.delivery_location.town_location }}</dd>{{/contract_terms.delivery_location.town_location}}{{/contract_terms.delivery_location}}</dl></section>{{/contract_terms.has_delivery_info}}<section><h2>Full payment information</h2><dl class="t2c81u8"><dt>Amount paid:</dt><dd>{{ contract_terms.amount }}</dd><dt>Wire transfer method:</dt><dd>{{ contract_terms.wire_method }}</dd><dt>Payment deadline:</dt><dd>{{ contract_terms.pay_deadline_str }} </dd><dt>Exchange transfer deadline:</dt><dd>{{ contract_terms.wire_transfer_deadline_str }} </dd><dt>Maximum deposit fee:</dt><dd>{{ contract_terms.max_fee }}</dd><dt>Maximum wire fee:</dt><dd>{{ contract_terms.max_wire_fee }}</dd><dt>Wire fee amortization:</dt><dd>{{ contract_terms.wire_fee_amortization }} transactions</dd></dl></section><section><h2>Refund information</h2><dl class="t2c81u8"><dt>Refund deadline:</dt><dd>{{ contract_terms.refund_deadline_str }} </dd>{{#contract_terms.auto_refund}}<dt>Attempt autorefund for:</dt><dd>{{ contract_terms.auto_refund_str }} </dd>{{/contract_terms.auto_refund}}</dl></section><section><h2>Additional order details</h2><dl class="t2c81u8"><dt>Public reorder URL:</dt><dd> -- not defined yet -- </dd>{{#contract_terms.fulfillment_url}}<dt>Fulfillment URL:</dt><dd>{{ contract_terms.fulfillment_url }}</dd>{{/contract_terms.fulfillment_url}}</dl></section><section><h2>Full merchant information</h2><dl class="t2c81u8"><dt>Merchant name:</dt><dd>{{ contract_terms.merchant.name }}</dd><dt>Merchant address:</dt>{{#contract_terms.merchant.address.building_name}}<dd>{{ contract_terms.merchant.address.building_name }} {{ contract_terms.merchant.address.building_number }}</dd>{{/contract_terms.merchant.address.building_name}}{{#contract_terms.merchant.address.country}}<dd>{{ contract_terms.merchant.address.country }} {{ contract_terms.merchant.address.country_subdivision }}</dd>{{/contract_terms.merchant.address.country}}{{#contract_terms.merchant.address.district}}<dd>{{ contract_terms.merchant.address.district }}</dd>{{/contract_terms.merchant.address.district}}{{#contract_terms.merchant.address.post_code}}<dd>{{ contract_terms.merchant.address.post_code }}</dd>{{/contract_terms.merchant.address.post_code}}{{#contract_terms.merchant.address.street}}<dd>{{ contract_terms.merchant.address.street }}</dd>{{/contract_terms.merchant.address.street}}{{#contract_terms.merchant.address.town}}<dd>{{ contract_terms.merchant.address.town }}</dd>{{/contract_terms.merchant.address.town}}{{#contract_terms.merchant.address.town_location}}<dd>{{ contract_terms.merchant.address.town_location }}</dd>{{/contract_terms.merchant.address.town_location}}<dt>Merchant's jurisdiction:</dt>{{#contract_terms.merchant.jurisdiction.building_name}}<dd>{{ contract_terms.merchant.jurisdiction.building_name }} {{ contract_terms.merchant.jurisdiction.building_number }}</dd>{{/contract_terms.merchant.jurisdiction.building_name}}{{#contract_terms.merchant.jurisdiction.country}}<dd>{{ contract_terms.merchant.jurisdiction.country }} {{ contract_terms.merchant.jurisdiction.country_subdivision }}</dd>{{/contract_terms.merchant.jurisdiction.country}}{{#contract_terms.merchant.jurisdiction.district}}<dd>{{ contract_terms.merchant.jurisdiction.district }}</dd>{{/contract_terms.merchant.jurisdiction.district}}{{#contract_terms.merchant.jurisdiction.post_code}}<dd>{{ contract_terms.merchant.jurisdiction.post_code }}</dd>{{/contract_terms.merchant.jurisdiction.post_code}}{{#contract_terms.merchant.jurisdiction.street}}<dd>{{ contract_terms.merchant.jurisdiction.street }}</dd>{{/contract_terms.merchant.jurisdiction.street}}{{#contract_terms.merchant.jurisdiction.town}}<dd>{{ contract_terms.merchant.jurisdiction.town }}</dd>{{/contract_terms.merchant.jurisdiction.town}}{{#contract_terms.merchant.jurisdiction.town_location}}<dd>{{ contract_terms.merchant.jurisdiction.town_location }}</dd>{{/contract_terms.merchant.jurisdiction.town_location}}<dt>Merchant URI:</dt><dd>{{ contract_terms.merchant_base_url }}</dd><dt>Merchant's public key:</dt><dd>{{ contract_terms.merchant_pub }}</dd></dl></section>{{#contract_terms.hasAuditors}}<section><h2>Auditors accepted by the merchant</h2><dl class="t2c81u8">{{#contract_terms.auditors}}<p>{{name}}</p><dt>Auditor's public key:</dt><dd>{{auditor_pub}}</dd><dt>Auditor's URL:</dt><dd>{{url}}</dd>{{/contract_terms.auditors}}</dl></section>{{/contract_terms.hasAuditors}}{{#contract_terms.hasExchanges}}<section><h2>Exchanges accepted by the merchant</h2><dl class="t2c81u8">{{#contract_terms.exchanges}}<dt>Exchange's URL:</dt><dd>{{url}}</dd><dt>Public key:</dt><dd>{{master_pub}}</dd>{{/contract_terms.exchanges}}</dl></section>{{/contract_terms.hasExchanges}}</section><footer class="fef0x5t"><p><a href="https://taler.net/">Learn more about GNU Taler on our website.</a><p>Copyright © 2014—2021 Taler Systems SA</p></p></footer></div>
+ <script>"use strict";var page=(()=>{var Ge=Object.defineProperty;var wn=Object.getOwnPropertyDescriptor;var kn=Object.getOwnPropertyNames;var On=Object.prototype.hasOwnProperty;var Tn=(t,r)=>{for(var e in r)Ge(t,e,{get:r[e],enumerable:!0})},Mn=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of kn(r))!On.call(t,a)&&a!==e&&Ge(t,a,{get:()=>r[a],enumerable:!(n=wn(r,a))||n.enumerable});return t};var Dn=t=>Mn(Ge({},"__esModule",{value:!0}),t);var Wo={};Tn(Wo,{ShowOrderDetails:()=>qt,buildTimeRendering:()=>Po,mount:()=>So});function S(t){if(t===null||t===!0||t===!1)return NaN;var r=Number(t);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}function g(t,r){if(r.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+r.length+" present")}function De(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?De=function(e){return typeof e}:De=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(t)}function y(t){g(1,arguments);var r=Object.prototype.toString.call(t);return t instanceof Date||De(t)==="object"&&r==="[object Date]"?new Date(t.getTime()):typeof t=="number"||r==="[object Number]"?new Date(t):((typeof t=="string"||r==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Je(t,r){g(2,arguments);var e=y(t),n=S(r);return isNaN(n)?new Date(NaN):(n&&e.setDate(e.getDate()+n),e)}function Ze(t,r){g(2,arguments);var e=y(t),n=S(r);if(isNaN(n))return new Date(NaN);if(!n)return e;var a=e.getDate(),o=new Date(e.getTime());o.setMonth(e.getMonth()+n+1,0);var i=o.getDate();return a>=i?o:(e.setFullYear(o.getFullYear(),o.getMonth(),a),e)}function Ce(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ce=function(e){return typeof e}:Ce=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(t)}function ee(t,r){if(g(2,arguments),!r||Ce(r)!=="object")return new Date(NaN);var e=r.years?S(r.years):0,n=r.months?S(r.months):0,a=r.weeks?S(r.weeks):0,o=r.days?S(r.days):0,i=r.hours?S(r.hours):0,l=r.minutes?S(r.minutes):0,f=r.seconds?S(r.seconds):0,c=y(t),u=n||e?Ze(c,n+e*12):c,h=o||a?Je(u,o+a*7):u,p=l+i*60,d=f+p*60,v=d*1e3,b=new Date(h.getTime()+v);return b}function Ke(t,r){g(2,arguments);var e=y(t).getTime(),n=S(r);return new Date(e+n)}var Cn={};function R(){return Cn}function se(t){var r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),t.getTime()-r.getTime()}function Se(t){g(1,arguments);var r=y(t);return r.setHours(0,0,0,0),r}var Sn=864e5;function et(t,r){g(2,arguments);var e=Se(t),n=Se(r),a=e.getTime()-se(e),o=n.getTime()-se(n);return Math.round((a-o)/Sn)}function H(t,r){g(2,arguments);var e=y(t),n=y(r),a=e.getTime()-n.getTime();return a<0?-1:a>0?1:a}var Pn=365.2425,Wn=Math.pow(10,8)*24*60*60*1e3,$t=6e4,Vt=36e5;var ci=-Wn;var En=3600;var Bt=En*24,pi=Bt*7,In=Bt*Pn,An=In/12,hi=An*3;function Pe(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(e){return typeof e}:Pe=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(t)}function tt(t){return g(1,arguments),t instanceof Date||Pe(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function rt(t){if(g(1,arguments),!tt(t)&&typeof t!="number")return!1;var r=y(t);return!isNaN(Number(r))}function nt(t,r){g(2,arguments);var e=y(t),n=y(r),a=e.getFullYear()-n.getFullYear(),o=e.getMonth()-n.getMonth();return a*12+o}function at(t,r){g(2,arguments);var e=y(t),n=y(r);return e.getFullYear()-n.getFullYear()}function jt(t,r){var e=t.getFullYear()-r.getFullYear()||t.getMonth()-r.getMonth()||t.getDate()-r.getDate()||t.getHours()-r.getHours()||t.getMinutes()-r.getMinutes()||t.getSeconds()-r.getSeconds()||t.getMilliseconds()-r.getMilliseconds();return e<0?-1:e>0?1:e}function ot(t,r){g(2,arguments);var e=y(t),n=y(r),a=jt(e,n),o=Math.abs(et(e,n));e.setDate(e.getDate()-a*o);var i=Number(jt(e,n)===-a),l=a*(o-i);return l===0?0:l}function te(t,r){return g(2,arguments),y(t).getTime()-y(r).getTime()}var zt={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(r){return r<0?Math.ceil(r):Math.floor(r)}},Un="trunc";function le(t){return t?zt[t]:zt[Un]}function it(t,r,e){g(2,arguments);var n=te(t,r)/Vt;return le(e==null?void 0:e.roundingMethod)(n)}function ut(t,r,e){g(2,arguments);var n=te(t,r)/$t;return le(e==null?void 0:e.roundingMethod)(n)}function st(t){g(1,arguments);var r=y(t);return r.setHours(23,59,59,999),r}function lt(t){g(1,arguments);var r=y(t),e=r.getMonth();return r.setFullYear(r.getFullYear(),e+1,0),r.setHours(23,59,59,999),r}function ft(t){g(1,arguments);var r=y(t);return st(r).getTime()===lt(r).getTime()}function dt(t,r){g(2,arguments);var e=y(t),n=y(r),a=H(e,n),o=Math.abs(nt(e,n)),i;if(o<1)i=0;else{e.getMonth()===1&&e.getDate()>27&&e.setDate(30),e.setMonth(e.getMonth()-a*o);var l=H(e,n)===-a;ft(y(t))&&o===1&&H(t,n)===1&&(l=!1),i=a*(o-Number(l))}return i===0?0:i}function mt(t,r,e){g(2,arguments);var n=te(t,r)/1e3;return le(e==null?void 0:e.roundingMethod)(n)}function ct(t,r){g(2,arguments);var e=y(t),n=y(r),a=H(e,n),o=Math.abs(at(e,n));e.setFullYear(1584),n.setFullYear(1584);var i=H(e,n)===-a,l=a*(o-Number(i));return l===0?0:l}function pt(t,r){g(2,arguments);var e=S(r);return Ke(t,-e)}var Yn=864e5;function ht(t){g(1,arguments);var r=y(t),e=r.getTime();r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0);var n=r.getTime(),a=e-n;return Math.floor(a/Yn)+1}function J(t){g(1,arguments);var r=1,e=y(t),n=e.getUTCDay(),a=(n<r?7:0)+n-r;return e.setUTCDate(e.getUTCDate()-a),e.setUTCHours(0,0,0,0),e}function ce(t){g(1,arguments);var r=y(t),e=r.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(e+1,0,4),n.setUTCHours(0,0,0,0);var a=J(n),o=new Date(0);o.setUTCFullYear(e,0,4),o.setUTCHours(0,0,0,0);var i=J(o);return r.getTime()>=a.getTime()?e+1:r.getTime()>=i.getTime()?e:e-1}function _t(t){g(1,arguments);var r=ce(t),e=new Date(0);e.setUTCFullYear(r,0,4),e.setUTCHours(0,0,0,0);var n=J(e);return n}var Nn=6048e5;function vt(t){g(1,arguments);var r=y(t),e=J(r).getTime()-_t(r).getTime();return Math.round(e/Nn)+1}function Z(t,r){var e,n,a,o,i,l,f,c;g(1,arguments);var u=R(),h=S((e=(n=(a=(o=r==null?void 0:r.weekStartsOn)!==null&&o!==void 0?o:r==null||(i=r.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:u.weekStartsOn)!==null&&n!==void 0?n:(f=u.locale)===null||f===void 0||(c=f.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&e!==void 0?e:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=y(t),d=p.getUTCDay(),v=(d<h?7:0)+d-h;return p.setUTCDate(p.getUTCDate()-v),p.setUTCHours(0,0,0,0),p}function pe(t,r){var e,n,a,o,i,l,f,c;g(1,arguments);var u=y(t),h=u.getUTCFullYear(),p=R(),d=S((e=(n=(a=(o=r==null?void 0:r.firstWeekContainsDate)!==null&&o!==void 0?o:r==null||(i=r.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:p.firstWeekContainsDate)!==null&&n!==void 0?n:(f=p.locale)===null||f===void 0||(c=f.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&e!==void 0?e:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(h+1,0,d),v.setUTCHours(0,0,0,0);var b=Z(v,r),m=new Date(0);m.setUTCFullYear(h,0,d),m.setUTCHours(0,0,0,0);var O=Z(m,r);return u.getTime()>=b.getTime()?h+1:u.getTime()>=O.getTime()?h:h-1}function gt(t,r){var e,n,a,o,i,l,f,c;g(1,arguments);var u=R(),h=S((e=(n=(a=(o=r==null?void 0:r.firstWeekContainsDate)!==null&&o!==void 0?o:r==null||(i=r.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:u.firstWeekContainsDate)!==null&&n!==void 0?n:(f=u.locale)===null||f===void 0||(c=f.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&e!==void 0?e:1),p=pe(t,r),d=new Date(0);d.setUTCFullYear(p,0,h),d.setUTCHours(0,0,0,0);var v=Z(d,r);return v}var Fn=6048e5;function yt(t,r){g(1,arguments);var e=y(t),n=Z(e,r).getTime()-gt(e,r).getTime();return Math.round(n/Fn)+1}function D(t,r){for(var e=t<0?"-":"",n=Math.abs(t).toString();n.length<r;)n="0"+n;return e+n}var Ln={y:function(r,e){var n=r.getUTCFullYear(),a=n>0?n:1-n;return D(e==="yy"?a%100:a,e.length)},M:function(r,e){var n=r.getUTCMonth();return e==="M"?String(n+1):D(n+1,2)},d:function(r,e){return D(r.getUTCDate(),e.length)},a:function(r,e){var n=r.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(r,e){return D(r.getUTCHours()%12||12,e.length)},H:function(r,e){return D(r.getUTCHours(),e.length)},m:function(r,e){return D(r.getUTCMinutes(),e.length)},s:function(r,e){return D(r.getUTCSeconds(),e.length)},S:function(r,e){var n=e.length,a=r.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,n-3));return D(o,e.length)}},V=Ln;var fe={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},qn={G:function(r,e,n){var a=r.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(r,e,n){if(e==="yo"){var a=r.getUTCFullYear(),o=a>0?a:1-a;return n.ordinalNumber(o,{unit:"year"})}return V.y(r,e)},Y:function(r,e,n,a){var o=pe(r,a),i=o>0?o:1-o;if(e==="YY"){var l=i%100;return D(l,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):D(i,e.length)},R:function(r,e){var n=ce(r);return D(n,e.length)},u:function(r,e){var n=r.getUTCFullYear();return D(n,e.length)},Q:function(r,e,n){var a=Math.ceil((r.getUTCMonth()+1)/3);switch(e){case"Q":return String(a);case"QQ":return D(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(r,e,n){var a=Math.ceil((r.getUTCMonth()+1)/3);switch(e){case"q":return String(a);case"qq":return D(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(r,e,n){var a=r.getUTCMonth();switch(e){case"M":case"MM":return V.M(r,e);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(r,e,n){var a=r.getUTCMonth();switch(e){case"L":return String(a+1);case"LL":return D(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(r,e,n,a){var o=yt(r,a);return e==="wo"?n.ordinalNumber(o,{unit:"week"}):D(o,e.length)},I:function(r,e,n){var a=vt(r);return e==="Io"?n.ordinalNumber(a,{unit:"week"}):D(a,e.length)},d:function(r,e,n){return e==="do"?n.ordinalNumber(r.getUTCDate(),{unit:"date"}):V.d(r,e)},D:function(r,e,n){var a=ht(r);return e==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):D(a,e.length)},E:function(r,e,n){var a=r.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(r,e,n,a){var o=r.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return D(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(r,e,n,a){var o=r.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return D(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(r,e,n){var a=r.getUTCDay(),o=a===0?7:a;switch(e){case"i":return String(o);case"ii":return D(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(r,e,n){var a=r.getUTCHours(),o=a/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(r,e,n){var a=r.getUTCHours(),o;switch(a===12?o=fe.noon:a===0?o=fe.midnight:o=a/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(r,e,n){var a=r.getUTCHours(),o;switch(a>=17?o=fe.evening:a>=12?o=fe.afternoon:a>=4?o=fe.morning:o=fe.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(r,e,n){if(e==="ho"){var a=r.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return V.h(r,e)},H:function(r,e,n){return e==="Ho"?n.ordinalNumber(r.getUTCHours(),{unit:"hour"}):V.H(r,e)},K:function(r,e,n){var a=r.getUTCHours()%12;return e==="Ko"?n.ordinalNumber(a,{unit:"hour"}):D(a,e.length)},k:function(r,e,n){var a=r.getUTCHours();return a===0&&(a=24),e==="ko"?n.ordinalNumber(a,{unit:"hour"}):D(a,e.length)},m:function(r,e,n){return e==="mo"?n.ordinalNumber(r.getUTCMinutes(),{unit:"minute"}):V.m(r,e)},s:function(r,e,n){return e==="so"?n.ordinalNumber(r.getUTCSeconds(),{unit:"second"}):V.s(r,e)},S:function(r,e){return V.S(r,e)},X:function(r,e,n,a){var o=a._originalDate||r,i=o.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return Xt(i);case"XXXX":case"XX":return re(i);case"XXXXX":case"XXX":default:return re(i,":")}},x:function(r,e,n,a){var o=a._originalDate||r,i=o.getTimezoneOffset();switch(e){case"x":return Xt(i);case"xxxx":case"xx":return re(i);case"xxxxx":case"xxx":default:return re(i,":")}},O:function(r,e,n,a){var o=a._originalDate||r,i=o.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Qt(i,":");case"OOOO":default:return"GMT"+re(i,":")}},z:function(r,e,n,a){var o=a._originalDate||r,i=o.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Qt(i,":");case"zzzz":default:return"GMT"+re(i,":")}},t:function(r,e,n,a){var o=a._originalDate||r,i=Math.floor(o.getTime()/1e3);return D(i,e.length)},T:function(r,e,n,a){var o=a._originalDate||r,i=o.getTime();return D(i,e.length)}};function Qt(t,r){var e=t>0?"-":"+",n=Math.abs(t),a=Math.floor(n/60),o=n%60;if(o===0)return e+String(a);var i=r||"";return e+String(a)+i+D(o,2)}function Xt(t,r){if(t%60===0){var e=t>0?"-":"+";return e+D(Math.abs(t)/60,2)}return re(t,r)}function re(t,r){var e=r||"",n=t>0?"-":"+",a=Math.abs(t),o=D(Math.floor(a/60),2),i=D(a%60,2);return n+o+e+i}var Gt=qn;var Jt=function(r,e){switch(r){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},Zt=function(r,e){switch(r){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Rn=function(r,e){var n=r.match(/(P+)(p+)?/)||[],a=n[1],o=n[2];if(!o)return Jt(r,e);var i;switch(a){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",Jt(a,e)).replace("{{time}}",Zt(o,e))},Hn={p:Zt,P:Rn},Kt=Hn;var $n=["D","DD"],Vn=["YY","YYYY"];function er(t){return $n.indexOf(t)!==-1}function tr(t){return Vn.indexOf(t)!==-1}function xt(t,r,e){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(r,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(r,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(r,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(r,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Bn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},jn=function(r,e,n){var a,o=Bn[r];return typeof o=="string"?a=o:e===1?a=o.one:a=o.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},rr=jn;function he(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.width?String(r.width):t.defaultWidth,n=t.formats[e]||t.formats[t.defaultWidth];return n}}var zn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Qn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Xn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Gn={date:he({formats:zn,defaultWidth:"full"}),time:he({formats:Qn,defaultWidth:"full"}),dateTime:he({formats:Xn,defaultWidth:"full"})},nr=Gn;var Jn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Zn=function(r,e,n,a){return Jn[r]},ar=Zn;function ne(t){return function(r,e){var n=e!=null&&e.context?String(e.context):"standalone",a;if(n==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,i=e!=null&&e.width?String(e.width):o;a=t.formattingValues[i]||t.formattingValues[o]}else{var l=t.defaultWidth,f=e!=null&&e.width?String(e.width):t.defaultWidth;a=t.values[f]||t.values[l]}var c=t.argumentCallback?t.argumentCallback(r):r;return a[c]}}var Kn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ea={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ta={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ra={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},na={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},aa={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},oa=function(r,e){var n=Number(r),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},ia={ordinalNumber:oa,era:ne({values:Kn,defaultWidth:"wide"}),quarter:ne({values:ea,defaultWidth:"wide",argumentCallback:function(r){return r-1}}),month:ne({values:ta,defaultWidth:"wide"}),day:ne({values:ra,defaultWidth:"wide"}),dayPeriod:ne({values:na,defaultWidth:"wide",formattingValues:aa,defaultFormattingWidth:"wide"})},or=ia;function ae(t){return function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.width,a=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],o=r.match(a);if(!o)return null;var i=o[0],l=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],f=Array.isArray(l)?sa(l,function(h){return h.test(i)}):ua(l,function(h){return h.test(i)}),c;c=t.valueCallback?t.valueCallback(f):f,c=e.valueCallback?e.valueCallback(c):c;var u=r.slice(i.length);return{value:c,rest:u}}}function ua(t,r){for(var e in t)if(t.hasOwnProperty(e)&&r(t[e]))return e}function sa(t,r){for(var e=0;e<t.length;e++)if(r(t[e]))return e}function bt(t){return function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.match(t.matchPattern);if(!n)return null;var a=n[0],o=r.match(t.parsePattern);if(!o)return null;var i=t.valueCallback?t.valueCallback(o[0]):o[0];i=e.valueCallback?e.valueCallback(i):i;var l=r.slice(a.length);return{value:i,rest:l}}}var la=/^(\d+)(th|st|nd|rd)?/i,fa=/\d+/i,da={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ma={any:[/^b/i,/^(a|c)/i]},ca={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pa={any:[/1/i,/2/i,/3/i,/4/i]},ha={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},_a={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},va={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ga={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ya={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},xa={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ba={ordinalNumber:bt({matchPattern:la,parsePattern:fa,valueCallback:function(r){return parseInt(r,10)}}),era:ae({matchPatterns:da,defaultMatchWidth:"wide",parsePatterns:ma,defaultParseWidth:"any"}),quarter:ae({matchPatterns:ca,defaultMatchWidth:"wide",parsePatterns:pa,defaultParseWidth:"any",valueCallback:function(r){return r+1}}),month:ae({matchPatterns:ha,defaultMatchWidth:"wide",parsePatterns:_a,defaultParseWidth:"any"}),day:ae({matchPatterns:va,defaultMatchWidth:"wide",parsePatterns:ga,defaultParseWidth:"any"}),dayPeriod:ae({matchPatterns:ya,defaultMatchWidth:"any",parsePatterns:xa,defaultParseWidth:"any"})},ir=ba;var wa={code:"en-US",formatDistance:rr,formatLong:nr,formatRelative:ar,localize:or,match:ir,options:{weekStartsOn:0,firstWeekContainsDate:1}},ur=wa;var We=ur;var ka=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Oa=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ta=/^'([^]*?)'?$/,Ma=/''/g,Da=/[a-zA-Z]/;function B(t,r,e){var n,a,o,i,l,f,c,u,h,p,d,v,b,m,O,P,U,Y;g(2,arguments);var F=String(r),E=R(),w=(n=(a=e==null?void 0:e.locale)!==null&&a!==void 0?a:E.locale)!==null&&n!==void 0?n:We,k=S((o=(i=(l=(f=e==null?void 0:e.firstWeekContainsDate)!==null&&f!==void 0?f:e==null||(c=e.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&l!==void 0?l:E.firstWeekContainsDate)!==null&&i!==void 0?i:(h=E.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=S((d=(v=(b=(m=e==null?void 0:e.weekStartsOn)!==null&&m!==void 0?m:e==null||(O=e.locale)===null||O===void 0||(P=O.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&b!==void 0?b:E.weekStartsOn)!==null&&v!==void 0?v:(U=E.locale)===null||U===void 0||(Y=U.options)===null||Y===void 0?void 0:Y.weekStartsOn)!==null&&d!==void 0?d:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!w.localize)throw new RangeError("locale must contain localize property");if(!w.formatLong)throw new RangeError("locale must contain formatLong property");var x=y(t);if(!rt(x))throw new RangeError("Invalid time value");var M=se(x),T=pt(x,M),q={firstWeekContainsDate:k,weekStartsOn:A,locale:w,_originalDate:x},X=F.match(Oa).map(function(N){var I=N[0];if(I==="p"||I==="P"){var G=Kt[I];return G(N,w.formatLong)}return N}).join("").match(ka).map(function(N){if(N==="''")return"'";var I=N[0];if(I==="'")return Ca(N);var G=Gt[I];if(G)return!(e!=null&&e.useAdditionalWeekYearTokens)&&tr(N)&&xt(N,r,String(t)),!(e!=null&&e.useAdditionalDayOfYearTokens)&&er(N)&&xt(N,r,String(t)),G(T,N,w.localize,q);if(I.match(Da))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return N}).join("");return X}function Ca(t){var r=t.match(Ta);return r?r[1].replace(Ma,"'"):t}var Sa=["years","months","weeks","days","hours","minutes","seconds"];function Ee(t,r){var e,n,a,o,i;if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var l=R(),f=(e=(n=r==null?void 0:r.locale)!==null&&n!==void 0?n:l.locale)!==null&&e!==void 0?e:We,c=(a=r==null?void 0:r.format)!==null&&a!==void 0?a:Sa,u=(o=r==null?void 0:r.zero)!==null&&o!==void 0?o:!1,h=(i=r==null?void 0:r.delimiter)!==null&&i!==void 0?i:" ";if(!f.formatDistance)return"";var p=c.reduce(function(d,v){var b="x".concat(v.replace(/(^.)/,function(O){return O.toUpperCase()})),m=t[v];return typeof m=="number"&&(u||t[v])?d.concat(f.formatDistance(b,m)):d},[]).join(h);return p}function Ie(t){g(1,arguments);var r=y(t.start),e=y(t.end);if(isNaN(r.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(e.getTime()))throw new RangeError("End Date is invalid");var n={};n.years=Math.abs(ct(e,r));var a=H(e,r),o=ee(r,{years:a*n.years});n.months=Math.abs(dt(e,o));var i=ee(o,{months:a*n.months});n.days=Math.abs(ot(e,i));var l=ee(i,{days:a*n.days});n.hours=Math.abs(it(e,l));var f=ee(l,{hours:a*n.hours});n.minutes=Math.abs(ut(e,f));var c=ee(f,{minutes:a*n.minutes});return n.seconds=Math.abs(mt(e,c)),n}var ye,_,mr,Pa,_e,sr,cr,Ae={},pr=[],Wa=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function j(t,r){for(var e in r)t[e]=r[e];return t}function hr(t){var r=t.parentNode;r&&r.removeChild(t)}function s(t,r,e){var n,a,o,i={};for(o in r)o=="key"?n=r[o]:o=="ref"?a=r[o]:i[o]=r[o];if(arguments.length>2&&(i.children=arguments.length>3?ye.call(arguments,2):e),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)i[o]===void 0&&(i[o]=t.defaultProps[o]);return ve(t,i,n,a,null)}function ve(t,r,e,n,a){var o={type:t,props:r,key:e,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a==null?++mr:a};return a==null&&_.vnode!=null&&_.vnode(o),o}function kt(){return{current:null}}function C(t){return t.children}function L(t,r){this.props=t,this.context=r}function ge(t,r){if(r==null)return t.__?ge(t.__,t.__.__k.indexOf(t)+1):null;for(var e;r<t.__k.length;r++)if((e=t.__k[r])!=null&&e.__e!=null)return e.__e;return typeof t.type=="function"?ge(t):null}function _r(t){var r,e;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if((e=t.__k[r])!=null&&e.__e!=null){t.__e=t.__c.base=e.__e;break}return _r(t)}}function wt(t){(!t.__d&&(t.__d=!0)&&_e.push(t)&&!Ue.__r++||sr!==_.debounceRendering)&&((sr=_.debounceRendering)||setTimeout)(Ue)}function Ue(){for(var t;Ue.__r=_e.length;)t=_e.sort(function(r,e){return r.__v.__b-e.__v.__b}),_e=[],t.some(function(r){var e,n,a,o,i,l;r.__d&&(i=(o=(e=r).__v).__e,(l=e.__P)&&(n=[],(a=j({},o)).__v=o.__v+1,Ot(l,o,a,e.__n,l.ownerSVGElement!==void 0,o.__h!=null?[i]:null,n,i==null?ge(o):i,o.__h),xr(n,o),o.__e!=i&&_r(o)))})}function vr(t,r,e,n,a,o,i,l,f,c){var u,h,p,d,v,b,m,O=n&&n.__k||pr,P=O.length;for(e.__k=[],u=0;u<r.length;u++)if((d=e.__k[u]=(d=r[u])==null||typeof d=="boolean"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?ve(null,d,null,null,d):Array.isArray(d)?ve(C,{children:d},null,null,null):d.__b>0?ve(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=e,d.__b=e.__b+1,(p=O[u])===null||p&&d.key==p.key&&d.type===p.type)O[u]=void 0;else for(h=0;h<P;h++){if((p=O[h])&&d.key==p.key&&d.type===p.type){O[h]=void 0;break}p=null}Ot(t,d,p=p||Ae,a,o,i,l,f,c),v=d.__e,(h=d.ref)&&p.ref!=h&&(m||(m=[]),p.ref&&m.push(p.ref,null,d),m.push(h,d.__c||v,d)),v!=null?(b==null&&(b=v),typeof d.type=="function"&&d.__k===p.__k?d.__d=f=gr(d,f,t):f=yr(t,d,p,O,v,f),typeof e.type=="function"&&(e.__d=f)):f&&p.__e==f&&f.parentNode!=t&&(f=ge(p))}for(e.__e=b,u=P;u--;)O[u]!=null&&wr(O[u],O[u]);if(m)for(u=0;u<m.length;u++)br(m[u],m[++u],m[++u])}function gr(t,r,e){for(var n,a=t.__k,o=0;a&&o<a.length;o++)(n=a[o])&&(n.__=t,r=typeof n.type=="function"?gr(n,r,e):yr(e,n,n,a,n.__e,r));return r}function $(t,r){return r=r||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(e){$(e,r)}):r.push(t)),r}function yr(t,r,e,n,a,o){var i,l,f;if(r.__d!==void 0)i=r.__d,r.__d=void 0;else if(e==null||a!=o||a.parentNode==null)e:if(o==null||o.parentNode!==t)t.appendChild(a),i=null;else{for(l=o,f=0;(l=l.nextSibling)&&f<n.length;f+=1)if(l==a)break e;t.insertBefore(a,o),i=o}return i!==void 0?i:a.nextSibling}function Ea(t,r,e,n,a){var o;for(o in e)o==="children"||o==="key"||o in r||Ye(t,o,null,e[o],n);for(o in r)a&&typeof r[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||e[o]===r[o]||Ye(t,o,r[o],e[o],n)}function lr(t,r,e){r[0]==="-"?t.setProperty(r,e):t[r]=e==null?"":typeof e!="number"||Wa.test(r)?e:e+"px"}function Ye(t,r,e,n,a){var o;e:if(r==="style")if(typeof e=="string")t.style.cssText=e;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(r in n)e&&r in e||lr(t.style,r,"");if(e)for(r in e)n&&e[r]===n[r]||lr(t.style,r,e[r])}else if(r[0]==="o"&&r[1]==="n")o=r!==(r=r.replace(/Capture$/,"")),r=r.toLowerCase()in t?r.toLowerCase().slice(2):r.slice(2),t.l||(t.l={}),t.l[r+o]=e,e?n||t.addEventListener(r,o?dr:fr,o):t.removeEventListener(r,o?dr:fr,o);else if(r!=="dangerouslySetInnerHTML"){if(a)r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(r!=="href"&&r!=="list"&&r!=="form"&&r!=="tabIndex"&&r!=="download"&&r in t)try{t[r]=e==null?"":e;break e}catch(i){}typeof e=="function"||(e==null||e===!1&&r.indexOf("-")==-1?t.removeAttribute(r):t.setAttribute(r,e))}}function fr(t){this.l[t.type+!1](_.event?_.event(t):t)}function dr(t){this.l[t.type+!0](_.event?_.event(t):t)}function Ot(t,r,e,n,a,o,i,l,f){var c,u,h,p,d,v,b,m,O,P,U,Y,F,E,w,k=r.type;if(r.constructor!==void 0)return null;e.__h!=null&&(f=e.__h,l=r.__e=e.__e,r.__h=null,o=[l]),(c=_.__b)&&c(r);try{e:if(typeof k=="function"){if(m=r.props,O=(c=k.contextType)&&n[c.__c],P=c?O?O.props.value:c.__:n,e.__c?b=(u=r.__c=e.__c).__=u.__E:("prototype"in k&&k.prototype.render?r.__c=u=new k(m,P):(r.__c=u=new L(m,P),u.constructor=k,u.render=Aa),O&&O.sub(u),u.props=m,u.state||(u.state={}),u.context=P,u.__n=n,h=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),k.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=j({},u.__s)),j(u.__s,k.getDerivedStateFromProps(m,u.__s))),p=u.props,d=u.state,h)k.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(k.getDerivedStateFromProps==null&&m!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(m,P),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(m,u.__s,P)===!1||r.__v===e.__v){for(u.props=m,u.state=u.__s,r.__v!==e.__v&&(u.__d=!1),u.__v=r,r.__e=e.__e,r.__k=e.__k,r.__k.forEach(function(A){A&&(A.__=r)}),U=0;U<u._sb.length;U++)u.__h.push(u._sb[U]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(m,u.__s,P),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,d,v)})}if(u.context=P,u.props=m,u.__v=r,u.__P=t,Y=_.__r,F=0,"prototype"in k&&k.prototype.render){for(u.state=u.__s,u.__d=!1,Y&&Y(r),c=u.render(u.props,u.state,u.context),E=0;E<u._sb.length;E++)u.__h.push(u._sb[E]);u._sb=[]}else do u.__d=!1,Y&&Y(r),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++F<25);u.state=u.__s,u.getChildContext!=null&&(n=j(j({},n),u.getChildContext())),h||u.getSnapshotBeforeUpdate==null||(v=u.getSnapshotBeforeUpdate(p,d)),w=c!=null&&c.type===C&&c.key==null?c.props.children:c,vr(t,Array.isArray(w)?w:[w],r,e,n,a,o,i,l,f),u.base=r.__e,r.__h=null,u.__h.length&&i.push(u),b&&(u.__E=u.__=null),u.__e=!1}else o==null&&r.__v===e.__v?(r.__k=e.__k,r.__e=e.__e):r.__e=Ia(e.__e,r,e,n,a,o,i,f);(c=_.diffed)&&c(r)}catch(A){r.__v=null,(f||o!=null)&&(r.__e=l,r.__h=!!f,o[o.indexOf(l)]=null),_.__e(A,r,e)}}function xr(t,r){_.__c&&_.__c(r,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(n){n.call(e)})}catch(n){_.__e(n,e.__v)}})}function Ia(t,r,e,n,a,o,i,l){var f,c,u,h=e.props,p=r.props,d=r.type,v=0;if(d==="svg"&&(a=!0),o!=null){for(;v<o.length;v++)if((f=o[v])&&"setAttribute"in f==!!d&&(d?f.localName===d:f.nodeType===3)){t=f,o[v]=null;break}}if(t==null){if(d===null)return document.createTextNode(p);t=a?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,l=!1}if(d===null)h===p||l&&t.data===p||(t.data=p);else{if(o=o&&ye.call(t.childNodes),c=(h=e.props||Ae).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!l){if(o!=null)for(h={},v=0;v<t.attributes.length;v++)h[t.attributes[v].name]=t.attributes[v].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(Ea(t,p,h,a,l),u)r.__k=[];else if(v=r.props.children,vr(t,Array.isArray(v)?v:[v],r,e,n,a&&d!=="foreignObject",o,i,o?o[0]:e.__k&&ge(e,0),l),o!=null)for(v=o.length;v--;)o[v]!=null&&hr(o[v]);l||("value"in p&&(v=p.value)!==void 0&&(v!==t.value||d==="progress"&&!v||d==="option"&&v!==h.value)&&Ye(t,"value",v,h.value,!1),"checked"in p&&(v=p.checked)!==void 0&&v!==t.checked&&Ye(t,"checked",v,h.checked,!1))}return t}function br(t,r,e){try{typeof t=="function"?t(r):t.current=r}catch(n){_.__e(n,e)}}function wr(t,r,e){var n,a;if(_.unmount&&_.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||br(n,null,r)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){_.__e(o,r)}n.base=n.__P=null,t.__c=void 0}if(n=t.__k)for(a=0;a<n.length;a++)n[a]&&wr(n[a],r,e||typeof t.type!="function");e||t.__e==null||hr(t.__e),t.__=t.__e=t.__d=void 0}function Aa(t,r,e){return this.constructor(t,e)}function z(t,r,e){var n,a,o;_.__&&_.__(t,r),a=(n=typeof e=="function")?null:e&&e.__k||r.__k,o=[],Ot(r,t=(!n&&e||r).__k=s(C,null,[t]),a||Ae,Ae,r.ownerSVGElement!==void 0,!n&&e?[e]:a?null:r.firstChild?ye.call(r.childNodes):null,o,!n&&e?e:a?a.__e:r.firstChild,n),xr(o,t)}function Tt(t,r){z(t,r,Tt)}function kr(t,r,e){var n,a,o,i=j({},t.props);for(o in r)o=="key"?n=r[o]:o=="ref"?a=r[o]:i[o]=r[o];return arguments.length>2&&(i.children=arguments.length>3?ye.call(arguments,2):e),ve(t.type,i,n||t.key,a||t.ref,null)}function Mt(t,r){var e={__c:r="__cC"+cr++,__:t,Consumer:function(n,a){return n.children(a)},Provider:function(n){var a,o;return this.getChildContext||(a=[],(o={})[r]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&a.some(wt)},this.sub=function(i){a.push(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){a.splice(a.indexOf(i),1),l&&l.call(i)}}),n.children}};return e.Provider.__=e.Consumer.contextType=e}ye=pr.slice,_={__e:function(t,r,e,n){for(var a,o,i;r=r.__;)if((a=r.__c)&&!a.__)try{if((o=a.constructor)&&o.getDerivedStateFromError!=null&&(a.setState(o.getDerivedStateFromError(t)),i=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(t,n||{}),i=a.__d),i)return a.__E=a}catch(l){t=l}throw t}},mr=0,Pa=function(t){return t!=null&&t.constructor===void 0},L.prototype.setState=function(t,r){var e;e=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=j({},this.state),typeof t=="function"&&(t=t(j({},e),this.props)),t&&j(e,t),t!=null&&this.__v&&(r&&this._sb.push(r),wt(this))},L.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),wt(this))},L.prototype.render=C,_e=[],Ue.__r=0,cr=0;var Ua=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,Wr=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,Ne=/[\s\n\\/='"\0<>]/,Er=/^xlink:?./,Ya=/["&<]/;function we(t){if(Ya.test(t+="")===!1)return t;for(var r=0,e=0,n="",a="";e<t.length;e++){switch(t.charCodeAt(e)){case 34:a="&quot;";break;case 38:a="&amp;";break;case 60:a="&lt;";break;default:continue}e!==r&&(n+=t.slice(r,e)),n+=a,r=e+1}return e!==r&&(n+=t.slice(r,e)),n}var Or=function(t,r){return String(t).replace(/(\n+)/g,"$1"+(r||" "))},Tr=function(t,r,e){return String(t).length>(r||40)||!e&&String(t).indexOf(`
+`)!==-1||String(t).indexOf("<")!==-1},Mr={},Na=/([A-Z])/g;function Ir(t){var r="";for(var e in t){var n=t[e];n!=null&&n!==""&&(r&&(r+=" "),r+=e[0]=="-"?e:Mr[e]||(Mr[e]=e.replace(Na,"-$1").toLowerCase()),r=typeof n=="number"&&Ua.test(e)===!1?r+": "+n+"px;":r+": "+n+";")}return r||void 0}function St(t,r){return Array.isArray(r)?r.reduce(St,t):r!=null&&r!==!1&&t.push(r),t}function Dr(){this.__d=!0}function Ar(t,r){return{__v:t,context:r,props:t.props,setState:Dr,forceUpdate:Dr,__d:!0,__h:[]}}function Fe(t,r){var e=t.contextType,n=e&&r[e.__c];return e!=null?n?n.props.value:e.__:r}var Dt=[];function xe(t,r,e,n,a,o){if(t==null||typeof t=="boolean")return"";if(typeof t!="object")return typeof t=="function"?"":we(t);var i=e.pretty,l=i&&typeof i=="string"?i:" ";if(Array.isArray(t)){for(var f="",c=0;c<t.length;c++)i&&c>0&&(f+=`
+`),f+=xe(t[c],r,e,n,a,o);return f}if(t.constructor!==void 0)return"";var u,h=t.type,p=t.props,d=!1;if(typeof h=="function"){if(d=!0,!e.shallow||!n&&e.renderRootComponent!==!1){if(h===C){var v=[];return St(v,t.props.children),xe(v,r,e,e.shallowHighOrder!==!1,a,o)}var b,m=t.__c=Ar(t,r);_.__b&&_.__b(t);var O=_.__r;if(h.prototype&&typeof h.prototype.render=="function"){var P=Fe(h,r);(m=t.__c=new h(p,P)).__v=t,m._dirty=m.__d=!0,m.props=p,m.state==null&&(m.state={}),m._nextState==null&&m.__s==null&&(m._nextState=m.__s=m.state),m.context=P,h.getDerivedStateFromProps?m.state=Object.assign({},m.state,h.getDerivedStateFromProps(m.props,m.state)):m.componentWillMount&&(m.componentWillMount(),m.state=m._nextState!==m.state?m._nextState:m.__s!==m.state?m.__s:m.state),O&&O(t),b=m.render(m.props,m.state,m.context)}else for(var U=Fe(h,r),Y=0;m.__d&&Y++<25;)m.__d=!1,O&&O(t),b=h.call(t.__c,p,U);return m.getChildContext&&(r=Object.assign({},r,m.getChildContext())),_.diffed&&_.diffed(t),xe(b,r,e,e.shallowHighOrder!==!1,a,o)}h=(u=h).displayName||u!==Function&&u.name||function(ze){var Qe=(Function.prototype.toString.call(ze).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!Qe){for(var Me=-1,Xe=Dt.length;Xe--;)if(Dt[Xe]===ze){Me=Xe;break}Me<0&&(Me=Dt.push(ze)-1),Qe="UnnamedComponent"+Me}return Qe}(u)}var F,E,w="<"+h;if(p){var k=Object.keys(p);e&&e.sortAttributes===!0&&k.sort();for(var A=0;A<k.length;A++){var x=k[A],M=p[x];if(x!=="children"){if(!Ne.test(x)&&(e&&e.allAttributes||x!=="key"&&x!=="ref"&&x!=="__self"&&x!=="__source")){if(x==="defaultValue")x="value";else if(x==="defaultChecked")x="checked";else if(x==="defaultSelected")x="selected";else if(x==="className"){if(p.class!==void 0)continue;x="class"}else a&&Er.test(x)&&(x=x.toLowerCase().replace(/^xlink:?/,"xlink:"));if(x==="htmlFor"){if(p.for)continue;x="for"}x==="style"&&M&&typeof M=="object"&&(M=Ir(M)),x[0]==="a"&&x[1]==="r"&&typeof M=="boolean"&&(M=String(M));var T=e.attributeHook&&e.attributeHook(x,M,r,e,d);if(T||T==="")w+=T;else if(x==="dangerouslySetInnerHTML")E=M&&M.__html;else if(h==="textarea"&&x==="value")F=M;else if((M||M===0||M==="")&&typeof M!="function"){if(!(M!==!0&&M!==""||(M=x,e&&e.xml))){w=w+" "+x;continue}if(x==="value"){if(h==="select"){o=M;continue}h==="option"&&o==M&&p.selected===void 0&&(w+=" selected")}w=w+" "+x+'="'+we(M)+'"'}}}else F=M}}if(i){var q=w.replace(/\n\s*/," ");q===w||~q.indexOf(`
+`)?i&&~w.indexOf(`
+`)&&(w+=`
+`):w=q}if(w+=">",Ne.test(h))throw new Error(h+" is not a valid HTML tag name in "+w);var X,N=Wr.test(h)||e.voidElements&&e.voidElements.test(h),I=[];if(E)i&&Tr(E)&&(E=`
+`+l+Or(E,l)),w+=E;else if(F!=null&&St(X=[],F).length){for(var G=i&&~w.indexOf(`
+`),Rt=!1,Ve=0;Ve<X.length;Ve++){var Be=X[Ve];if(Be!=null&&Be!==!1){var K=xe(Be,r,e,!0,h==="svg"||h!=="foreignObject"&&a,o);if(i&&!G&&Tr(K)&&(G=!0),K)if(i){var Ht=K.length>0&&K[0]!="<";Rt&&Ht?I[I.length-1]+=K:I.push(K),Rt=Ht}else I.push(K)}}if(i&&G)for(var je=I.length;je--;)I[je]=`
+`+l+Or(I[je],l)}if(I.length||E)w+=I.join("");else if(e&&e.xml)return w.substring(0,w.length-1)+" />";return!N||X||E?(i&&~w.indexOf(`
+`)&&(w+=`
+`),w=w+"</"+h+">"):w=w.replace(/>$/," />"),w}var Fa={shallow:!0};oe.render=oe;var La=function(t,r){return oe(t,r,Fa)},Cr=[];function oe(t,r,e){r=r||{};var n=_.__s;_.__s=!0;var a,o=s(C,null);return o.__k=[t],a=e&&(e.pretty||e.voidElements||e.sortAttributes||e.shallow||e.allAttributes||e.xml||e.attributeHook)?xe(t,r,e):be(t,r,!1,void 0,o),_.__c&&_.__c(t,Cr),_.__s=n,Cr.length=0,a}function Ct(t){return t==null||typeof t=="boolean"?null:typeof t=="string"||typeof t=="number"||typeof t=="bigint"?s(null,null,t):t}function qa(t,r){return t==="className"?"class":t==="htmlFor"?"for":t==="defaultValue"?"value":t==="defaultChecked"?"checked":t==="defaultSelected"?"selected":r&&Er.test(t)?t.toLowerCase().replace(/^xlink:?/,"xlink:"):t}function Ra(t,r){return t==="style"&&r!=null&&typeof r=="object"?Ir(r):t[0]==="a"&&t[1]==="r"&&typeof r=="boolean"?String(r):r}var Sr=Array.isArray,Pr=Object.assign;function be(t,r,e,n,a){if(t==null||t===!0||t===!1||t==="")return"";if(typeof t!="object")return typeof t=="function"?"":we(t);if(Sr(t)){var o="";a.__k=t;for(var i=0;i<t.length;i++)o+=be(t[i],r,e,n,a),t[i]=Ct(t[i]);return o}if(t.constructor!==void 0)return"";t.__=a,_.__b&&_.__b(t);var l=t.type,f=t.props;if(typeof l=="function"){var c;if(l===C)c=f.children;else{c=l.prototype&&typeof l.prototype.render=="function"?function(k,A){var x=k.type,M=Fe(x,A),T=new x(k.props,M);k.__c=T,T.__v=k,T.__d=!0,T.props=k.props,T.state==null&&(T.state={}),T.__s==null&&(T.__s=T.state),T.context=M,x.getDerivedStateFromProps?T.state=Pr({},T.state,x.getDerivedStateFromProps(T.props,T.state)):T.componentWillMount&&(T.componentWillMount(),T.state=T.__s!==T.state?T.__s:T.state);var q=_.__r;return q&&q(k),T.render(T.props,T.state,T.context)}(t,r):function(k,A){var x,M=Ar(k,A),T=Fe(k.type,A);k.__c=M;for(var q=_.__r,X=0;M.__d&&X++<25;)M.__d=!1,q&&q(k),x=k.type.call(M,k.props,T);return x}(t,r);var u=t.__c;u.getChildContext&&(r=Pr({},r,u.getChildContext()))}var h=be(c=c!=null&&c.type===C&&c.key==null?c.props.children:c,r,e,n,t);return _.diffed&&_.diffed(t),t.__=void 0,_.unmount&&_.unmount(t),h}var p,d,v="<";if(v+=l,f)for(var b in p=f.children,f){var m=f[b];if(!(b==="key"||b==="ref"||b==="__self"||b==="__source"||b==="children"||b==="className"&&"class"in f||b==="htmlFor"&&"for"in f||Ne.test(b))){if(m=Ra(b=qa(b,e),m),b==="dangerouslySetInnerHTML")d=m&&m.__html;else if(l==="textarea"&&b==="value")p=m;else if((m||m===0||m==="")&&typeof m!="function"){if(m===!0||m===""){m=b,v=v+" "+b;continue}if(b==="value"){if(l==="select"){n=m;continue}l!=="option"||n!=m||"selected"in f||(v+=" selected")}v=v+" "+b+'="'+we(m)+'"'}}}var O=v;if(v+=">",Ne.test(l))throw new Error(l+" is not a valid HTML tag name in "+v);var P="",U=!1;if(d)P+=d,U=!0;else if(typeof p=="string")P+=we(p),U=!0;else if(Sr(p)){t.__k=p;for(var Y=0;Y<p.length;Y++){var F=p[Y];if(p[Y]=Ct(F),F!=null&&F!==!1){var E=be(F,r,l==="svg"||l!=="foreignObject"&&e,n,t);E&&(P+=E,U=!0)}}}else if(p!=null&&p!==!1&&p!==!0){t.__k=[Ct(p)];var w=be(p,r,l==="svg"||l!=="foreignObject"&&e,n,t);w&&(P+=w,U=!0)}if(_.diffed&&_.diffed(t),t.__=void 0,_.unmount&&_.unmount(t),U)v+=P;else if(Wr.test(l))return O+" />";return v+"</"+l+">"}oe.shallowRender=La;function Ha(t){var r={};return function(e){return r[e]===void 0&&(r[e]=t(e)),r[e]}}var Ur=Ha;var $a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Va=Ur(function(t){return $a.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),Yr=Va;var ie,W,Pt,Nr,de=0,Vr=[],Le=[],Fr=_.__b,Lr=_.__r,qr=_.diffed,Rr=_.__c,Hr=_.unmount;function me(t,r){_.__h&&_.__h(W,t,de||r),de=0;var e=W.__H||(W.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({__V:Le}),e.__[t]}function Et(t){return de=1,It(Jr,t)}function It(t,r,e){var n=me(ie++,2);if(n.t=t,!n.__c&&(n.__=[e?e(r):Jr(void 0,r),function(o){var i=n.__N?n.__N[0]:n.__[0],l=n.t(i,o);i!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=W,!W.u)){W.u=!0;var a=W.shouldComponentUpdate;W.shouldComponentUpdate=function(o,i,l){if(!n.__c.__H)return!0;var f=n.__c.__H.__.filter(function(u){return u.__c});if(f.every(function(u){return!u.__N}))return!a||a.call(this,o,i,l);var c=!1;return f.forEach(function(u){if(u.__N){var h=u.__[0];u.__=u.__N,u.__N=void 0,h!==u.__[0]&&(c=!0)}}),!(!c&&n.__c.props===o)&&(!a||a.call(this,o,i,l))}}return n.__N||n.__}function At(t,r){var e=me(ie++,3);!_.__s&&Ut(e.__H,r)&&(e.__=t,e.i=r,W.__H.__h.push(e))}function ke(t,r){var e=me(ie++,4);!_.__s&&Ut(e.__H,r)&&(e.__=t,e.i=r,W.__h.push(e))}function Br(t){return de=5,Re(function(){return{current:t}},[])}function jr(t,r,e){de=6,ke(function(){return typeof t=="function"?(t(r()),function(){return t(null)}):t?(t.current=r(),function(){return t.current=null}):void 0},e==null?e:e.concat(t))}function Re(t,r){var e=me(ie++,7);return Ut(e.__H,r)?(e.__V=t(),e.i=r,e.__h=t,e.__V):e.__}function zr(t,r){return de=8,Re(function(){return t},r)}function Qr(t){var r=W.context[t.__c],e=me(ie++,9);return e.c=t,r?(e.__==null&&(e.__=!0,r.sub(W)),r.props.value):t.__}function Xr(t,r){_.useDebugValue&&_.useDebugValue(r?r(t):t)}function Gr(){var t=me(ie++,11);if(!t.__){for(var r=W.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;var e=r.__m||(r.__m=[0,0]);t.__="P"+e[0]+"-"+e[1]++}return t.__}function Ba(){for(var t;t=Vr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(qe),t.__H.__h.forEach(Wt),t.__H.__h=[]}catch(r){t.__H.__h=[],_.__e(r,t.__v)}}_.__b=function(t){W=null,Fr&&Fr(t)},_.__r=function(t){Lr&&Lr(t),ie=0;var r=(W=t.__c).__H;r&&(Pt===W?(r.__h=[],W.__h=[],r.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Le,e.__N=e.i=void 0})):(r.__h.forEach(qe),r.__h.forEach(Wt),r.__h=[])),Pt=W},_.diffed=function(t){qr&&qr(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(Vr.push(r)!==1&&Nr===_.requestAnimationFrame||((Nr=_.requestAnimationFrame)||ja)(Ba)),r.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Le&&(e.__=e.__V),e.i=void 0,e.__V=Le})),Pt=W=null},_.__c=function(t,r){r.some(function(e){try{e.__h.forEach(qe),e.__h=e.__h.filter(function(n){return!n.__||Wt(n)})}catch(n){r.some(function(a){a.__h&&(a.__h=[])}),r=[],_.__e(n,e.__v)}}),Rr&&Rr(t,r)},_.unmount=function(t){Hr&&Hr(t);var r,e=t.__c;e&&e.__H&&(e.__H.__.forEach(function(n){try{qe(n)}catch(a){r=a}}),e.__H=void 0,r&&_.__e(r,e.__v))};var $r=typeof requestAnimationFrame=="function";function ja(t){var r,e=function(){clearTimeout(n),$r&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(e,100);$r&&(r=requestAnimationFrame(e))}function qe(t){var r=W,e=t.__c;typeof e=="function"&&(t.__c=void 0,e()),W=r}function Wt(t){var r=W;t.__c=t.__(),W=r}function Ut(t,r){return!t||t.length!==r.length||r.some(function(e,n){return e!==t[n]})}function Jr(t,r){return typeof r=="function"?r(t):r}function un(t,r){for(var e in r)t[e]=r[e];return t}function Nt(t,r){for(var e in t)if(e!=="__source"&&!(e in r))return!0;for(var n in r)if(n!=="__source"&&t[n]!==r[n])return!0;return!1}function Yt(t,r){return t===r&&(t!==0||1/t==1/r)||t!=t&&r!=r}function Ft(t){this.props=t}function za(t,r){function e(a){var o=this.props.ref,i=o==a.ref;return!i&&o&&(o.call?o(null):o.current=null),r?!r(this.props,a)||!i:Nt(this.props,a)}function n(a){return this.shouldComponentUpdate=e,s(t,a)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(Ft.prototype=new L).isPureReactComponent=!0,Ft.prototype.shouldComponentUpdate=function(t,r){return Nt(this.props,t)||Nt(this.state,r)};var Zr=_.__b;_.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Zr&&Zr(t)};var Qa=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Xa(t){function r(e){var n=un({},e);return delete n.ref,t(n,e.ref||null)}return r.$$typeof=Qa,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(t.displayName||t.name)+")",r}var Kr=function(t,r){return t==null?null:$($(t).map(r))},Ga={map:Kr,forEach:Kr,count:function(t){return t?$(t).length:0},only:function(t){var r=$(t);if(r.length!==1)throw"Children.only";return r[0]},toArray:$},Ja=_.__e;_.__e=function(t,r,e,n){if(t.then){for(var a,o=r;o=o.__;)if((a=o.__c)&&a.__c)return r.__e==null&&(r.__e=e.__e,r.__k=e.__k),a.__c(t,r)}Ja(t,r,e,n)};var en=_.unmount;function sn(t,r,e){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=un({},t)).__c!=null&&(t.__c.__P===e&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return sn(n,r,e)})),t}function ln(t,r,e){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return ln(n,r,e)}),t.__c&&t.__c.__P===r&&(t.__e&&e.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=e)),t}function He(){this.__u=0,this.t=null,this.__b=null}function fn(t){var r=t.__.__c;return r&&r.__a&&r.__a(t)}function Za(t){var r,e,n;function a(o){if(r||(r=t()).then(function(i){e=i.default||i},function(i){n=i}),n)throw n;if(!e)throw r;return s(e,o)}return a.displayName="Lazy",a.__f=!0,a}function Oe(){this.u=null,this.o=null}_.unmount=function(t){var r=t.__c;r&&r.__R&&r.__R(),r&&t.__h===!0&&(t.type=null),en&&en(t)},(He.prototype=new L).__c=function(t,r){var e=r.__c,n=this;n.t==null&&(n.t=[]),n.t.push(e);var a=fn(n.__v),o=!1,i=function(){o||(o=!0,e.__R=null,a?a(l):l())};e.__R=i;var l=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=ln(c,c.__c.__P,c.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.t.pop();)u.forceUpdate()}},f=r.__h===!0;n.__u++||f||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(i,i)},He.prototype.componentWillUnmount=function(){this.t=[]},He.prototype.render=function(t,r){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=sn(this.__b,e,n.__O=n.__P)}this.__b=null}var a=r.__a&&s(C,null,t.fallback);return a&&(a.__h=null),[s(C,null,r.__a?null:t.children),a]};var tn=function(t,r,e){if(++e[1]===e[0]&&t.o.delete(r),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(e=t.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;t.u=e=e[2]}};function Ka(t){return this.getChildContext=function(){return t.context},t.children}function eo(t){var r=this,e=t.i;r.componentWillUnmount=function(){z(null,r.l),r.l=null,r.i=null},r.i&&r.i!==e&&r.componentWillUnmount(),t.__v?(r.l||(r.i=e,r.l={nodeType:1,parentNode:e,childNodes:[],appendChild:function(n){this.childNodes.push(n),r.i.appendChild(n)},insertBefore:function(n,a){this.childNodes.push(n),r.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),r.i.removeChild(n)}}),z(s(Ka,{context:r.context},t.__v),r.l)):r.l&&r.componentWillUnmount()}function to(t,r){var e=s(eo,{__v:t,i:r});return e.containerInfo=r,e}(Oe.prototype=new L).__a=function(t){var r=this,e=fn(r.__v),n=r.o.get(t);return n[0]++,function(a){var o=function(){r.props.revealOrder?(n.push(a),tn(r,t,n)):a()};e?e(o):o()}},Oe.prototype.render=function(t){this.u=null,this.o=new Map;var r=$(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&r.reverse();for(var e=r.length;e--;)this.o.set(r[e],this.u=[1,0,this.u]);return t.children},Oe.prototype.componentDidUpdate=Oe.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(r,e){tn(t,e,r)})};var dn=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,ro=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,no=typeof document!="undefined",ao=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};function oo(t,r,e){return r.__k==null&&(r.textContent=""),z(t,r),typeof e=="function"&&e(),t?t.__c:null}function io(t,r,e){return Tt(t,r),typeof e=="function"&&e(),t?t.__c:null}L.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(L.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})});var rn=_.event;function uo(){}function so(){return this.cancelBubble}function lo(){return this.defaultPrevented}_.event=function(t){return rn&&(t=rn(t)),t.persist=uo,t.isPropagationStopped=so,t.isDefaultPrevented=lo,t.nativeEvent=t};var mn,nn={configurable:!0,get:function(){return this.class}},an=_.vnode;_.vnode=function(t){var r=t.type,e=t.props,n=e;if(typeof r=="string"){var a=r.indexOf("-")===-1;for(var o in n={},e){var i=e[o];no&&o==="children"&&r==="noscript"||o==="value"&&"defaultValue"in e&&i==null||(o==="defaultValue"&&"value"in e&&e.value==null?o="value":o==="download"&&i===!0?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+r)&&!ao(e.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():a&&ro.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():i===null&&(i=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o="oninputCapture")),n[o]=i)}r=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=$(e.children).forEach(function(l){l.props.selected=n.value.indexOf(l.props.value)!=-1})),r=="select"&&n.defaultValue!=null&&(n.value=$(e.children).forEach(function(l){l.props.selected=n.multiple?n.defaultValue.indexOf(l.props.value)!=-1:n.defaultValue==l.props.value})),t.props=n,e.class!=e.className&&(nn.enumerable="className"in e,e.className!=null&&(n.class=e.className),Object.defineProperty(n,"className",nn))}t.$$typeof=dn,an&&an(t)};var on=_.__r;_.__r=function(t){on&&on(t),mn=t.__c};var fo={ReactCurrentDispatcher:{current:{readContext:function(t){return mn.__n[t.__c].props.value}}}};function mo(t){return s.bind(null,t)}function cn(t){return!!t&&t.$$typeof===dn}function co(t){return cn(t)?kr.apply(null,arguments):t}function po(t){return!!t.__k&&(z(null,t),!0)}function ho(t){return t&&(t.base||t.nodeType===1&&t)||null}var _o=function(t,r){return t(r)},vo=function(t,r){return t(r)},go=C;function pn(t){t()}function yo(t){return t}function xo(){return[!1,pn]}var bo=ke;function wo(t,r){var e=r(),n=Et({h:{__:e,v:r}}),a=n[0].h,o=n[1];return ke(function(){a.__=e,a.v=r,Yt(a.__,r())||o({h:a})},[t,e,r]),At(function(){return Yt(a.__,a.v())||o({h:a}),t(function(){Yt(a.__,a.v())||o({h:a})})},[t]),e}var Te={useState:Et,useId:Gr,useReducer:It,useEffect:At,useLayoutEffect:ke,useInsertionEffect:bo,useTransition:xo,useDeferredValue:yo,useSyncExternalStore:wo,startTransition:pn,useRef:Br,useImperativeHandle:jr,useMemo:Re,useCallback:zr,useContext:Qr,useDebugValue:Xr,version:"17.0.2",Children:Ga,render:oo,hydrate:io,unmountComponentAtNode:po,createPortal:to,createElement:s,createContext:Mt,createFactory:mo,cloneElement:co,createRef:kt,Fragment:C,isValidElement:cn,findDOMNode:ho,Component:L,PureComponent:Ft,memo:za,forwardRef:Xa,flushSync:vo,unstable_batchedUpdates:_o,StrictMode:go,Suspense:He,SuspenseList:Oe,lazy:Za,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fo};var ko=function(){let r=Array.prototype.slice.call(arguments).filter(Boolean),e={},n=[];r.forEach(o=>{(o?o.split(" "):[]).forEach(l=>{if(l.startsWith("atm_")){let[,f]=l.split("_");e[f]=l}else n.push(l)})});let a=[];for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.push(e[o]);return a.push(...n),a.join(" ")},$e=ko;var Oo=t=>t.toUpperCase()===t,To=t=>r=>t.indexOf(r)===-1,hn=(t,r)=>{let e={};return Object.keys(t).filter(To(r)).forEach(n=>{e[n]=t[n]}),e};function Mo(t,r,e){let n=hn(r,e);return typeof t=="string"&&t.indexOf("-")===-1&&!Oo(t[0])&&Object.keys(n).forEach(a=>{Yr(a)||delete n[a]}),n}var Do=(t,r)=>{};function Co(t){return r=>{let e=(a,o)=>{let{as:i=t,class:l}=a,f=Mo(i,a,["as","class"]);f.ref=o,f.className=r.atomic?$e(r.class,f.className||l):$e(f.className||l,r.class);let{vars:c}=r;if(c){let u={};for(let d in c){let v=c[d],b=v[0],m=v[1]||"",O=typeof b=="function"?b(a):b;Do(O,r.name),u[`--${d}`]=`${O}${m}`}let h=f.style||{},p=Object.keys(h);p.length>0&&p.forEach(d=>{u[d]=h[d]}),f.style=u}return t.__linaria&&t!==i?(f.as=i,Te.createElement(t,f)):Te.createElement(i,f)},n=Te.forwardRef?Te.forwardRef(e):a=>{let o=hn(a,["innerRef"]);return e(o,a.innerRef)};return n.displayName=r.name,n.__linaria={className:r.class,extends:t},n}}var ue=Co;var _n=ue("footer")({name:"FooterBar",class:"fef0x5t"}),vn=ue("div")({name:"Page",class:"p1b3vqup"});var gn=ue("div")({name:"InfoBox",class:"i1pkgksb"}),Q=ue("dl")({name:"TableExpanded",class:"t2c81u8"}),yn=ue("dl")({name:"TableSimple",class:"t1mav7fx"});function xn(){return s(_n,null,s("p",null,s("a",{href:"https://taler.net/"},"Learn more about GNU Taler on our website."),s("p",null,"Copyright \xA9 2014\u20142021 Taler Systems SA")))}function bn({order_summary:t}){return s(C,null,s("meta",{charSet:"UTF-8"}),s("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),s("noscript",null,s("meta",{"http-equiv":"refresh",content:"1"})),s("title",null,"Status of your order for"," ",t||"{{ order_summary }}"),s("script",null,`
var contractTermsStr = '{{{contract_terms_json}}}';
- `)));
- }
- function Location({ templateName, location, btr, }) {
- //FIXME: mustache strings show be constructed in a way that ends in the final output of the html but is not present in the
- // javascript code, otherwise when mustache render engine run over the html it will also replace string in the javascript code
- // that is made to run when the browser has javascript enable leading into undefined behavior.
- // that's why in the next fields we are using concatenations to build the mustache placeholder.
- return (h$2(p$2, null,
- btr && `{{` + `#${templateName}.building_name}}`,
- h$2("dd", null,
- (location === null || location === void 0 ? void 0 : location.building_name) ||
- (btr && `{{ ${templateName}.building_name }}`),
- " ",
- (location === null || location === void 0 ? void 0 : location.building_number) ||
- (btr && `{{ ${templateName}.building_number }}`)),
- btr && `{{` + `/${templateName}.building_name}}`,
- btr && `{{` + `#${templateName}.country}}`,
- h$2("dd", null,
- (location === null || location === void 0 ? void 0 : location.country) || (btr && `{{ ${templateName}.country }}`),
- " ",
- (location === null || location === void 0 ? void 0 : location.country_subdivision) ||
- (btr && `{{ ${templateName}.country_subdivision }}`)),
- btr && `{{` + `/${templateName}.country}}`,
- btr && `{{` + `#${templateName}.district}}`,
- h$2("dd", null, (location === null || location === void 0 ? void 0 : location.district) || (btr && `{{ ${templateName}.district }}`)),
- btr && `{{` + `/${templateName}.district}}`,
- btr && `{{` + `#${templateName}.post_code}}`,
- h$2("dd", null, (location === null || location === void 0 ? void 0 : location.post_code) || (btr && `{{ ${templateName}.post_code }}`)),
- btr && `{{` + `/${templateName}.post_code}}`,
- btr && `{{` + `#${templateName}.street}}`,
- h$2("dd", null, (location === null || location === void 0 ? void 0 : location.street) || (btr && `{{ ${templateName}.street }}`)),
- btr && `{{` + `/${templateName}.street}}`,
- btr && `{{` + `#${templateName}.town}}`,
- h$2("dd", null, (location === null || location === void 0 ? void 0 : location.town) || (btr && `{{ ${templateName}.town }}`)),
- btr && `{{` + `/${templateName}.town}}`,
- btr && `{{` + `#${templateName}.town_location}}`,
- h$2("dd", null, (location === null || location === void 0 ? void 0 : location.town_location) ||
- (btr && `{{ ${templateName}.town_location }}`)),
- btr && `{{` + `/${templateName}.town_location}}`));
- }
- function ShowOrderDetails({ order_summary, refund_amount, contract_terms, btr, }) {
- const productList = btr
- ? [{}]
- : (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.products) || [];
- const auditorsList = btr
- ? [{}]
- : (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.auditors) || [];
- const exchangesList = btr
- ? [{}]
- : (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.exchanges) || [];
- const hasDeliveryInfo = btr ||
- !!(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_date) ||
- !!(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_location);
- return (h$2(Page, null,
- h$2("header", null,
- h$2("h1", null,
- "Details of order",
- " ",
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.order_id) || `{{ contract_terms.order_id }}`)),
- h$2("section", null,
- btr && `{{#refund_amount}}`,
- (btr || refund_amount) && (h$2("section", null,
- h$2(InfoBox, null,
- h$2("b", null, "Refunded:"),
- " The merchant refunded you",
- " ",
- h$2("b", null, refund_amount || `{{ refund_amount }}`),
- "."))),
- btr && `{{/refund_amount}}`,
- h$2("section", null,
- h$2(TableExpanded, null,
- h$2("dt", null, "Order summary:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.summary) || `{{ contract_terms.summary }}`),
- h$2("dt", null, "Amount paid:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.amount) || `{{ contract_terms.amount }}`),
- h$2("dt", null, "Order date:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.timestamp)
- ? (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.timestamp.t_s) != "never"
- ? format(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.timestamp.t_s, "dd MMM yyyy HH:mm:ss")
- : "never"
- : `{{ contract_terms.timestamp_str }}`,
- " "),
- h$2("dt", null, "Merchant name:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.merchant.name) ||
- `{{ contract_terms.merchant.name }}`))),
- btr && `{{#contract_terms.hasProducts}}`,
- !productList.length ? null : (h$2("section", null,
- h$2("h2", null, "Products purchased"),
- h$2(TableSimple, null,
- btr && "{{" + "#contract_terms.products" + "}}",
- productList.map((p, i) => {
- const taxList = btr
- ? [{}]
- : p.taxes || [];
- return (h$2(p$2, { key: i },
- h$2("p", null, p.description || `{{description}}`),
- h$2("dl", null,
- h$2("dt", null, "Quantity:"),
- h$2("dd", null, p.quantity || `{{quantity}}`),
- h$2("dt", null, "Price:"),
- h$2("dd", null, p.price || `{{price}}`),
- btr && `{{#hasTaxes}}`,
- !taxList.length ? null : (h$2(p$2, null,
- btr && "{{" + "#taxes" + "}}",
- taxList.map((t, i) => {
- return (h$2(p$2, { key: i },
- h$2("dt", null, t.name || `{{name}}`),
- h$2("dd", null, t.tax || `{{tax}}`)));
- }),
- btr && "{{" + "/taxes" + "}}")),
- btr && `{{/hasTaxes}}`,
- btr && `{{#delivery_date}}`,
- (btr || p.delivery_date) && (h$2(p$2, null,
- h$2("dt", null, "Delivered on:"),
- h$2("dd", null,
- p.delivery_date
- ? p.delivery_date.t_s != "never"
- ? format(p.delivery_date.t_s, "dd MMM yyyy HH:mm:ss")
- : "never"
- : `{{ delivery_date_str }}`,
- " "))),
- btr && `{{/delivery_date}}`,
- btr && `{{#unit}}`,
- (btr || p.unit) && (h$2(p$2, null,
- h$2("dt", null, "Product unit:"),
- h$2("dd", null, p.unit || `{{.}}`))),
- btr && `{{/unit}}`,
- btr && `{{#product_id}}`,
- (btr || p.product_id) && (h$2(p$2, null,
- h$2("dt", null, "Product ID:"),
- h$2("dd", null, p.product_id || `{{.}}`))),
- btr && `{{/product_id}}`)));
- }),
- btr && "{{" + "/contract_terms.products" + "}}"))),
- btr && `{{/contract_terms.hasProducts}}`,
- btr && `{{#contract_terms.has_delivery_info}}`,
- !hasDeliveryInfo ? null : (h$2("section", null,
- h$2("h2", null, "Delivery information"),
- h$2(TableExpanded, null,
- btr && `{{#contract_terms.delivery_date}}`,
- (btr || (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_date)) && (h$2(p$2, null,
- h$2("dt", null, "Delivery date:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_date)
- ? (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_date.t_s) != "never"
- ? format(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_date.t_s, "dd MMM yyyy HH:mm:ss")
- : "never"
- : `{{ contract_terms.delivery_date_str }}`,
- " "))),
- btr && `{{/contract_terms.delivery_date}}`,
- btr && `{{#contract_terms.delivery_location}}`,
- (btr || (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_location)) && (h$2(p$2, null,
- h$2("dt", null, "Delivery address:"),
- h$2(Location, { btr: btr, location: contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.delivery_location, templateName: "contract_terms.delivery_location" }))),
- btr && `{{/contract_terms.delivery_location}}`))),
- btr && `{{/contract_terms.has_delivery_info}}`,
- h$2("section", null,
- h$2("h2", null, "Full payment information"),
- h$2(TableExpanded, null,
- h$2("dt", null, "Amount paid:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.amount) || `{{ contract_terms.amount }}`),
- h$2("dt", null, "Wire transfer method:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.wire_method) ||
- `{{ contract_terms.wire_method }}`),
- h$2("dt", null, "Payment deadline:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.pay_deadline)
- ? (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.pay_deadline.t_s) != "never"
- ? format(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.pay_deadline.t_s, "dd MMM yyyy HH:mm:ss")
- : "never"
- : `{{ contract_terms.pay_deadline_str }}`,
- " "),
- h$2("dt", null, "Exchange transfer deadline:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.wire_transfer_deadline)
- ? (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.wire_transfer_deadline.t_s) != "never"
- ? format(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.wire_transfer_deadline.t_s, "dd MMM yyyy HH:mm:ss")
- : "never"
- : `{{ contract_terms.wire_transfer_deadline_str }}`,
- " "),
- h$2("dt", null, "Maximum deposit fee:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.max_fee) || `{{ contract_terms.max_fee }}`),
- h$2("dt", null, "Maximum wire fee:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.max_wire_fee) ||
- `{{ contract_terms.max_wire_fee }}`),
- h$2("dt", null, "Wire fee amortization:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.wire_fee_amortization) ||
- `{{ contract_terms.wire_fee_amortization }}`,
- " ",
- "transactions"))),
- h$2("section", null,
- h$2("h2", null, "Refund information"),
- h$2(TableExpanded, null,
- h$2("dt", null, "Refund deadline:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.refund_deadline)
- ? (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.refund_deadline.t_s) != "never"
- ? format(contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.refund_deadline.t_s, "dd MMM yyyy HH:mm:ss")
- : "never"
- : `{{ contract_terms.refund_deadline_str }}`,
- " "),
- btr && `{{#contract_terms.auto_refund}}`,
- (btr || (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.auto_refund)) && (h$2(p$2, null,
- h$2("dt", null, "Attempt autorefund for:"),
- h$2("dd", null,
- (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.auto_refund)
- ? (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.auto_refund.d_us) != "forever"
- ? formatDuration(intervalToDuration({
- start: 0,
- end: contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.auto_refund.d_us,
- }))
- : "forever"
- : `{{ contract_terms.auto_refund_str }}`,
- " "))),
- btr && `{{/contract_terms.auto_refund}}`)),
- h$2("section", null,
- h$2("h2", null, "Additional order details"),
- h$2(TableExpanded, null,
- h$2("dt", null, "Public reorder URL:"),
- h$2("dd", null, " -- not defined yet -- "),
- btr && `{{#contract_terms.fulfillment_url}}`,
- (btr || (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.fulfillment_url)) && (h$2(p$2, null,
- h$2("dt", null, "Fulfillment URL:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.fulfillment_url) ||
- (btr && `{{ contract_terms.fulfillment_url }}`)))),
- btr && `{{/contract_terms.fulfillment_url}}`)),
- h$2("section", null,
- h$2("h2", null, "Full merchant information"),
- h$2(TableExpanded, null,
- h$2("dt", null, "Merchant name:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.merchant.name) ||
- `{{ contract_terms.merchant.name }}`),
- h$2("dt", null, "Merchant address:"),
- h$2(Location, { btr: btr, location: contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.merchant.address, templateName: "contract_terms.merchant.address" }),
- h$2("dt", null, "Merchant's jurisdiction:"),
- h$2(Location, { btr: btr, location: contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.merchant.jurisdiction, templateName: "contract_terms.merchant.jurisdiction" }),
- h$2("dt", null, "Merchant URI:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.merchant_base_url) ||
- `{{ contract_terms.merchant_base_url }}`),
- h$2("dt", null, "Merchant's public key:"),
- h$2("dd", null, (contract_terms === null || contract_terms === void 0 ? void 0 : contract_terms.merchant_pub) ||
- `{{ contract_terms.merchant_pub }}`))),
- btr && `{{#contract_terms.hasAuditors}}`,
- !auditorsList.length ? null : (h$2("section", null,
- h$2("h2", null, "Auditors accepted by the merchant"),
- h$2(TableExpanded, null,
- btr && "{{" + "#contract_terms.auditors" + "}}",
- auditorsList.map((p, i) => {
- return (h$2(p$2, { key: i },
- h$2("p", null, p.name || `{{name}}`),
- h$2("dt", null, "Auditor's public key:"),
- h$2("dd", null, p.auditor_pub || `{{auditor_pub}}`),
- h$2("dt", null, "Auditor's URL:"),
- h$2("dd", null, p.url || `{{url}}`)));
- }),
- btr && "{{" + "/contract_terms.auditors" + "}}"))),
- btr && `{{/contract_terms.hasAuditors}}`,
- btr && `{{#contract_terms.hasExchanges}}`,
- !exchangesList.length ? null : (h$2("section", null,
- h$2("h2", null, "Exchanges accepted by the merchant"),
- h$2(TableExpanded, null,
- btr && "{{" + "#contract_terms.exchanges" + "}}",
- exchangesList.map((p, i) => {
- return (h$2(p$2, { key: i },
- h$2("dt", null, "Exchange's URL:"),
- h$2("dd", null, p.url || `{{url}}`),
- h$2("dt", null, "Public key:"),
- h$2("dd", null, p.master_pub || `{{master_pub}}`)));
- }),
- btr && "{{" + "/contract_terms.exchanges" + "}}"))),
- btr && `{{/contract_terms.hasExchanges}}`),
- h$2(Footer, null)));
- }
- function mount() {
- try {
- const fromLocation = new URL(window.location.href).searchParams;
- const os = fromLocation.get("order_summary") || undefined;
- if (os) {
- P$1(h$2(Head, { order_summary: os }), document.head);
- }
- const ra = fromLocation.get("refund_amount") || undefined;
- const ct = fromLocation.get("contract_terms") || undefined;
- let contractTerms;
- try {
- contractTerms = JSON.parse(window.contractTermsStr);
- }
- catch (_a) { }
- P$1(h$2(ShowOrderDetails, { contract_terms: contractTerms, order_summary: os, refund_amount: ra }), document.body);
- }
- catch (e) {
- console.error("got error", e);
- if (e instanceof Error) {
- document.body.innerText = `Fatal error: "${e.message}". Please report this bug at https://bugs.gnunet.org/.`;
- }
- }
- }
- function buildTimeRendering() {
- return {
- head: S(h$2(Head, null)),
- body: S(h$2(ShowOrderDetails, { btr: true })),
- };
- }
-
- exports.ShowOrderDetails = ShowOrderDetails;
- exports.buildTimeRendering = buildTimeRendering;
- exports.mount = mount;
-
- Object.defineProperty(exports, '__esModule', { value: true });
-
- return exports;
-
-})({});
+ `))}function Lt({templateName:t,location:r,btr:e}){return s(C,null,e&&`{{#${t}.building_name}}`,s("dd",null,(r==null?void 0:r.building_name)||e&&`{{ ${t}.building_name }}`," ",(r==null?void 0:r.building_number)||e&&`{{ ${t}.building_number }}`),e&&`{{/${t}.building_name}}`,e&&`{{#${t}.country}}`,s("dd",null,(r==null?void 0:r.country)||e&&`{{ ${t}.country }}`," ",(r==null?void 0:r.country_subdivision)||e&&`{{ ${t}.country_subdivision }}`),e&&`{{/${t}.country}}`,e&&`{{#${t}.district}}`,s("dd",null,(r==null?void 0:r.district)||e&&`{{ ${t}.district }}`),e&&`{{/${t}.district}}`,e&&`{{#${t}.post_code}}`,s("dd",null,(r==null?void 0:r.post_code)||e&&`{{ ${t}.post_code }}`),e&&`{{/${t}.post_code}}`,e&&`{{#${t}.street}}`,s("dd",null,(r==null?void 0:r.street)||e&&`{{ ${t}.street }}`),e&&`{{/${t}.street}}`,e&&`{{#${t}.town}}`,s("dd",null,(r==null?void 0:r.town)||e&&`{{ ${t}.town }}`),e&&`{{/${t}.town}}`,e&&`{{#${t}.town_location}}`,s("dd",null,(r==null?void 0:r.town_location)||e&&`{{ ${t}.town_location }}`),e&&`{{/${t}.town_location}}`)}function qt({order_summary:t,refund_amount:r,contract_terms:e,btr:n}){let a=n?[{}]:(e==null?void 0:e.products)||[],o=n?[{}]:(e==null?void 0:e.auditors)||[],i=n?[{}]:(e==null?void 0:e.exchanges)||[],l=n||!!(e!=null&&e.delivery_date)||!!(e!=null&&e.delivery_location);return s(vn,null,s("header",null,s("h1",null,"Details of order"," ",(e==null?void 0:e.order_id)||"{{ contract_terms.order_id }}")),s("section",null,n&&"{{#refund_amount}}",(n||r)&&s("section",null,s(gn,null,s("b",null,"Refunded:")," The merchant refunded you"," ",s("b",null,r||"{{ refund_amount }}"),".")),n&&"{{/refund_amount}}",s("section",null,s(Q,null,s("dt",null,"Order summary:"),s("dd",null,(e==null?void 0:e.summary)||"{{ contract_terms.summary }}"),s("dt",null,"Amount paid:"),s("dd",null,(e==null?void 0:e.amount)||"{{ contract_terms.amount }}"),s("dt",null,"Order date:"),s("dd",null,e!=null&&e.timestamp?(e==null?void 0:e.timestamp.t_s)!="never"?B(e==null?void 0:e.timestamp.t_s,"dd MMM yyyy HH:mm:ss"):"never":"{{ contract_terms.timestamp_str }}"," "),s("dt",null,"Merchant name:"),s("dd",null,(e==null?void 0:e.merchant.name)||"{{ contract_terms.merchant.name }}"))),n&&"{{#contract_terms.hasProducts}}",a.length?s("section",null,s("h2",null,"Products purchased"),s(yn,null,n&&"{{#contract_terms.products}}",a.map((f,c)=>{let u=n?[{}]:f.taxes||[];return s(C,{key:c},s("p",null,f.description||"{{description}}"),s("dl",null,s("dt",null,"Quantity:"),s("dd",null,f.quantity||"{{quantity}}"),s("dt",null,"Price:"),s("dd",null,f.price||"{{price}}"),n&&"{{#hasTaxes}}",u.length?s(C,null,n&&"{{#taxes}}",u.map((h,p)=>s(C,{key:p},s("dt",null,h.name||"{{name}}"),s("dd",null,h.tax||"{{tax}}"))),n&&"{{/taxes}}"):null,n&&"{{/hasTaxes}}",n&&"{{#delivery_date}}",(n||f.delivery_date)&&s(C,null,s("dt",null,"Delivered on:"),s("dd",null,f.delivery_date?f.delivery_date.t_s!="never"?B(f.delivery_date.t_s,"dd MMM yyyy HH:mm:ss"):"never":"{{ delivery_date_str }}"," ")),n&&"{{/delivery_date}}",n&&"{{#unit}}",(n||f.unit)&&s(C,null,s("dt",null,"Product unit:"),s("dd",null,f.unit||"{{.}}")),n&&"{{/unit}}",n&&"{{#product_id}}",(n||f.product_id)&&s(C,null,s("dt",null,"Product ID:"),s("dd",null,f.product_id||"{{.}}")),n&&"{{/product_id}}"))}),n&&"{{/contract_terms.products}}")):null,n&&"{{/contract_terms.hasProducts}}",n&&"{{#contract_terms.has_delivery_info}}",l?s("section",null,s("h2",null,"Delivery information"),s(Q,null,n&&"{{#contract_terms.delivery_date}}",(n||(e==null?void 0:e.delivery_date))&&s(C,null,s("dt",null,"Delivery date:"),s("dd",null,e!=null&&e.delivery_date?(e==null?void 0:e.delivery_date.t_s)!="never"?B(e==null?void 0:e.delivery_date.t_s,"dd MMM yyyy HH:mm:ss"):"never":"{{ contract_terms.delivery_date_str }}"," ")),n&&"{{/contract_terms.delivery_date}}",n&&"{{#contract_terms.delivery_location}}",(n||(e==null?void 0:e.delivery_location))&&s(C,null,s("dt",null,"Delivery address:"),s(Lt,{btr:n,location:e==null?void 0:e.delivery_location,templateName:"contract_terms.delivery_location"})),n&&"{{/contract_terms.delivery_location}}")):null,n&&"{{/contract_terms.has_delivery_info}}",s("section",null,s("h2",null,"Full payment information"),s(Q,null,s("dt",null,"Amount paid:"),s("dd",null,(e==null?void 0:e.amount)||"{{ contract_terms.amount }}"),s("dt",null,"Wire transfer method:"),s("dd",null,(e==null?void 0:e.wire_method)||"{{ contract_terms.wire_method }}"),s("dt",null,"Payment deadline:"),s("dd",null,e!=null&&e.pay_deadline?(e==null?void 0:e.pay_deadline.t_s)!="never"?B(e==null?void 0:e.pay_deadline.t_s,"dd MMM yyyy HH:mm:ss"):"never":"{{ contract_terms.pay_deadline_str }}"," "),s("dt",null,"Exchange transfer deadline:"),s("dd",null,e!=null&&e.wire_transfer_deadline?(e==null?void 0:e.wire_transfer_deadline.t_s)!="never"?B(e==null?void 0:e.wire_transfer_deadline.t_s,"dd MMM yyyy HH:mm:ss"):"never":"{{ contract_terms.wire_transfer_deadline_str }}"," "),s("dt",null,"Maximum deposit fee:"),s("dd",null,(e==null?void 0:e.max_fee)||"{{ contract_terms.max_fee }}"),s("dt",null,"Maximum wire fee:"),s("dd",null,(e==null?void 0:e.max_wire_fee)||"{{ contract_terms.max_wire_fee }}"),s("dt",null,"Wire fee amortization:"),s("dd",null,(e==null?void 0:e.wire_fee_amortization)||"{{ contract_terms.wire_fee_amortization }}"," ","transactions"))),s("section",null,s("h2",null,"Refund information"),s(Q,null,s("dt",null,"Refund deadline:"),s("dd",null,e!=null&&e.refund_deadline?(e==null?void 0:e.refund_deadline.t_s)!="never"?B(e==null?void 0:e.refund_deadline.t_s,"dd MMM yyyy HH:mm:ss"):"never":"{{ contract_terms.refund_deadline_str }}"," "),n&&"{{#contract_terms.auto_refund}}",(n||(e==null?void 0:e.auto_refund))&&s(C,null,s("dt",null,"Attempt autorefund for:"),s("dd",null,e!=null&&e.auto_refund?(e==null?void 0:e.auto_refund.d_us)!="forever"?Ee(Ie({start:0,end:e==null?void 0:e.auto_refund.d_us})):"forever":"{{ contract_terms.auto_refund_str }}"," ")),n&&"{{/contract_terms.auto_refund}}")),s("section",null,s("h2",null,"Additional order details"),s(Q,null,s("dt",null,"Public reorder URL:"),s("dd",null," -- not defined yet -- "),n&&"{{#contract_terms.fulfillment_url}}",(n||(e==null?void 0:e.fulfillment_url))&&s(C,null,s("dt",null,"Fulfillment URL:"),s("dd",null,(e==null?void 0:e.fulfillment_url)||n&&"{{ contract_terms.fulfillment_url }}")),n&&"{{/contract_terms.fulfillment_url}}")),s("section",null,s("h2",null,"Full merchant information"),s(Q,null,s("dt",null,"Merchant name:"),s("dd",null,(e==null?void 0:e.merchant.name)||"{{ contract_terms.merchant.name }}"),s("dt",null,"Merchant address:"),s(Lt,{btr:n,location:e==null?void 0:e.merchant.address,templateName:"contract_terms.merchant.address"}),s("dt",null,"Merchant's jurisdiction:"),s(Lt,{btr:n,location:e==null?void 0:e.merchant.jurisdiction,templateName:"contract_terms.merchant.jurisdiction"}),s("dt",null,"Merchant URI:"),s("dd",null,(e==null?void 0:e.merchant_base_url)||"{{ contract_terms.merchant_base_url }}"),s("dt",null,"Merchant's public key:"),s("dd",null,(e==null?void 0:e.merchant_pub)||"{{ contract_terms.merchant_pub }}"))),n&&"{{#contract_terms.hasAuditors}}",o.length?s("section",null,s("h2",null,"Auditors accepted by the merchant"),s(Q,null,n&&"{{#contract_terms.auditors}}",o.map((f,c)=>s(C,{key:c},s("p",null,f.name||"{{name}}"),s("dt",null,"Auditor's public key:"),s("dd",null,f.auditor_pub||"{{auditor_pub}}"),s("dt",null,"Auditor's URL:"),s("dd",null,f.url||"{{url}}"))),n&&"{{/contract_terms.auditors}}")):null,n&&"{{/contract_terms.hasAuditors}}",n&&"{{#contract_terms.hasExchanges}}",i.length?s("section",null,s("h2",null,"Exchanges accepted by the merchant"),s(Q,null,n&&"{{#contract_terms.exchanges}}",i.map((f,c)=>s(C,{key:c},s("dt",null,"Exchange's URL:"),s("dd",null,f.url||"{{url}}"),s("dt",null,"Public key:"),s("dd",null,f.master_pub||"{{master_pub}}"))),n&&"{{/contract_terms.exchanges}}")):null,n&&"{{/contract_terms.hasExchanges}}"),s(xn,null))}function So(){try{let t=new URL(window.location.href).searchParams,r=t.get("order_summary")||void 0;r&&z(s(bn,{order_summary:r}),document.head);let e=t.get("refund_amount")||void 0,n=t.get("contract_terms")||void 0,a;try{a=JSON.parse(window.contractTermsStr)}catch(o){}z(s(qt,{contract_terms:a,order_summary:r,refund_amount:e}),document.body)}catch(t){console.error("got error",t),t instanceof Error&&(document.body.innerText=`Fatal error: "${t.message}". Please report this bug at https://bugs.gnunet.org/.`)}}function Po(){return{head:oe(s(bn,null)),body:oe(s(qt,{btr:!0}))}}return Dn(Wo);})();
</script>
- <script>page.mount()</script>
- </body>
-</html> \ No newline at end of file
+ <script>page.mount()</script>
+ </body>
+ </html> \ No newline at end of file